Security
A developer stores an encrypted database password in AWS Systems Manager Parameter Store as a SecureString. The application receives encrypted text when retrieving it. What should the developer change?
Show the answer
Correct answerC. Request decryption and allow kms:Decrypt on the parameter's KMS key.
AWhy not this: A String parameter would remove encrypted secret storage rather than correctly retrieve the SecureString.
BWhy not this: Parameter history returns versions; DescribeKey permits viewing key metadata, not decrypting values.
CWhy this is right: WithDecryption requests plaintext, and KMS authorization permits the decryption operation.
DWhy not this: Key rotation and path-based retrieval do not request decryption of the returned value.
Retrieving a SecureString as plaintext requires requesting decryption and having permission to use its KMS key for decryption. Reading parameter history does not itself decrypt the returned values.