
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 **A** because creating a snapshot and then a new disk from that snapshot in the target zone is the most straightforward method to replicate a disk across zones. This approach is supported by Google Cloud Platform's documentation, which states that disks are zonal resources and their contents can be moved to a different zone by snapshotting the disk and creating a new disk from the snapshot in the desired zone. - **Option B** is incorrect because it moves the instance rather than creating a replica. - **Option C** is possible but involves unnecessary steps, making it less efficient. - **Option D** is incorrect as `gcloud` does not support directly copying a disk to a different zone.
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
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.
B
Use gcloud compute instances move with parameter --destination-zone europe-west2-c to move the instance to the new zone.
C
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.
D
Use gcloud to copy the disk to the europe-west2-c zone. Create a new VM with that disk.
No comments yet.