Google Cloud Professional Cloud Developer — Question 204
Your organization has recently begun an initiative to replatform their legacy applications onto Google Kubernetes Engine. You need to decompose a monolithic application into microservices. Multiple instances have read and write access to a configuration file, which is stored on a shared file system. You want to minimize the effort required to manage this transition, and you want to avoid rewriting the application code. What should you do?
Answer options
- A. Create a new Cloud Storage bucket, and mount it via FUSE in the container.
- B. Create a new persistent disk, and mount the volume as a shared PersistentVolume.
- C. Create a new Filestore instance, and mount the volume as an NFS PersistentVolume.
- D. Create a new ConfigMap and volumeMount to store the contents of the configuration file.
Correct answer: C
Explanation
The correct answer is C, as using a Filestore instance allows for NFS PersistentVolume, which is ideal for shared access among multiple microservices. Option A, using Cloud Storage with FUSE, can introduce complexity and latency issues. Option B, while it provides shared access, may not be as efficient as using a dedicated Filestore. Option D is incorrect because ConfigMaps are typically used for configuration data rather than files that require read and write access.