A CloudFormation execution role references a cross-account Secrets Manager secret by full ARN; the role and secret policies allow retrieval, but the secret uses the AWS managed aws/secretsmanager key. Which change enables the dynamic reference without copying the secret?
Show the answer
Correct answerD. Use a customer managed KMS key and authorize the execution role to decrypt.
AWhy not this: The AWS managed aws/secretsmanager key cannot be configured to permit cross-account secret retrieval.
BWhy not this: CloudFormation uses the execution role to resolve the reference; permissions for the deployment initiator do not replace its permissions.
CWhy not this: NoEcho masks parameter display but does not change the KMS permissions needed to retrieve the secret.
DWhy this is right: A customer managed key can authorize cross-account decryption through its key policy and the execution role's permissions.
Cross-account secret retrieval requires a customer managed KMS key with permissions allowing the execution role to decrypt. The AWS managed aws/secretsmanager key cannot support this cross-account access, and its key policy cannot be edited.