Question 130
During a security and availability review at a digital payments provider, the DevOps team discovers that a production build role cannot authenticate to the centralized CodeArtifact repository. The affected workload supports transaction authorization and reconciliation; availability and integrity are both required for financial settlement. Which automation approach BEST satisfies this operational requirement?
Explanation
Correct Answer
Correct. Publish approved versioned packages to AWS CodeArtifact, authorize build roles for retrieval, and pin dependencies used in reproducible releases. The reported condition is that a production build role cannot authenticate to the centralized CodeArtifact repository. The design addresses the corresponding exposure: Uncontrolled package sources or floating versions can introduce untested dependencies into builds. Its effectiveness must be demonstrated by this result: A clean CodeBuild environment resolves only approved pinned packages from the designated repository and reproduces the tested artifact.
Incorrect Answers
Inject short-lived or managed application build secrets from Secrets Manager or Systems Manager Parameter Store with narrowly scoped build-role permissions rather than embedding them in repository files or logs. That change would not implement codeartifact dependencies and controlled packages.
Configure source integration and revision-specific event triggers so the pipeline deploys the exact approved commit and records its immutable revision identifier. The configuration must instead establish codeartifact dependencies and controlled packages.
Use a pipeline with delegated cross-account IAM roles and an artifact store whose encryption keys permit the destination account to retrieve approved artifacts. The codeartifact dependencies and controlled packages prerequisite remains unaddressed.