Google Cloud Professional Cloud Developer — Question 31
Your application is controlled by a managed instance group. You want to share a large read-only data set between all the instances in the managed instance group. You want to ensure that each instance can start quickly and can access the data set via its filesystem with very low latency. You also want to minimize the total cost of the solution.
What should you do?
Answer options
- A. Move the data to a Cloud Storage bucket, and mount the bucket on the filesystem using Cloud Storage FUSE.
- B. Move the data to a Cloud Storage bucket, and copy the data to the boot disk of the instance via a startup script.
- C. Move the data to a Compute Engine persistent disk, and attach the disk in read-only mode to multiple Compute Engine virtual machine instances.
- D. Move the data to a Compute Engine persistent disk, take a snapshot, create multiple disks from the snapshot, and attach each disk to its own instance.
Correct answer: C
Explanation
The correct answer is C because attaching a Compute Engine persistent disk in read-only mode allows multiple instances to access the same data simultaneously with low latency. Option A would introduce higher latency due to the nature of Cloud Storage, and option B would result in longer startup times since data would need to be copied to each instance. Option D, while feasible, involves unnecessary complexity and additional costs associated with creating multiple disks from a snapshot.