AWS Certified SysOps Administrator – Associate — Question 160

A company's SysOps administrator has created an Amazon EC2 instance with custom software that will be used as a template for all new EC2 instances across multiple AWS accounts. The Amazon Elastic Block Store (Amazon EBS) volumes that are attached to the EC2 instance are encrypted with AWS managed keys.

The SysOps administrator creates an Amazon Machine Image (AMI) of the custom EC2 instance and plans to share the AMI with the company's other AWS accounts. The company requires that all AMIs are encrypted with AWS Key Management Service (AWS KMS) keys and that only authorized AWS accounts can access the shared AMIs.

Which solution will securely share the AMI with the other AWS accounts?

Answer options

Correct answer: B

Explanation

The correct answer is B because it involves creating a customer managed KMS key, adjusting the key policy to grant necessary permissions, and then copying the AMI to ensure it is encrypted with the KMS key before sharing with specific AWS accounts. Option A does not mention copying the AMI, which is necessary for KMS encryption compliance. Option C incorrectly suggests making the AMI public, which contradicts the requirement of sharing only with authorized accounts. Option D uses the AWS managed key, which does not provide the required level of control over permissions.