Cloud Concepts, Architecture and Design

A pipeline scan finds cloud access keys that were committed to a Git repository months ago. Which response BEST addresses the exposure?

Show the answer

Correct answerD. Revoke the keys and use a secrets manager

AWhy not this: The keys remain in commit history and stay valid, so anyone who already copied them can still use them.

BWhy not this: Encryption at rest does not protect keys from users and systems that can read the repository.

CWhy not this: Restricting access does not invalidate keys that may already have been exposed or cloned.

DWhy this is right: Revoking invalidates the exposed credentials, and a secrets manager keeps future secrets out of code.

Committed keys stay in repository history and may already be copied, so they must be revoked and replaced, with secrets kept in a secrets manager. Removing them in a new commit leaves them in history and still valid.