Google Cloud Professional Cloud Developer — Question 85

You have containerized a legacy application that stores its configuration on an NFS share. You need to deploy this application to Google Kubernetes Engine
(GKE) and do not want the application serving traffic until after the configuration has been retrieved. What should you do?

Answer options

Correct answer: B

Explanation

The correct answer is B because creating a PersistentVolumeClaim allows the application to access the NFS share directly within the Kubernetes environment, ensuring the configuration is available before the service starts. Option A does not provide persistent storage, option C embeds the configuration into the image, which is not suitable for dynamic configurations, and option D involves unnecessary complexity by requiring a startup script for the instance group.