PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #103
You are deploying an application to Cloud Run. The application requires a password to start. Your organization requires that all passwords are rotated every 24 hours, and your application must have…
The correct answer is B. Store the password in Secret Manager and mount the secret as a volume within the application. https://cloud.google.com/run/docs/configuring/services/secrets Mount each secret as a volume, which makes the secret available to the container as files. Reading a volume always fetches the secret value from Secret Manager, so it can be used with the latest version. This method…
Question
Options
- AStore the password in Secret Manager and send the secret to the application by using
- BStore the password in Secret Manager and mount the secret as a volume within the application.
- CUse Cloud Build to add your password into the application container at build time. Ensure that
- DStore the password directly in the code. Use Cloud Build to rebuild and deploy the application
How the community answered
(31 responses)- A10% (3)
- B74% (23)
- C3% (1)
- D13% (4)
Explanation
https://cloud.google.com/run/docs/configuring/services/secrets Mount each secret as a volume, which makes the secret available to the container as files. Reading a volume always fetches the secret value from Secret Manager, so it can be used with the latest version. This method also works well with secret rotation.
Topics
Community Discussion
No community discussion yet for this question.