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.)

  1. Create four virtual private gateways. Attach the virtual private gateways to the four VPCs. Source Reference Answer
  2. Create a Direct Connect gateway. Associate the four virtual private gateways with the Direct Connect gateway. Source Reference Answer
  3. Create four transit VIFs on each Direct Connect connection. Associate the transit VIFs with the Direct Connect gateway.
  4. Create four transit VIFs on each Direct Connect connection. Associate the transit VIFs with the four virtual private gateways.
  5. Create four private VIFs on each Direct Connect connection to the Direct Connect gateway. Source Reference Answer

Community Votes

ABE
100%

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)

psou7 👍 11
ABE TGW for inter VPC peering within AWS. From on-prem access to only 4 VPCs is required. Hence DXGW and VGW via private VIF. Peering TGW with DXGW would be possible for on-prem connectivity but is more costly. https://docs.aws.amazon.com/whitepapers/latest/hybrid-connectivity/aws-dx-dxgw-with-vgw-multi-regions-and-aws-public-peering.html
Hubabi 👍 1 Selected: ABE
From the options presented, it's clear that you need to use DXGW. The only option where "Create a Direct Connect gateway" is stated is option (B). Option (B) also states "Associate the four virtual private gateways with the Direct Connect gateway", thus you need to pick the other two remaining options that make sense with VGW - (A) and (E). Regardless what the cost is, this is the only valid answer that you can select.
woorkim 👍 2 Selected: ABE
TGW is asking more cost!
MO_SAM 👍 1 Selected: BC
Since there already and exciting TWG there is no need to create VGW and private VIFs, instead just create 4 transit VIF along with DXGW and association to connect things together and hence COST is the main factor!
VerRi 👍 1 Selected: ABE
BCF is a good practice but ABE is cheaper.
AlirezaNetWorld 👍 1
BCF based on the current setup on AWS.
cerifyme85 👍 3 Selected: ABE
TGW for inter VPC peering within AWS. From on-prem access to only 4 VPCs is required. Hence DXGW and VGW via private VIF. Peering TGW with DXGW would be possible for on-prem connectivity but is more costly.
KobDragoon 👍 4 Selected: ABE
As there is no answer that allows us to configure specific route tables in the TGW to make the DataCenters really only have access to 4 of the 30 VPCs. The most logical solution is ABE, as the other options would allow access to more VPCs than intended.
tromyunpak 👍 2
ABE are the correct answer as these are required to build the VPG setup. CD are wrong due to the fact all the VPC will access the onpremises (you need to configure the 4 specific VPC prefixes in the DX gateway to TGW association or use different routing tables within the TGW to limit the routes to only the 4 VPCs required to access the on-premises) F is not needed since VPG will be used
backspace0900 👍 3 Selected: BC
BCF DirectConnectGateway TransitVIF TransitGateway

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

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.
Community members consistently highlight that "TGW is asking more cost" and that the TGW-based path would also make it harder to restrict on-premises access to only the four target VPCs without careful route-table engineering. Since the question explicitly asks for the MOST cost-effective solution, transit VIFs are the wrong choice.

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 →

← Back to ANS-C01 Study Guide