A custom client signs a DynamoDB request with valid credentials and the correct Region, service, and timestamp. A proxy then reformats the JSON body without changing its meaning, and DynamoDB returns SignatureDoesNotMatch; what should the developer change?
Show the answer
Correct answerA. Prevent body changes after request signing
AWhy this is right: The transmitted payload must match the payload used to calculate the signature.
BWhy not this: Permissions affect authorization after authentication; they do not repair a signature invalidated by payload changes.
CWhy not this: DynamoDB API requests use AWS request authentication, not an identity provider token substituted for the signature.
DWhy not this: The credentials are valid, and a longer session does not correct a changed payload hash.
Signature Version 4 binds the request to its payload hash, so even semantically equivalent JSON changes invalidate the signature. Broader IAM permissions cannot fix a mismatch between the signed bytes and the transmitted bytes.