Google Cloud Professional Cloud Architect — Question 30
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?
Answer options
- 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.
Correct answer: D
Explanation
The correct answer is D because it involves creating a snapshot which is then used to create an image file in Google Cloud Storage, allowing for easier management and deployment of the new instance. Option A is incorrect as it does not leverage snapshots or images, making management more complex. Option B, while it uses a snapshot, does not utilize Google Cloud Storage for image management, which limits flexibility. Option C also fails to incorporate Google Cloud Storage, which is crucial for this scenario.