Data Security and Governance

An application retrieves an RDS PostgreSQL password from AWS Secrets Manager and briefly caches it. New connections must succeed with the previously retrieved credentials while rotation updates and tests replacement credentials. Which rotation strategy meets this requirement?

Show the answer

Correct answerC. Use alternating-users rotation with a separate elevated-privilege secret.

AWhy not this: KMS key rotation changes encryption key material, not the database credentials or their validity during password rotation.

BWhy not this: A longer interval reduces rotation frequency but does not prevent cached passwords from failing during single-user rotation.

CWhy this is right: Alternating users preserves the current user's credentials while an elevated account updates and tests the other user's password.

DWhy not this: Longer caching increases exposure to stale passwords when single-user rotation changes the database password.

Alternating-users rotation updates the inactive database user while the current user's credentials remain valid, reducing disruption during rotation. Single-user rotation changes the same user's password, so cached credentials can fail for new connections.