How to connect on-premises to specific VPCs across regions using AWS Direct Connect cost-effectively?
A company has a total of 30 VPCs. Three AWS Regions each contain 10 VPCs. The company has attached the VPCs in each Region to a transit gateway in that Region. The company also has set up inter-Region peering connections between the transit gateways. The company wants to use AWS Direct Connect to provide access from its on-premises location for only four VPCs across the three Regions. The company has provisioned four Direct Connect connections at two Direct Connect locations. Which combination of steps will meet these requirements MOST cost-effectively? (Choose three.)
Community Votes
100% of anonymous learners picked answer ABE. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The question tests whether candidates recognize that using a Direct Connect gateway with virtual private gateways and private VIFs is significantly more cost-effective than using transit VIFs and a transit gateway when only a few VPCs need on-premises connectivity.
This question tests the most cost-effective way to connect an on-premises network to only four specific VPCs across multiple AWS Regions using AWS Direct Connect. The community consensus confirms that using a Direct Connect gateway with virtual private gateways and private VIFs is cheaper than attaching the Direct Connect gateway to a transit gateway.
Many candidates choose options involving transit VIFs and the existing transit gateway (such as BCF or BC) because a transit gateway is already deployed in the scenario. They overlook that transit VIFs and transit gateway attachment hours incur much higher costs than private VIFs and virtual private gateways when only a handful of VPCs require on-premises access.
Community Discussion (10 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Understanding the Scenario
The company has 30 VPCs distributed across three AWS Regions, with 10 VPCs per Region. Each Region has a transit gateway (TGW) that interconnects its local VPCs, and the transit gateways are peered across Regions. The company now needs to provide on-premises access to only four specific VPCs using AWS Direct Connect, and it has already provisioned four Direct Connect connections at two Direct Connect locations. The key constraint is cost-effectiveness.
Why Option A is Correct
Option A states: Create four virtual private gateways. Attach the virtual private gateways to the four VPCs.
A virtual private gateway (VGW) is the classic, lightweight VPN/Direct Connect attachment point for a single VPC. Since only four VPCs require on-premises connectivity, creating four VGWs — one per target VPC — is perfectly adequate and avoids the hourly attachment cost of a transit gateway for this traffic path. This directly satisfies the requirement to limit on-premises access to exactly those four VPCs.
Why Option B is Correct
Option B states: Create a Direct Connect gateway. Associate the four virtual private gateways with the Direct Connect gateway.
A Direct Connect gateway (DXGW) is required whenever you want to connect an on-premises network (via Direct Connect) to VPCs in one or more AWS Regions. By associating the four VGWs with a single DXGW, the on-premises router can reach all four VPCs across the three Regions through one logical gateway. This is the standard, well-documented pattern for multi-Region Direct Connect connectivity using VGWs.
Why Option E is Correct
Option E states: Create four private VIFs on each Direct Connect connection to the Direct Connect gateway.
A private virtual interface (VIF) is used to connect a Direct Connect connection to a VGW or DXGW (as opposed to a transit VIF, which connects to a transit gateway). Since the design uses a DXGW associated with VGWs, the correct VIF type is a private VIF. The company has four DX connections, so creating four private VIFs (one per connection) pointing to the DXGW completes the connectivity path.
Why Options C and D are Incorrect
Options C and D propose creating transit VIFs. A transit VIF connects a Direct Connect connection to a transit gateway, not to a VGW or DXGW directly. While this is technically possible, it is significantly more expensive because:
- You must pay the transit gateway attachment hourly charge in every Region where the DXGW attaches to the TGW.
- You must pay for transit gateway peering data processing across Regions.
- You pay for the transit VIF itself.
Furthermore, Option D is technically invalid because transit VIFs cannot be associated with VGWs — they associate only with transit gateways.
Community Consensus
The overwhelming majority of candidates (73 votes) selected A, B, E. Experienced commenters note that the existing transit gateways should remain in place for inter-VPC peering within AWS, while the DXGW + VGW + private VIF pattern is layered on top solely for the on-premises path to the four selected VPCs. This hybrid approach is both cheaper and more precisely scoped than routing on-premises traffic through the transit gateways.
Official Reference
Exam Strategy
When an AWS exam question emphasizes 'MOST cost-effectively' and only a small subset of VPCs need connectivity, immediately compare the hourly attachment and data-processing costs of transit gateways versus virtual private gateways. Eliminate any option that introduces a transit gateway attachment or transit VIF unless the scenario explicitly requires full-mesh VPC-to-VPC routing through the TGW.
Related Analysis
Practice All ANS-C01 Questions
Access 137 questions with complete answers and detailed explanations.
View Full ANS-C01 Practice Test →