A company is using an AWS Transit Gateway to connect three VPCs: VPC A, VPC B, and VPC C. The company also has an on-premises data center connected to the Transit Gateway via an AWS Site-to-Site VPN.
A SysOps Administrator must configure Transit Gateway routing to meet the following requirements:
1. Network traffic must flow freely between VPC A and VPC B.
2. VPC C must be able to communicate with the on-premises data center.
3. VPC C must be completely isolated from VPC A and VPC B.
Which two actions should the SysOps Administrator take to configure the Transit Gateway routing? (Select TWO.)
- Create a Transit Gateway route table for VPC C, associate it with the VPC C attachment, and propagate only the Site-to-Site VPN attachment route into this route table.Answer
- Create a Transit Gateway route table for the VPN, associate it with the Site-to-Site VPN attachment, and propagate the VPC A, VPC B, and VPC C attachment routes into this route table.Answer
- CIn the VPC subnet route tables of VPC C, add a route for the on-premises network CIDR block pointing to the Internet Gateway attached to VPC C.
- DAssociate the VPC C attachment with the Transit Gateway route table used by VPC A and VPC B, and configure a Network ACL in VPC C that blocks all outbound traffic to ephemeral ports.
- ECreate a Gateway VPC Endpoint in VPC C, and associate it with the VPC C subnet route tables to direct the hybrid traffic to the Transit Gateway.
Answer
Create a Transit Gateway route table for VPC C, associate it with the VPC C attachment, and propagate only the Site-to-Site VPN attachment route into this route table; and create a Transit Gateway route table for the VPN, associate it with the Site-to-Site VPN attachment, and propagate the VPC A, VPC B, and VPC C attachment routes into this route table.
To achieve the desired routing and isolation, separate Transit Gateway (TGW) route tables must be created and associated with the respective attachments. By creating a dedicated TGW route table for VPC C, associating it with VPC C, and propagating only the VPN route, VPC C can communicate with on-premises but is isolated from VPC A and VPC B. Similarly, a dedicated TGW route table for the VPN attachment with propagations for all three VPCs ensures that return traffic from the on-premises network can reach any of the VPCs.
Step-by-Step Solution
Key Concept
AWS Transit Gateway route table association and propagation rules for isolating VPC traffic.