Courseiva

DEA-C01 Data Security and Governance Practice Question

A data engineer needs to grant an IAM role used by an AWS Lambda function permission to read encrypted data from an Amazon S3 bucket. The data is encrypted with a customer-managed AWS KMS key. The engineer wants to follow the principle of least privilege. Which combination of actions should the engineer include in the IAM policy for the Lambda execution role?

⚠ Common exam trap

Watch out — candidates often confuse KMS actions, such as using kms:Encrypt or kms:GenerateDataKey instead of kms:Decrypt for reading encrypted data.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

s3:GetObject on the bucket and kms:Decrypt on the KMS key.

The Lambda function requires s3:GetObject to retrieve the object and kms:Decrypt to decrypt the data key used by S3 server-side encryption with KMS. These permissions are the minimal set needed to read the encrypted object. Other KMS actions like Encrypt, GenerateDataKey, or CreateGrant do not provide decryption capability and would not allow the function to read the data.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✓

    s3:GetObject on the bucket and kms:Decrypt on the KMS key.

    Why this is correct

    To read an encrypted object from S3, the Lambda function needs s3:GetObject permission on the object and kms:Decrypt permission on the KMS key used to encrypt the object. Without kms:Decrypt, S3 cannot decrypt the object for the caller. This combination follows least privilege by granting only the necessary actions for reading the specific data.

  • ✗

    s3:GetObject on the bucket and kms:GenerateDataKey on the KMS key.

    Why it's wrong here

    kms:GenerateDataKey is used to generate a data key for client-side encryption or for S3 to use when encrypting objects, not for decrypting existing objects. For reading, the service needs to decrypt the data key, which requires kms:Decrypt. Granting GenerateDataKey does not allow decryption and would not enable reading the object.

  • ✗

    s3:GetObject on the bucket and kms:CreateGrant on the KMS key.

    Why it's wrong here

    kms:CreateGrant allows creating grants on a KMS key, which can delegate permissions, but it does not directly allow decryption. The Lambda function needs kms:Decrypt to read the encrypted object. CreateGrant is typically used for granting temporary permissions and is not the correct action for direct decryption.

  • ✗

    s3:GetObject on the bucket and kms:Encrypt on the KMS key.

    Why it's wrong here

    kms:Encrypt allows encrypting data but not decrypting it. The Lambda function needs to decrypt the data to read it, so kms:Encrypt is insufficient. This would result in an access denied error when attempting to read the encrypted object. The correct permission for reading is kms:Decrypt.

Quick reference

AWS S3 Storage Class Comparison

Storage ClassMin DurationRetrievalUse Case
S3 StandardNoneImmediateFrequently accessed data
S3 Standard-IA30 daysImmediateInfrequent access, rapid retrieval
S3 One Zone-IA30 daysImmediateNon-critical infrequent data
S3 Intelligent-TieringNoneImmediate–hoursUnknown or changing access patterns
S3 Glacier Instant90 daysMillisecondsArchive with instant retrieval
S3 Glacier Flexible90 daysMinutes–hoursArchive, flexible retrieval
S3 Glacier Deep Archive180 daysHoursLong-term compliance archive

About these practice questions

Courseiva writes every DEA-C01 question from scratch — 1,321 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

This DEA-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DEA-C01 exam.