Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 162 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 162
Topic #: 1
[All Professional Cloud Architect Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Eroc
Highly Voted 5 years, 1 month ago
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.
upvoted 30 times
ccpmad
5 months, 3 weeks ago
you are incorrect. It is D
upvoted 1 times
...
tartar
4 years, 3 months ago
D is ok
upvoted 10 times
...
...
Sudipta
Highly Voted 4 years, 10 months ago
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.
upvoted 15 times
Jack_in_Large
4 years, 3 months ago
You can't use the snapshot created by another project
upvoted 13 times
noussy
4 years, 2 months ago
According to the documentation we can now https://cloud.google.com/compute/docs/disks/create-snapshots
upvoted 7 times
JasminL
3 years, 11 months ago
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.'
upvoted 11 times
VSMu
1 year, 9 months ago
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!
upvoted 4 times
...
...
ArthurL20
3 years, 6 months ago
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.
upvoted 16 times
...
...
...
...
Toothpick
Most Recent 4 months ago
In the current state of GCP , Both B and D can be done in 3 gcloud commands each, (and both require equal amount of snapshot handling). D is better if you have more than one instance to create but in this case , they are both equally valid.
upvoted 1 times
Toothpick
4 months ago
Edit, B might even be easier , you can directly create a snapshot in a target project and when creating a new vm, simply choose it as a root disk, just tried and verified it myself now
upvoted 1 times
...
...
ccpmad
5 months, 3 weeks ago
Selected Answer: D
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.
upvoted 1 times
Toothpick
4 months ago
U can directly create the snapshot in any target project
upvoted 1 times
...
...
adoyt
11 months ago
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
upvoted 2 times
...
odacir
1 year ago
Selected Answer: D
https://cloud.google.com/compute/docs/instances/copy-vm-between-projects
upvoted 2 times
...
Prakzz
1 year, 1 month ago
Selected Answer: D
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.
upvoted 3 times
...
didek1986
1 year, 2 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
ananta93
1 year, 4 months ago
B is the correct answer and It is straight forward.
upvoted 1 times
ccpmad
5 months, 3 weeks ago
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.
upvoted 1 times
...
...
PST21
1 year, 8 months ago
B is incorrect as it doesnt create an image uses the snapshot and hence D is the only corret option
upvoted 2 times
...
AugustoKras011111
1 year, 9 months ago
Selected Answer: D
D seems better, but B actually works too.
upvoted 1 times
...
romandrigo
1 year, 9 months ago
Selected Answer: D
https://cloud.google.com/compute/docs/instances/copy-vm-between-projects#zonal-boot-disk
upvoted 4 times
...
Clauther
1 year, 10 months ago
Selected Answer: B
B is the right one as of 01/2023
upvoted 2 times
...
n_nana
1 year, 10 months ago
Selected Answer: B
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.
upvoted 2 times
n_nana
1 year, 10 months ago
https://cloud.google.com/compute/docs/disks/create-snapshots#sharing_snapshots https://cloud.google.com/compute/docs/disks/create-snapshots#sharing_snapshots_across_orgs
upvoted 2 times
...
...
examch
1 year, 10 months ago
Selected Answer: B
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
upvoted 1 times
...
surajkrishnamurthy
1 year, 11 months ago
Selected Answer: D
D is the correct answer
upvoted 1 times
...
arpitshah20
2 years ago
Selected Answer: D
D is correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...