AWS Data Engineer DEA-C01 · Data Security and Governance · easy
An AWS Glue job running inside a private VPC subnet (with no NAT Gateway or Internet Gateway) needs to read and write data to Amazon S3 without any traffic traversing the public internet and without incurring hourly AWS PrivateLink Interface Endpoint charges. Which VPC resource should you provision?
Published · Last updated · checked before publication — how we verify questions
Options
Answer: D. VPC Gateway Endpoint for Amazon S3 attached to the route table
A VPC Gateway Endpoint for Amazon S3 is the correct choice because it lets resources in a private subnet reach S3 without an Internet Gateway, NAT device, or public IP. When you create the endpoint and associate it with the subnet's route table, AWS adds a route that uses the S3 managed prefix list as the destination and the endpoint as the target. Traffic then stays on the AWS network. Gateway endpoints exist only for S3 and DynamoDB, and they carry no hourly or data processing charge, which satisfies the cost requirement. The Glue job also needs the right setup: Glue connections in a VPC require an S3 endpoint so that Glue can reach its scripts and data. You can further restrict access with an endpoint policy and bucket policies that use the aws:SourceVpce condition key. The common trap is choosing an Interface Endpoint (PrivateLink) for S3, which works privately but incurs hourly and per-GB charges, or assuming a NAT Gateway is needed for S3 access from a private subnet.
Why the other options are wrong
- A. Public NAT Gateway deployed in each Availability Zone — A public NAT Gateway lets private instances initiate outbound connections to the internet through an Internet Gateway, so S3 traffic would leave through the public path. It also costs an hourly fee plus per-GB processing, which violates both requirements, and the subnet has no IGW anyway.
- B. AWS Site-to-Site IPSec VPN tunnel to an on-premises router — A Site-to-Site VPN creates an encrypted tunnel between a VPC and an on-premises network. It does not give a private subnet a direct route to S3, and it adds tunnel hourly charges and extra infrastructure that this scenario does not need.
- C. Amazon CloudFront distribution in front of the S3 bucket — CloudFront is a global content delivery network that caches content at edge locations and is reached over the public internet. It is not a VPC resource and cannot give a Glue job in a private subnet a private path to read and write S3.
More Data Security and Governance questions
- An enterprise has 350 tables in its AWS Glue Data Catalog and 40 analytics teams. Instead of maintaining thousands of…
- A healthcare analytics team queries a patient_encounters table in Amazon Athena governed by AWS Lake Formation. Nurses…
- A compliance auditor requires an automated AWS service that continuously scans newly uploaded objects in Amazon S3…
- In Amazon Redshift, customer support analysts need to query the customers table, where the email column…
- Account A (the central Data Mesh Producer account) owns an S3 data lake governed by AWS Lake Formation and wants to…
All Data Security and Governance questions and the topic overview →
AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.