PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #192
You are troubleshooting a failed deployment in your CI/CD pipeline. The deployment logs indicate that the application container failed to start due to a missing environment variable. You need to ident
The correct answer is C. Run integration tests in the CI pipeline.. The root cause is a missing environment variable that only surfaces at container startup time. Integration tests run the application in a realistic environment (including its dependencies and configuration), which would catch missing environment variables before code reaches prod
Question
Options
- AUse a canary deployment strategy.
- BImplement static code analysis in the CI pipeline.
- CRun integration tests in the CI pipeline.
- DEnable Cloud Audit Logs for the deployment.
How the community answered
(20 responses)- A10% (2)
- B5% (1)
- C80% (16)
- D5% (1)
Explanation
The root cause is a missing environment variable that only surfaces at container startup time. Integration tests run the application in a realistic environment (including its dependencies and configuration), which would catch missing environment variables before code reaches production. Option A (canary deployment) reduces blast radius but does not prevent the issue from occurring. Option B (static code analysis) examines source code syntax and patterns but cannot detect missing runtime environment variables. Option D (Cloud Audit Logs) captures API calls for security auditing and is not useful for diagnosing or preventing application misconfiguration in a CI/CD pipeline.
Topics
Community Discussion
No community discussion yet for this question.