
Answer-first summary for fast verification
Answer: Create a snapshot from the disk. Create a disk from the snapshot in the `europe-west2-c` zone. Create a new VM with that disk.
The correct answer is **C** because creating a snapshot and then a new disk from that snapshot in the desired zone is the most straightforward and efficient method to replicate a disk across zones. This approach leverages GCP's snapshot functionality to ensure data integrity and availability. - **Option A** is incorrect because `gcloud` does not support direct disk copying across zones. - **Option B** involves unnecessary steps by first creating the disk in the original zone before moving it. - **Option D** is incorrect as it moves the existing instance rather than creating a replica, which does not meet the high availability requirement.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To ensure high availability for your application server running on Compute Engine in the europe-west1-d zone, you need to replicate it to the europe-west2-c zone with minimal steps. What is the most efficient method to achieve this?
A
Use gcloud to copy the disk to the europe-west2-c zone. Create a new VM with that disk.
B
Create a snapshot from the disk. Create a disk from the snapshot in the europe-west1-d zone and then move the disk to europe-west2-c. Create a new VM with that disk.
C
Create a snapshot from the disk. Create a disk from the snapshot in the europe-west2-c zone. Create a new VM with that disk.
D
Use gcloud compute instances move with parameter --destination-zone europe-west2-c to move the instance to the new zone.
No comments yet.