LeetQuiz Logo
Privacy Policy•contact@leetquiz.com
© 2025 LeetQuiz All rights reserved.
Google Professional Cloud DevOps Engineer

Google Professional Cloud DevOps Engineer

Get started today

Ultimate access to all questions.


You are debugging a failed deployment in your CI/CD pipeline. The logs show the application container failed to start because an environment variable was missing. How would you determine the root cause and modify your CI/CD workflow to prevent this issue in the future?

Exam-Like



Explanation:

The root cause of the failed deployment is a missing environment variable, which is a configuration issue. To prevent this issue from recurring, the best approach is to implement static code analysis in the CI pipeline (Option B). Static code analysis can help identify missing or incorrect environment variables before the code is deployed. While canary deployments (Option A) can help mitigate the impact of failed deployments, they do not address the root cause. Integration tests (Option C) are important but may not catch configuration issues like missing environment variables. Enabling Cloud Audit Logs (Option D) is useful for monitoring and auditing but does not prevent configuration errors. Therefore, the correct answer is B.

Powered ByGPT-5