A retail company wants to share daily transaction logs stored in an Amazon S3 bucket in Account A () with an analytics application running on Amazon EC2 instances in Account B (). The S3 bucket is configured with default encryption using AWS Key Management Service (AWS KMS). Which of the following describes a mandatory configuration for the KMS key to allow the analytics application in Account B to decrypt the log files?
- A customer managed KMS key must be used, and its key policy in Account A must explicitly grant the analytics application's role in Account B permission to use the key.Cevap
- BThe default AWS managed KMS key (aws/s3) can be used, provided that a Service Control Policy (SCP) is applied at the organization level to permit cross-account decryption.
- CThe default AWS managed KMS key (aws/s3) can be used, as long as Account B attaches an IAM policy to the EC2 instance role that grants the kms:Decrypt permission.
- DA customer managed KMS key must be used, and it must be shared with Account B using AWS Resource Access Manager (RAM) to delegate access.
Cevap
A customer managed KMS key must be used, and its key policy in Account A must explicitly grant the analytics application's role in Account B permission to use the key.
To decrypt resources across different AWS accounts, the KMS key must support policy modification. AWS managed KMS keys (such as aws/s3) have fixed policies that cannot be altered to grant cross-account access. Therefore, a customer managed KMS key must be utilized. Its key policy must be updated to explicitly grant the decryption permissions to Account B's IAM role.
Adım Adım Çözüm
Anahtar Kavram
Cross-account access to KMS-encrypted resources requires customer managed keys and explicit key policy delegation.
Tahmini Süre:1m 30s