Direct Connect Public VIF for On-Premises S3 Access
Short answer
A Use a Direct Connect public VIF so the on-premises application reaches Amazon S3 over the dedicated connection without internet access or interface endpoint charges.
Question
Which solution will meet these requirements MOST cost-effectively?
Key Takeaways
The question tests the difference between a Direct Connect public VIF and an S3 interface VPC endpoint, with the trap being that public VIF sounds internet-facing even though it runs over Direct Connect.
This scenario tests how an on-premises network with no internet access reaches Amazon S3 over AWS Direct Connect. The most cost-effective answer is A: a public virtual interface (VIF) carries the S3 traffic over the dedicated Direct Connect link.
Common mistake: Choosing C because interface endpoints sound more private; however, they add VPC, private VIF or Direct Connect gateway, endpoint hourly and data-processing costs, while a public VIF already meets the no-internet S3 access requirement.
Expert Analysis
The request path starts on-premises. The application sends an S3 API request from the on-premises network. Because the network has no direct internet access, that request must leave through the Direct Connect connection. The design question is therefore not how to give the on-premises network general internet access, but which Direct Connect attachment can carry S3 API traffic. A Direct Connect public virtual interface (VIF) provides exactly that path: it peers the on-premises router with AWS public services using public IP addresses over the dedicated Direct Connect link. The traffic does not traverse an internet provider, so it satisfies the no-internet constraint.
Why A is the cost-effective fit. Option A creates the public VIF and routes AWS traffic over it. S3 is an AWS public service, and a public VIF is designed for public AWS service endpoints such as S3. There is no VPC, no NAT gateway, no S3 interface endpoint, and no endpoint hourly or data-processing charge. The existing Direct Connect port and virtual interface carry the traffic. Some comments object that a public VIF sounds internet-facing, but a public VIF uses public IP addressing to reach AWS public services over Direct Connect; it does not require the on-premises network to have internet access. That distinction is the core trap.
Why the alternatives lose. Option B places a NAT gateway in a VPC and routes on-premises traffic to it; NAT gateways are for VPC resources needing outbound internet, not a correct on-premises-to-S3 path, and they add hourly and data-processing costs. Option C can work technically: an S3 interface endpoint gives private IP access from on-premises over Direct Connect when combined with a private VIF and Direct Connect gateway, and AWS documents this pattern. But it introduces VPC and endpoint components plus per-hour and per-GB endpoint charges, so it is not the most cost-effective when the only requirement is S3 access and a public VIF already removes internet dependency. Option D is invalid: VPC peering connects VPCs, not an on-premises network to Direct Connect. The correct choice is A.
Official Reference
- https://docs.aws.amazon.com/directconnect/latest/UserGuide/WorkingWithVirtualInterfaces.html
- https://aws.amazon.com/blogs/networking-and-content-delivery/optimizing-amazon-s3-data-transfers-over-direct-connect/
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html
These links open the official vendor documentation in a new tab.
Exam Strategy
When a Direct Connect question asks for S3 access, first classify the target as an AWS public service rather than a VPC resource. If the requirement only forbids internet access and does not mandate private IPs, a public VIF is the lower-cost dedicated path; reserve interface endpoints, NAT gateways and VPC peering for scenarios that explicitly require private IP addressing or VPC-originated traffic. Read MOST cost-effectively as a signal to eliminate options with hourly endpoint or NAT charges.
Frequently Asked Questions
Does a Direct Connect public VIF require the on-premises network to have internet access?
Why is an S3 interface endpoint not the most cost-effective choice here?
Can an on-premises application use an S3 interface endpoint over Direct Connect?
Discussion 15 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 15
-
Scheldon 👍 4 Answered CAnswerC Amazon S3 interface endpoint seems to be the best and only option as we are forced to use Private IP addressation. Interface endpoints for Amazon S3 Your network traffic remains on the AWS network. Use private IP addresses from your VPC to access Amazon S3 Require endpoint-specific Amazon S3 DNS names Allow access from on premises Allow access from a VPC in another AWS Region by using VPC peering or AWS Transit Gateway https://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html#types-of-vpc-endpoints-for-s3
-
waldirlsantos 👍 4 Answered CB Need internet A,D doesn't conect to the s3 IMO, C is the solution for this question.
-
LeonSauveterre 👍 3 Answered CA - Public VIFs route traffic over the public internet, but on-premises network has no direct internet access. B - NAT gateways provide internet access for resources within a VPC, but, again, on-premises network has no direct internet access. C - The traffic stays within AWS and the Direct Connect connection, ensuring security and compliance with the no-internet requirement. Also, this is cost-effective because it avoids the need for additional NAT gateways or public VIFs. D - Peering connections don't even support access to AWS public services like S3.
-
elmyth 👍 3This article says "Use a private IP address over Direct Connect (with an interface VPC endpoint)" - C
-
AMEJack 👍 2 Answered AOption A is the correct answer: 1) I need to connect to public services only, thus public VIF will be enough. 2) Interface endpoints is charged per hour, not cost effective.
Show 10 more comments
-
EllenLiu 👍 2 Answered Apublic VIF allows on-premises networks to access AWS public services, like S3 it eliminates the need for internet access & interface endpoints while being cost-effective
-
Kaula 👍 2 Answered Chttps://docs.aws.amazon.com/AmazonS3/latest/userguide/privatelink-interface-endpoints.html
-
TruthWS 👍 2Option C
-
0c21057 👍 1 Answered AAWS Direct Connect links your internal network to an AWS Direct Connect location over a standard Ethernet fiber-optic cable. One end of the cable is connected to your router, and the other to an AWS Direct Connect router. With this connection, you can create virtual interfaces directly to public AWS services (for example, to Amazon S3) or to Amazon VPC, bypassing internet service providers in your network path. An AWS Direct Connect location provides access to AWS in the Region with which it is associated. You can use a single connection in a public Region or AWS GovCloud (US) to access public AWS services in all other public Regions.
-
Athena75 👍 1 Answered AA public virtual interface (public VIF) is a logical connection over AWS Direct Connect that gives your on-premises network direct access to public AWS services (such as Amazon S3 or DynamoDB) using public IP addresses, bypassing the public internet. https://docs.aws.amazon.com/directconnect/latest/UserGuide/WorkingWithVirtualInterfaces.html
-
c7e80cd 👍 1 Answered AIn short: C only works if the traffic originates inside a VPC, but your requirement is from on-premises outside AWS. That’s why A is the correct, cost-effective solution.
-
Salilgen 👍 1 Answered Ahttps://aws.amazon.com/blogs/networking-and-content-delivery/optimizing-amazon-s3-data-transfers-over-direct-connect/
-
0bdf3af 👍 1A. public VIF is the way you can connect on-premise with S3 via DirectConnect
-
0bdf3af 👍 1A. https://repost.aws/knowledge-center/s3-bucket-access-direct-connect
-
EllenLiu 👍 1https://aws.amazon.com/privatelink/pricing/
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.
Related Analysis
Practice All SAA-C03 Questions
Access 120 questions with complete answers and detailed explanations.
View Full SAA-C03 Practice Test →