An attacker copied a database password stored in AWS Secrets Manager, and responders have closed the exposure path. Which action invalidates the stolen password while keeping the application able to reconnect?
Show the answer
Correct answerA. Rotate the database password and synchronize the stored secret.
AWhy this is right: Coordinated rotation invalidates the copied password and gives the application the replacement credential.
BWhy not this: Blocking further secret retrieval does not invalidate the password already in the attacker's possession.
CWhy not this: Disabling the KMS key impedes secret retrieval but does not change the password accepted by the database.
DWhy not this: Changing only the stored value leaves the stolen database password valid and can break application connections.
Rotation must change the password accepted by the database and keep the application's stored secret synchronized. Removing access to Secrets Manager prevents future retrieval but does not invalidate a password the attacker already copied.