[CLF-C02 Practice Questions Q26] Encryption at Rest for S3 and Managing the Keys

CLF-C02 Practice Questions Q26 Encryption at Rest for S3 and Managing the Keys Certification

“I heard S3 encrypts data automatically, so why is ‘leave it to SSE-S3’ wrong when the question says I want to manage the keys myself?”
“I thought encrypting the connection with HTTPS would also protect the files I store.”

AWS Certified Cloud Practitioner (exam code CLF-C02, CLF below) asks questions that test whether you can tell who manages the keys in S3 encryption. You choose the method from the wording of the requirement, “manage the keys yourself and decide who can use them,” by telling apart in transit and at rest, server-side and client-side, and SSE-S3 and SSE-KMS.

This article is Question 26 of a series that explains CLF practice questions one at a time. The author wrote the questions to match the scope of the exam; they are not actual exam questions. Choose your answer first, then read the explanation.


Question

A company encrypts contract files stored in Amazon S3 at rest. Company policy requires it to manage the keys used for encryption and to decide who can use the keys. Which methods meet this requirement? (Choose two.)

  • A. Use a bucket policy to allow only HTTPS traffic
  • B. Use an AWS KMS customer managed key to encrypt objects with server-side encryption (SSE-KMS)
  • C. Leave it to server-side encryption with Amazon S3 managed keys (SSE-S3)
  • D. Encrypt files with a key the company manages, and then upload them to S3 (client-side encryption)
  • E. Enable versioning on the S3 bucket

Once you have chosen two answers, open the section below.

Show the answer (click to open)

Answer: B and D

With SSE-KMS in B, the key policy of the customer managed key lets the company decide who can use the key. With client-side encryption in D, the company manages all of the encryption mechanism and the key.


The answer is B and D

The correct answers are B and D.

  • B: SSE-KMS. The key policy of the customer managed key lets you decide who can use the key
  • D: client-side encryption. You manage the encryption mechanism and the key entirely yourself

Let’s look at the options one at a time.


Explanation of each option

A: HTTPS protects data in transit (incorrect)

The top is divided into "In transit" and "At rest (data stored in S3)." At rest has server-side encryption (SSE-S3 and SSE-KMS) and client-side encryption. HTTPS (SSL/TLS, protects the path) on the far left is highlighted as "Not at rest." The bottom compares the requirement "Manage the keys yourself and decide who can use them" with a cross: "Protects data in transit. Separate from encrypting stored files or managing keys"

HTTPS (SSL/TLS) protects data in transit, shown on the left of the diagram. If you use a bucket policy to allow only HTTPS, you prevent eavesdropping along the way.

However, that is a separate matter from encrypting files stored in S3 or managing keys.

B: SSE-KMS lets you manage the keys (correct)

The top shows the same four methods as diagram A, with SSE-KMS (KMS customer managed key, Key: you (key policy)) highlighted. The bottom compares the requirement "Manage the keys yourself and decide who can use them" with a circle: "The key policy of a customer managed key lets you decide who can use the key"

SSE-KMS is one form of server-side encryption. S3 encrypts objects using a key in AWS KMS.

A customer managed key is a key that you create and manage. With the key policy, you decide who can use the key. You can also configure key rotation yourself.

C: With SSE-S3, S3 manages the key (incorrect)

The top shows the same four methods as diagram A, with SSE-S3 (S3 managed keys, Default since 2023-01-05, Key: managed by S3) highlighted. The bottom compares the requirement "Manage the keys yourself and decide who can use them" with a cross: "Encrypts at rest, but S3 manages the key. You cannot decide who can use it"

SSE-S3 also encrypts data at rest, but S3 manages the key. You cannot decide who can use the key.

Note that, since January 5, 2023, SSE-S3 has been the default in S3. Newly uploaded objects are encrypted without any configuration and at no additional cost.

D: With client-side encryption, you manage everything (correct)

The top shows the same four methods as diagram A, with Client-side (Encrypt yourself, then upload, Key: all yours) on the far right highlighted. The bottom compares the requirement with a circle: "You manage the encryption method and keys. The data arrives in S3 already encrypted"

With client-side encryption, as on the right of the diagram, you encrypt first and then upload. You encrypt the file yourself and send it to S3. The file arrives in S3 already encrypted.

You manage the encryption mechanism and the key entirely yourself. You also decide who can use the key.

E: Versioning keeps older versions (incorrect)

Inside an "S3 bucket with versioning enabled," contract.pdf Version 1 is overwritten to become Version 2, and overwritten again to become Version 3 (Current version (latest)); Versions 1 and 2 are "Kept as a previous version." You can roll back to a previous version. The bottom compares the requirement with a cross: "Keeps versions from before an overwrite or delete. Not encryption, and unrelated to key management"

When you enable versioning, previous versions are kept even if you overwrite or delete an object. It is a feature for restoring a file you overwrote or deleted by mistake.

It is not encryption, and it has nothing to do with key management.


Encryption methods and who manages the key

Encryption at rest comes in server-side and client-side forms. You tell the methods apart by who manages the key.

MethodData protectedWho manages the keyYou manage the key
SSE-S3 server-side encryptionAt restManaged by S3 / default since 2023-01-05×
SSE-KMS server-side encryptionAt restA KMS key / you decide the key policy○
Client-side encryptionAt restYou, for both the mechanism and the key○
HTTPS (SSL/TLS)In transitProtects the connection; not encryption at rest-

Key points

  • Encryption at rest is server-side (SSE-S3 and SSE-KMS) or client-side
  • To manage the keys yourself, use SSE-KMS (customer managed key) or client-side encryption
  • With SSE-S3, S3 manages the key (default since 2023-01-05)
  • HTTPS protects data in transit

The course articles explain the thinking behind encryption, AWS KMS key policies, and S3 encryption in detail.

  • Lecture 10, Part 3: Encryption with KMS, CloudHSM, and ACM, in the “AWS KMS” section
  • Lecture 5, Part 4: Glacier and lifecycle, in the “S3 security” section

You can read all 14 lectures of AWS Cloud Practitioner Exam Prep in order from its series page.


The CLF-C02 Practice Questions series (100 questions)

All 100 questions with a reading guide: CLF-C02 Practice Questions

In this group (Questions 19–30: The shared responsibility model and security):

This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.

コメント

Copied title and URL