Question 290
A CI security check discovers a production cloud API token and a private signing key committed to source-repository history before any application is deployed. Which specialized assessment and response best match this finding?
Explanation
Correct Answer
Repository secret scanning searches versioned files and history for credential patterns before or independently of execution. An exposed API token or signing key is an immediate identity and supply-chain risk: revoke or rotate the live secret, investigate potential use and prevent new commits through scanning and secret-management controls.
Incorrect Answers
Dynamic application security testing exercises a running service to discover behavior such as injection or improper authorization.
A load-balancer packet capture can reveal network conversations and certain exposed data flows, but it cannot inventory strings in an unexecuted source-control history.
Memory profiling diagnoses allocation patterns, leaks or runtime secret handling within executing processes.






CompTIA Security+ (SY0-701) Practice Tests