Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Amazon Exam DOP-C02 Topic 4 Question 55 Discussion

Actual exam question for Amazon's DOP-C02 exam
Question #: 55
Topic #: 4
[All DOP-C02 Questions]

A company must encrypt all AMIs that the company shares across accounts. A DevOps engineer has access to a source account where an unencrypted custom AMI has been built. The DevOps engineer also has access to a target account where an Amazon EC2 Auto Scaling group will launch EC2 instances from the AMI. The DevOps engineer must share the AMI with the target account.

The company has created an AWS Key Management Service (AWS KMS) key in the source account.

Which additional steps should the DevOps engineer perform to meet the requirements? (Choose three.)

Show Suggested Answer Hide Answer
Suggested Answer: A, D, F

The Auto Scaling group service-linked role must have a specific grant in the source account in order to decrypt the encrypted AMI. This is because the service-linked role does not have permissions to assume the default IAM role in the source account.

The following steps are required to meet the requirements:

In the source account, copy the unencrypted AMI to an encrypted AMI. Specify the KMS key in the copy action.

In the source account, create a KMS grant that delegates permissions to the Auto Scaling group service-linked role in the target account.

In the source account, share the encrypted AMI with the target account.

In the target account, attach the KMS grant to the Auto Scaling group service-linked role.

The first three steps are the same as the steps that I described earlier. The fourth step is required to grant the Auto Scaling group service-linked role permissions to decrypt the AMI in the target account.


Contribute your Thoughts:

Tawanna
2 hours ago
Based on the question, I believe the right steps are A, C, and F. Copying the AMI to an encrypted version, creating a KMS grant in the source account, and then sharing the encrypted AMI.
upvoted 0 times
...
Carri
6 days ago
I'm a bit confused about the KMS key and grant permissions. Do I need to do something with those in both the source and target accounts?
upvoted 0 times
...
Earleen
11 days ago
Okay, I think I've got this. The key is to encrypt the AMI and share the encrypted version with the target account.
upvoted 0 times
...
Belen
17 days ago
Hmm, this looks like a tricky one. I'll need to carefully read through the requirements and think through the steps.
upvoted 0 times
...

Save Cancel