How to Copy On-Premises Application Logs to Amazon S3 Over AWS Direct Connect?
A company’s data center is connected to a single AWS Region by an AWS Direct Connect dedicated connection. The company has a single VPC in the Region. The company stores logs for all its applications locally in the data center. The company must keep all application logs for 7 years. The company decides to copy all application logs to an Amazon S3 bucket. Which solution will meet these requirements?
Community Votes
46% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The question tests whether candidates know that S3 gateway endpoints are only reachable from within the VPC, so on-premises traffic over Direct Connect requires an S3 interface endpoint (PrivateLink) paired with a private VIF.
This question tests the correct combination of AWS Direct Connect Virtual Interface (VIF) type and Amazon S3 VPC endpoint to enable on-premises applications to upload logs to S3 privately. The correct solution uses a private VIF with an S3 interface endpoint (AWS PrivateLink) because gateway endpoints are not reachable from outside the VPC.
Many candidates choose option B (private VIF + S3 gateway endpoint) because gateway endpoints are free and typically the default for S3 access from within a VPC. They forget that gateway endpoints are not routable from on-premises networks over Direct Connect.
Community Discussion (7 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Understanding the Requirements
The scenario requires on-premises applications in the company's data center to copy application logs to an Amazon S3 bucket over an AWS Direct Connect connection. The traffic must remain private (no internet), and it must originate from outside the VPC (from the on-premises data center).
Why Option C Is Correct
To meet the requirements, two decisions must be made:
1. Which type of Virtual Interface (VIF) on Direct Connect? - A private VIF connects the on-premises data center directly to a VPC using private IP addresses. This is the correct choice for private, secure connectivity to AWS resources inside a VPC. - A public VIF is used to access AWS public services (such as S3, DynamoDB) directly via public AWS endpoints, not through a VPC.
2. Which type of VPC endpoint for Amazon S3? - An S3 gateway endpoint is free and works well for traffic originating inside the VPC. However, it is implemented via VPC route tables and is not reachable from outside the VPC, including from on-premises networks over Direct Connect or VPN. - An S3 interface endpoint (powered by AWS PrivateLink) provisions ENIs inside the VPC and is reachable from both inside the VPC and from external sources such as an on-premises data center connected via Direct Connect. This makes it the correct choice when the source of the traffic is on-premises.
Therefore, Option C (private VIF + S3 interface endpoint) is the only combination that allows on-premises applications to reach S3 privately over Direct Connect.
Why the Other Options Are Wrong
- Option A (public VIF + gateway endpoint): A public VIF is used to reach AWS public services directly, not through a VPC. Gateway endpoints also cannot be reached from on-premises.
- Option B (private VIF + gateway endpoint): Although the private VIF is correct, the gateway endpoint is not accessible from on-premises because it relies on VPC route tables. This is the most common trap.
- Option D (public VIF + interface endpoint): A public VIF does not route through a VPC, so an interface endpoint inside the VPC would not be used in this path.
Community Insight
As several candidates noted in the comments, the key distinction is that gateway endpoints are not accessible from sources outside the VPC (like Direct Connect). Interface endpoints using AWS PrivateLink are required when the traffic originates from on-premises. While interface endpoints do incur a cost, they are the only valid solution in this scenario.
Official Reference
Exam Strategy
When an AWS exam question involves traffic originating from on-premises over Direct Connect or VPN to reach an AWS service inside a VPC, always check whether the VPC endpoint is reachable from outside the VPC. Gateway endpoints are VPC-internal only; interface endpoints (PrivateLink) are required for external sources.
Related Analysis
Practice All ANS-C01 Questions
Access 137 questions with complete answers and detailed explanations.
View Full ANS-C01 Practice Test →