Professional Cloud Architect Exam QuestionsBrowse all questions from this exam

Professional Cloud Architect Exam - Question 162


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?

Show Answer
Correct Answer: D

To replicate a production Linux virtual machine to another region and project within Google Cloud Platform, creating a snapshot of the root disk and then generating an image file in Google Cloud Storage is the best approach. This way, the image can be accessed and used to create a new VM instance in a different project and region. Directly using snapshots may not be straightforward across different projects and regions.

Discussion

17 comments
Sign in to comment
ErocOption: D
Oct 22, 2019

D is correct. A and B are talking about appending the file system to a new VM, not setting it at the root in a new VM set. Option C is not offered within the GCP because the image must be on the GCP platform to run the gcloud of Google Console instructions to create a VM with the image.

tartar
Aug 5, 2020

D is ok

ccpmad
Jun 7, 2024

you are incorrect. It is D

SudiptaOption: B
Jan 14, 2020

Why Not B. https://cloud.google.com/compute/docs/instances/create-start-instance#createsnapshot This clearly tells we can use snapshot to create a VM instance, and only need a custom image if we need to create many instances. Here we are creating only one.

Jack_in_Large
Aug 24, 2020

You can't use the snapshot created by another project

noussy
Sep 22, 2020

According to the documentation we can now https://cloud.google.com/compute/docs/disks/create-snapshots

JasminL
Dec 8, 2020

I think the question has 2 different answers now as Google improve the snapshot function. Quoted from the link: 'You can create snapshots from disks even while they are attached to running instances. Snapshots are global resources, so you can use them to restore data to a new disk or instance within the same project. You can also share snapshots across projects.'

VSMu
Feb 3, 2023

B would have been the answer in the current context. But as I read carefully, it doesnt mention the step of sharing snapshot across projects. It directly expects to use the snapshot. Hence D may be the right answer!

ArthurL20
May 23, 2021

Only if its in the same zone: https://cloud.google.com/compute/docs/disks/create-snapshots#sharing_snapshots "Note: The disk must be in the same zone as the instance." But this is not the case here, we have: Different zones and different project hence, you must use a bucket.

romandrigoOption: D
Feb 28, 2023

https://cloud.google.com/compute/docs/instances/copy-vm-between-projects#zonal-boot-disk

PrakzzOption: D
Oct 9, 2023

https://cloud.google.com/compute/docs/instances/copy-vm-between-projects you have to create Image from Snapshot and share it to the destination project.

n_nanaOption: B
Jan 12, 2023

Currently , It is possible to create VM from snapshot within same project, different project or even different organisation. so answer B is more straight forward.

n_nana
Jan 12, 2023

https://cloud.google.com/compute/docs/disks/create-snapshots#sharing_snapshots https://cloud.google.com/compute/docs/disks/create-snapshots#sharing_snapshots_across_orgs

ClautherOption: B
Jan 26, 2023

B is the right one as of 01/2023

PST21Option: D
Mar 10, 2023

B is incorrect as it doesnt create an image uses the snapshot and hence D is the only corret option

odacirOption: D
Nov 19, 2023

https://cloud.google.com/compute/docs/instances/copy-vm-between-projects

adoytOption: D
Dec 28, 2023

B isn't correct because you have to create a disk first. You cannot create a VM from a snapshot directly. gcloud compute disks create DISK_NAME \ --source-snapshot SNAPSHOT_NAME \ --project SOURCE_PROJECT_ID \ --zone ZONE

Mahmoud_EOption: D
Oct 23, 2022

D is the right answer, B would be a good answer if mentioned to share the snapshot with other project

arpitshah20Option: D
Nov 14, 2022

D is correct

surajkrishnamurthyOption: D
Dec 15, 2022

D is the correct answer

examchOption: B
Jan 8, 2023

B is the correct answer, We can create VM from snapshot across zones and regions, please read through the link, https://cloud.google.com/compute/docs/instances/moving-instance-across-zones#moving-an-instance-manually

AugustoKras011111Option: D
Feb 28, 2023

D seems better, but B actually works too.

ananta93Option: B
Jul 30, 2023

B is the correct answer and It is straight forward.

ccpmad
Jun 7, 2024

No, B is not correct, try your answer in GCP. Yo will not see your snapshot, because in different regions you don't have visibility of snapshots, that's why we need to move it to Cloud Storage first.

didek1986Option: B
Sep 21, 2023

B is correct

ccpmadOption: D
Jun 7, 2024

We neet to move from one region o another, so we need snapshot of the root disk and send it to Cloud Storage. In the scenario of using in the same region, it is better tu use instance image, not snapshots of root disk.