Data Protection

A custom single-user rotation function has privileged database access and receives a valid rotation token for an AWSPENDING version. That version names a different database host and username than AWSCURRENT, although its credentials authenticate successfully. What should the function do before changing any password?

Show the answer

Correct answerA. Reject the rotation because the target identity differs from the current secret

AWhy this is right: Rejecting mismatched targets prevents the privileged function from being redirected to an unintended resource.

BWhy not this: Changing both targets extends privileged actions to an unvalidated database and user.

CWhy not this: Successful authentication proves credential validity, not authorization to redirect the privileged rotation function.

DWhy not this: A valid token identifies a rotation version; it does not validate the database host or username.

A single-user rotation function should verify that pending and current credentials identify the same intended database and user before making privileged changes. Successful authentication and a valid rotation token do not establish that the pending target is authorized.