Question 320
A bank validates a signed container image in staging and requires production to run precisely the tested bytes. The team finds that The production pipeline rebuilds from source and pulls a newer dependency, producing different image contents. Which engineering change is the most direct response?
Explanation
Correct Answer
This change addresses the production pipeline rebuilds from source and pulls a newer dependency, producing different image contents. The key principle is that a single immutable artifact keeps validation and production tied to identical code bytes.
Incorrect Answers
CI/CD automation also needs least privilege because pipelines can become an attack path. “Give the deployment job a short-lived, namespace-scoped identity with only needed verbs” would address that alternative cause, not the condition in this question: a single immutable artifact keeps validation and production tied to identical code bytes.
“Use versioned configuration-as-code automation with idempotent baseline enforcement” responds to this separate finding: configuration-as-code targets operating-system and software state consistently across hosts. This question instead needs “Promote the immutable tested image digest to production without rebuilding”, so the alternative does not meet the stated condition.
Compilation alone does not validate behavior across service boundaries. “Add automated contract and integration tests as required predeployment gates” applies to that separate problem. The observed case is a bank validates a signed container image in staging and requires production to run precisely the tested bytes; choosing this alternative would address the wrong failure mode.