ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 20 - DOP-C02 discussion

Report
Export

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.)

A.
In the source account, copy the unencrypted AMI to an encrypted AMI. Specify the KMS key in the copy action.
Answers
A.
In the source account, copy the unencrypted AMI to an encrypted AMI. Specify the KMS key in the copy action.
B.
In the source account, copy the unencrypted AMI to an encrypted AMI. Specify the default Amazon Elastic Block Store (Amazon EBS) encryption key in the copy action.
Answers
B.
In the source account, copy the unencrypted AMI to an encrypted AMI. Specify the default Amazon Elastic Block Store (Amazon EBS) encryption key in the copy action.
C.
In the source account, create a KMS grant that delegates permissions to the Auto Scaling group service-linked role in the target account.
Answers
C.
In the source account, create a KMS grant that delegates permissions to the Auto Scaling group service-linked role in the target account.
D.
In the source account, modify the key policy to give the target account permissions to create a grant. In the target account, create a KMS grant that delegates permissions to the Auto Scaling group service-linked role.
Answers
D.
In the source account, modify the key policy to give the target account permissions to create a grant. In the target account, create a KMS grant that delegates permissions to the Auto Scaling group service-linked role.
E.
In the source account, share the unencrypted AMI with the target account.
Answers
E.
In the source account, share the unencrypted AMI with the target account.
F.
In the source account, share the encrypted AMI with the target account.
Answers
F.
In the source account, share the encrypted AMI with the target account.
Suggested answer: A, D, F

Explanation:

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.

asked 16/09/2024
Alan Phillips
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first