DEA-C01 Practice Question 99: S3 Bucket Policy Secure Transport
AWS Certified Data Engineer – Associate (DEA-C01) · Test 10 · question 9 of 10
A compliance policy requires that all access to the objects in an Amazon S3 data lake bucket use encrypted connections. Some older applications still call the bucket over plain HTTP. How should the data engineer enforce the policy?
Show answer and explanation
Answer:
AWS recommends to *"enforce encryption of data in transit"* by *"allowing only encrypted connections over HTTPS (TLS) by using the aws:SecureTransport condition in your Amazon S3 bucket policies."* A statement that denies all S3 actions when aws:SecureTransport is false rejects plain HTTP requests (option A). AWS also suggests the s3-bucket-ssl-requests-only AWS Config rule as a detective control.
- B is wrong because default encryption protects objects at rest. It does not require clients to use HTTPS. - C is wrong because a VPC endpoint policy limits which principals and buckets can be reached through the endpoint. It does not require TLS, and HTTP requests from the VPC would still work. - D is wrong because MFA conditions control who can act, not how the connection is encrypted. Requests over plain HTTP could still satisfy them.
Reference: Security best practices for Amazon S3