Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 852 discussion

A solutions architect needs to implement a client-side encryption mechanism for objects that will be stored in a new Amazon S3 bucket. The solutions architect created a CMK that is stored in AWS Key Management Service (AWS KMS) for this purpose.
The solutions architect created the following IAM policy and attached it to an IAM role:

During tests, the solutions architect was able to successfully get existing test objects in the S3 bucket. However, attempts to upload a new object resulted in an error message. The error message stated that the action was forbidden.
Which action must the solutions architect add to the IAM policy to meet all the requirements?

  • A. kms:GenerateDataKey
  • B. kms:GetKeyPolicy
  • C. kms:GetPublicKey
  • D. kms:Sign
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
devilman222
1 month, 3 weeks ago
Selected Answer: A
Obviously A. Since the correct answer is usually wrong, can they just get rid of that and use most voted.
upvoted 1 times
...
Simon523
1 year, 1 month ago
Selected Answer: A
SSE-KMS (with a customer managed key) – To upload objects, the kms:GenerateDataKey permission on the AWS KMS key is required.
upvoted 1 times
...
AwsBRFan
1 year, 11 months ago
Selected Answer: A
https://aws.amazon.com/premiumsupport/knowledge-center/s3-access-denied-error-kms/ "An error occurred (AccessDenied) when calling the PutObject operation: Access Denied" This error message indicates that your IAM user or role needs permission for the kms:GenerateDataKey action.
upvoted 1 times
...
hilft
2 years, 2 months ago
A. kms:GenerateDataKey
upvoted 2 times
...
Millari
2 years, 2 months ago
Selected Answer: A
https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingClientSideEncryption.html
upvoted 1 times
...
aandc
2 years, 3 months ago
Selected Answer: A
https://aws.amazon.com/premiumsupport/knowledge-center/s3-access-denied-error-kms/
upvoted 2 times
...
Bigbearcn
2 years, 5 months ago
Selected Answer: A
https://docs.aws.amazon.com/kms/latest/cryptographic-details/client-side-encryption.html
upvoted 1 times
...
mirnuj_atom
2 years, 5 months ago
Selected Answer: A
Correct answer should be A kms:GenerateDataKey
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...