ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 135 - SCS-C01 discussion

Report
Export

An IAM user with fill EC2 permissions could bot start an Amazon EC2 instance after it was stopped for a maintenance task. Upon starting the instance, the instance state would change to “Pending”, but after a few seconds, it would switch back to “Stopped”.

An inspection revealed that the instance has attached Amazon EBS volumes that were encrypted by using a Customer Master Key (CMK). When these encrypted volumes were detached, the IAM user was able to start the EC2 instances. The IAM user policy is as follows:

What additional items need to be added to the IAM user policy? (Choose two.)

A.
kms:GenerateDataKey
Answers
A.
kms:GenerateDataKey
B.
kms:Decrypt
Answers
B.
kms:Decrypt
C.
kms:CreateGrant
Answers
C.
kms:CreateGrant
D.
“Condition”: {“Bool”: {“kms:ViaService”: “ec2.us-west-2.amazonaws.com”}}
Answers
D.
“Condition”: {“Bool”: {“kms:ViaService”: “ec2.us-west-2.amazonaws.com”}}
E.
“Condition”: {“Bool”: {“kms:GrantIsForAWSResource”: true}}
Answers
E.
“Condition”: {“Bool”: {“kms:GrantIsForAWSResource”: true}}
Suggested answer: C, E

Explanation:

The EBS which is AWS resource service is encrypted with CMK and to allow EC2 to decrypt , the IAM user should create a grant ( action) and a boolean condition for the AWs resource . This link explains how AWS keys works. https:// docs.aws.amazon.com/kms/latest/developerguide/key-policies.html

asked 16/09/2024
Ayanda Zwane
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first