A role in account B must directly retrieve a Secrets Manager secret in account A that uses the AWS managed key aws/secretsmanager. Neither account permits broad principal access. Which configuration enables this access?
Show the answer
Correct answerC. Use a customer managed key; allow the role in the secret policy, key policy, and identity policy.
AWhy not this: The AWS managed aws/secretsmanager key cannot be used for cross-account secret access.
BWhy not this: An identity permission cannot make the AWS managed key usable for cross-account secret decryption.
CWhy this is right: A customer managed key and appropriately scoped secret, key, and identity policies authorize cross-account retrieval.
DWhy not this: Cross-account access also requires a resource policy on the secret permitting the external role.
Cross-account retrieval requires authorization for both the secret and its encryption key, including permissions in the caller's account. The AWS managed aws/secretsmanager key cannot support this cross-account access; a customer managed key is required.