AWS Certified Security – Specialty (SCS-C02) — Question 225

A company’s engineering team is developing a new application that creates AWS Key Management Service (AWS KMS) customer managed key grants for users. Immediately after a grant is created, users must be able to use the KMS key to encrypt a 512-byte payload. During load testing, AccessDeniedException errors occur occasionally when a user first attempts to use the key to encrypt.

Which solution should the company’s security specialist recommend to eliminate these AccessDeniedException errors?

Answer options

Correct answer: D

Explanation

The correct answer is D because it ensures that users are using the grant token that was specifically issued to them in the CreateGrant response, which provides them the necessary permissions to encrypt successfully. Options A and B do not directly address the timing and permissions issue, while option C introduces unnecessary complexity without resolving the underlying problem.