Free Google Professional Cloud DevOps Actual Exam Questions - Question 6 Discussion

Question No. 6
[Building and implementing CI/CD pipelines for a service]
You are building an application that runs on Cloud Run The application needs to access a third-party
API by using an API key You need to determine a secure way to store and use the API key in your
application by following Google-recommended practices What should you do?
Select one option, then reveal solution.
US
JJ
John J.
2026-01-29

Cloud KMS in C and D is more about encryption keys, not storing API keys directly. So those options don’t fit here. Using Secret Manager like in A is really the best practice for managing secrets securely in Cloud Run.

0
JJ
John J.
2026-01-25

I’m with A on this one. Cloud Run has built-in support for pulling secrets from Secret Manager directly into environment variables, which is super straightforward and secure. Mounting secrets like in B isn’t even supported in Cloud Run, so that option’s kind of a non-starter. Using Cloud KMS like in C or D makes things complicated since you’d have to handle encryption/decryption yourself, and Google recommends Secret Manager for managing secrets properly. So A makes the most sense here for both security and simplicity.

0
PT
Paul T.
2026-01-20

B imo since mounting secrets is more secure than env vars exposed directly.

0
PT
Paul T.
2026-01-17

Looks like A is the best practice here.

0