Question 1,588 of 1,786
Data Security and GovernanceeasyMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is the IAM policy statement granting `kms:Decrypt` and `kms:GenerateDataKey` actions on the KMS key resource. This is because AWS Glue jobs interacting with SSE-KMS encrypted S3 data require two distinct KMS permissions: `kms:Decrypt` to read existing encrypted objects, and `kms:GenerateDataKey` to create a new data key for writing encrypted data back to S3. Without `kms:GenerateDataKey`, the Glue job cannot encrypt new objects during write operations, even if it has decrypt permissions. On the AWS Certified Data Engineer Associate DEA-C01 exam, this scenario tests your understanding that SSE-KMS is a server-side encryption method where S3 calls KMS on your behalf, so the IAM role must explicitly allow both actions. A common trap is choosing only `kms:Decrypt` or `kms:Encrypt`—remember that writing encrypted data requires generating a data key, not just encrypting. Memory tip: “Decrypt to read, GenerateDataKey to seed” the write operation.

DEA-C01 Data Security and Governance Practice Question

This DEA-C01 practice question tests your understanding of data security and governance. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A data engineer is configuring AWS Glue jobs to access data stored in Amazon S3. The data is encrypted using server-side encryption with AWS KMS (SSE-KMS). The Glue job needs to read and write data to the S3 bucket. Which IAM policy statement should be added to the Glue job's IAM role to allow it to use the KMS key?

Question 1easymultiple choice
Full question →

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

{"Effect":"Allow","Action":["kms:Decrypt","kms:GenerateDataKey"],"Resource":"*"}

To read and write data encrypted with SSE-KMS, AWS Glue needs both `kms:Decrypt` (to read existing encrypted data) and `kms:GenerateDataKey` (to create a new data key for writing encrypted data). `kms:GenerateDataKey` is required because S3 uses a data key to encrypt objects, and the caller must generate that key via KMS. Option B correctly includes both actions, allowing the Glue job to perform read and write operations on the SSE-KMS encrypted bucket.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • {"Effect":"Allow","Action":["kms:Decrypt"],"Resource":"*"}

    Why it's wrong here

    Missing kms:GenerateDataKey for writing.

  • {"Effect":"Allow","Action":["kms:Decrypt","kms:GenerateDataKey"],"Resource":"*"}

    Why this is correct

    These actions allow reading (Decrypt) and writing (GenerateDataKey) encrypted data.

    Related concept

    Read the scenario before looking for a memorised answer.

  • {"Effect":"Allow","Action":["kms:Decrypt","kms:ReEncrypt"],"Resource":"*"}

    Why it's wrong here

    kms:ReEncrypt is not needed; missing kms:GenerateDataKey.

  • {"Effect":"Allow","Action":["kms:Decrypt","kms:Encrypt"],"Resource":"*"}

    Why it's wrong here

    Missing kms:GenerateDataKey for writing; also kms:Encrypt alone is not sufficient for SSE-KMS writes.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume `kms:Encrypt` is needed for writing encrypted data, but S3 SSE-KMS actually requires `kms:GenerateDataKey` because the encryption is done with a derived data key, not by calling `kms:Encrypt` directly.

Detailed technical explanation

How to think about this question

When S3 uses SSE-KMS, the actual object encryption is performed using a unique data key, not the KMS key directly. The `kms:GenerateDataKey` action returns a plaintext data key for encryption and a ciphertext version for storage; the plaintext key is discarded after use, and the ciphertext key is stored with the object. Without `kms:GenerateDataKey`, the Glue job cannot initiate the write operation because S3 cannot obtain a data key to encrypt the new object.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related DEA-C01 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free DEA-C01 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this DEA-C01 question test?

Data Security and Governance — This question tests Data Security and Governance — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: {"Effect":"Allow","Action":["kms:Decrypt","kms:GenerateDataKey"],"Resource":"*"} — To read and write data encrypted with SSE-KMS, AWS Glue needs both `kms:Decrypt` (to read existing encrypted data) and `kms:GenerateDataKey` (to create a new data key for writing encrypted data). `kms:GenerateDataKey` is required because S3 uses a data key to encrypt objects, and the caller must generate that key via KMS. Option B correctly includes both actions, allowing the Glue job to perform read and write operations on the SSE-KMS encrypted bucket.

What should I do if I get this DEA-C01 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.