ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 160 - DVA-C01 discussion

Report
Export

An application running on Amazon EC2 instances must access objects within an Amaon S3 busket that are encrypted using server-side encryption using AWS KMS encryption keys (SSE-KMS). The application must have access to the customer master key (CMK) to decrypt the objects.

Which combination of steps will grant the application access? (Select TWO.)

A.
Write an S3 bucket policy that grants the bucket access to the key.
Answers
A.
Write an S3 bucket policy that grants the bucket access to the key.
B.
Grant access to the key in the IAM EC2 role attached to the application’s EC2 instances.
Answers
B.
Grant access to the key in the IAM EC2 role attached to the application’s EC2 instances.
C.
Write a key policy that enables IAM policies to grant access to the key.
Answers
C.
Write a key policy that enables IAM policies to grant access to the key.
D.
Grant access to the key in the S3 bucket’s ACL
Answers
D.
Grant access to the key in the S3 bucket’s ACL
E.
Create a Systems Manager parameter that exposes the KMS key to the EC2 instances.
Answers
E.
Create a Systems Manager parameter that exposes the KMS key to the EC2 instances.
Suggested answer: B, C

Explanation:

https://aws.amazon.com/premiumsupport/knowledge-center/decrypt-kms-encrypted-objects-s3/IAM role needs access to the keys to decrypt the object and key policies must allow role access to the key. Key policies are the primary way to control access to customer master keys (CMKs) in AWS KMS.

You need the permission to decrypt the AWS KMS key. When a user sends a GET request, Amazon S3 checks if the AWS Identity and Access Management (IAM) user or role that sent the request is authorized to decrypt the key associated with the object. If the IAM user or role belongs to the same AWS account as the key, then the permission to decrypt must be granted on the AWS KMS key’s policy.

asked 16/09/2024
Mike Werts
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first