DEA-C01 Data Security and Governance Practice Question
A company stores sensitive data in S3 and uses VPC endpoints to access the bucket. They need to ensure that only traffic from their VPC can access the data, and that the traffic cannot leave the AWS network. Which combination of bucket policy and endpoint policy should they use?
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
✓
Use an S3 VPC Gateway endpoint and add a bucket policy with aws:SourceVpc condition
Using an S3 VPC Gateway endpoint with a bucket policy that includes the aws:SourceVpc condition restricts access to traffic originating from the specified VPC, and Gateway endpoints use AWS private network, ensuring traffic does not leave the AWS network. Option A is incorrect because aws:SourceIp checks IP addresses, not VPC origin, so it cannot enforce VPC-only access. Option C is incorrect because VPC Interface endpoints, while private, rely on aws:SourceVpce condition which checks the specific endpoint ID rather than the VPC; the requirement is to restrict to the entire VPC. Option D is incorrect because without any bucket policy, the bucket would be publicly accessible or accessible to any authenticated user, failing to restrict to the VPC.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use only a bucket policy with aws:SourceIp condition
Why it's wrong here
SourceIp does not restrict to VPC.
- ✓
Use an S3 VPC Gateway endpoint and add a bucket policy with aws:SourceVpc condition
Why this is correct
Gateway endpoints keep traffic within AWS network and the condition restricts to the VPC.
- ✗
Use an S3 VPC Interface endpoint and add a bucket policy with aws:SourceVpce condition
Why it's wrong here
Interface endpoints use public internet for some traffic.
- ✗
Use an S3 VPC Gateway endpoint with no bucket policy
Why it's wrong here
Without bucket policy, any VPC can access.
Quick reference
AWS S3 Storage Class Comparison
| Storage Class | Min Duration | Retrieval | Use Case |
|---|---|---|---|
| S3 Standard | None | Immediate | Frequently accessed data |
| S3 Standard-IA | 30 days | Immediate | Infrequent access, rapid retrieval |
| S3 One Zone-IA | 30 days | Immediate | Non-critical infrequent data |
| S3 Intelligent-Tiering | None | Immediate–hours | Unknown or changing access patterns |
| S3 Glacier Instant | 90 days | Milliseconds | Archive with instant retrieval |
| S3 Glacier Flexible | 90 days | Minutes–hours | Archive, flexible retrieval |
| S3 Glacier Deep Archive | 180 days | Hours | Long-term compliance archive |
Go deeper
Related to this question
About these practice questions
One of 1,711 original DEA-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more way this is tested on DEA-C01
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A data engineer is configuring S3 bucket policies to restrict access to a specific VPC. Which condition key should be used in the bucket policy to enforce that requests originate only from the desired VPC?
medium- A.aws:VpcSourceIp
- ✓ B.aws:SourceVpc
- C.aws:RequestedRegion
- D.aws:SourceIp
Why B: Aws:SourceVpc is the condition key used in S3 bucket policies to restrict access to requests originating from a specific VPC. Option A is incorrect because aws:VpcSourceIp is not a valid AWS condition key. Option C is incorrect because aws:RequestedRegion is used to restrict based on the region, not VPC. Option D is incorrect because aws:SourceIp restricts based on IP addresses, not VPC.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
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.