You want to make a copy of a production Linux virtual machine in the US-Central region. You want to manage and replace the copy easily if there are changes on the production virtual machine. You will deploy the copy as a new instance in a different project in the US-East region. What steps must you take?
Choose an answer
Tap an option to check your answer.
Correct 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..
Why this is the answer
The correct approach involves creating a snapshot of the production VM's root disk. This snapshot captures the disk's state. Then, create a custom image from this snapshot. Storing this image in Google Cloud Storage allows for easy access across regions and projects. Finally, use this custom image to provision a new virtual machine instance in the US-East region. This method ensures the new VM is an exact copy and can be easily replaced by creating a new image from an updated snapshot if the production VM changes. Using dd and netcat is a manual and inefficient process for cross-project and cross-region VM replication. Creating an image file with dd locally on the VM doesn't provide a direct, managed way to transfer it to a new project and region for VM creation. While creating a snapshot and directly using it as a root disk for a new instance is possible within the same project and region, creating an image from the snapshot is the best practice for cross-project and cross-region deployments, especially for easy management and replacement.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed