Question 40
During a security and availability review at a digital payments provider, the DevOps team discovers that build logs print an API token because a shell command uses verbose tracing. 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. 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. The reported condition is that build logs print an API token because a shell command uses verbose tracing. The design addresses the corresponding exposure: A leaked build credential can grant unintended production access, and static repository secrets are difficult to revoke consistently. Its effectiveness must be demonstrated by this result: A controlled build reads the authorized secret at runtime, hides the value in logs, and cannot retrieve unrelated production secrets.
Incorrect Answers
Run automated tests in CodeBuild before any production deployment action, and fail the pipeline when required unit or integration checks fail. The configuration must instead establish protected pipeline build secrets.
Configure source integration and revision-specific event triggers so the pipeline deploys the exact approved commit and records its immutable revision identifier. The protected pipeline build secrets prerequisite remains unaddressed.
Add representative automated acceptance and performance tests to a controlled preproduction pipeline gate with pass/fail thresholds tied to service objectives. It changes a different feature than protected pipeline build secrets.