
Answer-first summary for fast verification
Answer: Create a snapshot of the root disk, create an image file in Google Cloud Storage from the snapshot, and create a new virtual machine instance in the US-East region using the image file the root disk.
The question requires copying a VM from one project to another in a different region (US-Central to US-East) and ensuring easy management and replacement. Option D is correct because it involves creating a snapshot of the root disk, converting it to an image stored in Google Cloud Storage, and using that image to create the new VM. Images are global resources that can be shared across projects and regions, making them ideal for managing and replacing copies efficiently. Option B is incorrect because snapshots are not directly shareable across projects without additional steps (like creating a disk first), and the question specifies a different project. Options A and C are not recommended as they involve manual commands (dd, netcat) which are error-prone and not aligned with GCP best practices for VM replication.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You need to copy a production Linux virtual machine from the US-Central region to a new instance in a different project in the US-East region, ensuring the copy can be easily managed and replaced if the production VM changes. What steps should you follow?
A
Use the Linux dd and netcat commands to copy and stream the root disk contents to a new virtual machine instance in the US-East region.
B
Create a snapshot of the root disk and select the snapshot as the root disk when you create a new virtual machine instance in the US-East region.
C
Create an image file from the root disk with Linux dd command, create a new virtual machine instance in the US-East region
D
Create a snapshot of the root disk, create an image file in Google Cloud Storage from the snapshot, and create a new virtual machine instance in the US-East region using the image file the root disk.
No comments yet.