Design Resilient Architectures

An application retrieves Amazon RDS for MySQL credentials from AWS Secrets Manager and caches them briefly. During automatic rotation, previously retrieved credentials must remain valid while applications adopt the new credentials. Which approach BEST meets this requirement?

Show the answer

Correct answerC. Use alternating-users rotation for the database secret

AWhy not this: Changing the same database user's password can invalidate cached credentials used for new connections.

BWhy not this: Parameter expiration does not rotate the database password or maintain overlapping credentials.

CWhy this is right: Alternating database users allows old and new credentials to overlap during the rotation transition.

DWhy not this: KMS key rotation rotates encryption key material, not database passwords.

Alternating-users rotation switches between database users, allowing the previous user's credentials to remain valid during the transition. Single-user rotation changes the same user's password, so cached old credentials can fail for new connections.