CDL Exam Question: Attaching a VM Instance to a Zonal Persistent Disk

Attaching a VM Instance to a Zonal Persistent Disk

Question

As part of the project requirement, your team is working on attaching a VM instance to a zonal persistent disk. Which of the below statements is TRUE with regards to the resources mentioned in the above scenario?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: A.

Option A is correct.

Since VM instance and zonal persistent disk are Zonal resources and should be in the same Zone.

Option B is incorrect.

Please refer to the explanation above.

Option C is incorrect.

VM instance and zonal persistent disk are Zonal resources and not Regional resources.

Option D is incorrect.

VM instance and zonal persistent disks are Zonal resources and not Global resources.

https://cloud.google.com/compute/docs/regions-zones

The correct answer is A. VM instance and zonal persistent disk should be in the same Zone.

Explanation:

In Google Cloud Platform (GCP), a zone is a deployment area within a region, while a region is a specific geographical location that contains one or more zones.

A zonal persistent disk is a block storage device that is attached to a single virtual machine instance in a specific zone. It provides data persistence and enables data to be stored independently of the life cycle of the instance.

When attaching a VM instance to a zonal persistent disk, it is important to note that both resources should be in the same zone. This is because zonal persistent disks are bound to a specific zone and cannot be attached to a VM instance in a different zone. Therefore, the VM instance and the zonal persistent disk must be in the same zone for the attachment to be successful.

Option B is incorrect because both resources should be in the same zone.

Option C is incorrect because zonal persistent disks are not regional resources, but rather zonal resources.

Option D is incorrect because neither the VM instance nor the zonal persistent disk is a global resource.