Google Cloud Professional Cloud Architect — Question 119
You need to deploy a stateful workload on Google Cloud. The workload can scale horizontally, but each instance needs to read and write to the same POSIX filesystem. At high load, the stateful workload needs to support up to 100 MB/s of writes. What should you do?
Answer options
- A. Use a persistent disk for each instance.
- B. Use a regional persistent disk for each instance.
- C. Create a Cloud Filestore instance and mount it in each instance.
- D. Create a Cloud Storage bucket and mount it in each instance using gcsfuse.
Correct answer: C
Explanation
The correct answer is C because Cloud Filestore provides a managed NFS service that supports POSIX file system semantics, making it ideal for stateful workloads that require shared access. Options A and B are not suitable as persistent disks are designed for single-instance use and do not support shared access. Option D, while it provides a storage solution, does not fulfill the requirement for POSIX compliance needed by the application.