
Answer-first summary for fast verification
Answer: Create a new Filestore instance, and mount the volume as an NFS PersistentVolume.
The scenario requires a shared file system that supports multiple read/write instances without code changes. Filestore (C) provides a managed NFS solution, which is ideal for shared access. Other options: Cloud Storage (A) isn't suitable for concurrent writes; Persistent Disk (B) doesn't support ReadWriteMany; ConfigMap (D) is read-only. Filestore mirrors the existing setup with minimal effort.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your organization is migrating legacy applications to Google Kubernetes Engine and needs to decompose a monolithic application into microservices. Multiple instances currently read and write to a shared configuration file on a shared file system. To minimize transition effort and avoid rewriting application code, what should you do?
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.