“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)

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)

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)

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)

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)

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.
| Method | Data protected | Who manages the key | You manage the key |
|---|---|---|---|
| SSE-S3 server-side encryption | At rest | Managed by S3 / default since 2023-01-05 | × |
| SSE-KMS server-side encryption | At rest | A KMS key / you decide the key policy | ○ |
| Client-side encryption | At rest | You, for both the mechanism and the key | ○ |
| HTTPS (SSL/TLS) | In transit | Protects 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):
- Question 19: Principle of least privilege (IAM policies and SCPs)
- Question 20: Shared responsibility model (what AWS is responsible for with EC2 and S3)
- Question 21: Examples of shared controls (IT controls in the shared responsibility model)
- Question 22: Compliance reports and agreements (AWS Artifact)
- Question 23: Threat detection (Amazon GuardDuty)
- Question 24: Continuous vulnerability scanning (Amazon Inspector)
- Question 25: Discovering sensitive data in S3 (Amazon Macie)
- Question 26: Encryption at rest for S3 and managing the keys (SSE-KMS and client-side encryption) (this article)
- Question 27: Finding out who made a change (AWS CloudTrail)
- Question 28: A list of IAM users’ credentials (credential report)
- Question 29: Granting permissions to an application on EC2 (IAM roles)
- Question 30: Automatic rotation of database passwords (AWS Secrets Manager)
This series is the English edition of 【CLF-C02 試験対策問題】, originally written in Japanese.


コメント