nerdexam
Amazon

SAP-C02 · Question #127

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…

The correct answer is A. kms:GenerateDataKey. https://aws.amazon.com/premiumsupport/knowledge-center/s3-access-denied-error-kms/

Submitted by hans_de· Mar 6, 2026Design for New Solutions

Question

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?

Options

  • Akms:GenerateDataKey
  • Bkms:GetKeyPolicy
  • Ckms:GetPublicKey
  • Dkms:Sign

How the community answered

(48 responses)
  • A
    83% (40)
  • B
    10% (5)
  • C
    4% (2)
  • D
    2% (1)

Explanation

https://aws.amazon.com/premiumsupport/knowledge-center/s3-access-denied-error-kms/

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice