Question 10
A payment API compiles successfully but a recent change breaks the contract with the inventory service. The team finds that The pipeline deploys a build immediately after compilation without running integration tests. Which engineering change is the most direct response?
Explanation
Correct Answer
This change addresses the pipeline deploys a build immediately after compilation without running integration tests. The key principle is that compilation alone does not validate behavior across service boundaries.
Incorrect Answers
A single immutable artifact keeps validation and production tied to identical code bytes. “Promote the immutable tested image digest to production without rebuilding” would address that alternative cause, not the condition in this question: compilation alone does not validate behavior across service boundaries.
“Give the deployment job a short-lived, namespace-scoped identity with only needed verbs” responds to this separate finding: cI/CD automation also needs least privilege because pipelines can become an attack path. This question instead needs “Add automated contract and integration tests as required predeployment gates”, so the alternative does not meet the stated condition.
Variables enable reuse; secret values still need separate protected storage and access control. “Reference protected secret-store values through scoped variables instead of committing credentials” applies to that separate problem. The observed case is a payment API compiles successfully but a recent change breaks the contract with the inventory service; choosing this alternative would address the wrong failure mode.