Security policy requires that all access to a data lake bucket uses encrypted connections. How do you enforce encryption in transit?
- Exam domain
- Data Security and Governance18% of the exam
- Difficulty
- Medium
- In this mock
- 19 questions on this domainPractise this domain
Why the exam asks this
Task Statement 4.3: Ensure data encryption and masking.
Objective in the exam guide: Enable encryption in transit or before transit for data.
Data intercepted in transit is still a breach. Enforcing TLS at the bucket removes the risk of a misconfigured client.
Why B is the answer
Add a bucket policy that denies requests where aws:SecureTransport is false
A bucket policy denying non-TLS requests forces all access to use encrypted connections.
Remember: Enforce TLS for S3: deny requests without aws:SecureTransport.
How it works
Encryption in transit protects data as it moves over the network, using TLS.
An S3 bucket policy can deny any request where aws:SecureTransport is false, forcing all clients to use HTTPS.
Client-side encryption, done before upload, protects data before it is even sent.
Clues in the question
The words that point to the answer, and what each one tells you.
- All access uses encrypted connections
- Enforce TLS.
In detail
- Encryption at rest and in transit are separate controls.
- Client-side encryption protects data even before it is sent.
Side by side with look-alikes
| Control | Protects |
|---|---|
| Deny without SecureTransport | Data in transit |
| SSE-KMS | Data at rest |
| Client-side encryption | Data before it is sent |
| Versioning | Accidental deletion |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Turn on S3 InventoryWrong
Inventory lists objects.
B. Add a bucket policy that denies requests where aws:SecureTransport is falseRight
Enforce TLS for S3: deny requests without aws:SecureTransport.
C. Enable S3 VersioningWrongMost tempting
Versioning keeps object versions; it does not encrypt connections.
Why it tempts: Versioning is a common bucket hardening step. But it protects against deletion, not unencrypted connections.
D. Use a cheaper storage classWrong
Storage class affects cost, not transport.
In practice
- Include the TLS deny statement in every data bucket template.
Use case
An illustrative scenario, not a real incident.
After adding the deny rule, an old script using plain HTTP fails and is fixed to use HTTPS.
See how it works
flowchart LR
C["Client request"] --> T{"Over TLS?"}
T -->|"Yes"| A["Allowed"]
T -->|"No"| D["Denied by bucket policy"]How to read this chart
- "Client request" leads to "Over TLS?".
- At "Over TLS?": if "Yes", go to "Allowed"; if "No", go to "Denied by bucket policy".