Question 240
A developer accidentally commits a plaintext AWS access key into a repository and the organization relies only on scans of deployed EC2 hosts. The proposed security action is: Add approved secrets and static security scanning into the CI pull-request workflow and rotate the exposed credential under incident procedures. What evidence best confirms that the remediation works as intended?
Explanation
Correct Answer
This result gives direct acceptance evidence: A dummy key fixture fails the premerge security check while the revoked real key can no longer authenticate. It tests the proposed configuration, Add approved secrets and static security scanning into the CI pull-request workflow and rotate the exposed credential under incident procedures., against the reported situation: A developer accidentally commits a plaintext AWS access key into a repository and the organization relies only on scans of deployed EC2 hosts. A merely healthy dashboard would not establish success, because Runtime host scanning does not find every secret or vulnerability introduced into the application supply chain before deployment.
Incorrect Answers
A test finding on an outdated container package demonstrates image vulnerability scanning. The exposed credential entered the source repository, so the needed preventive check is a premerge secret fixture failure plus proof that the leaked key has been revoked.
Patch compliance from a canary EC2 rollout concerns installed operating-system updates. It would not catch a plaintext AWS access key in a pull request or prevent the previously committed key from authenticating.
Segmentation and route tests establish who may communicate across network boundaries. The problem is a leaked long-lived IAM credential; that token could be used from other allowed locations unless the key is revoked and repository scanning prevents reintroduction.