ANS-C01 practice question 1 of 35

A company is planning to migrate to AWS and use multiple VPCs in multiple AWS Regions. A network engineer must connect the eu-west-1 and eu-central-1…

Full set: 291 questions
A company is planning to migrate to AWS and use multiple VPCs in multiple AWS Regions. A network engineer must connect the eu-west-1 and eu-central-1 Regions to the company headquarters and branch office, respectively. The network engineer created a production VPC, named Prod A, with a CIDR block of 10.0.0.0/16. Prod A runs in an account in eu-west-1. The network engineer then created another production VPC, named Prod B, with a CIDR block of 10.1.0.0/16. Prod В runs in a different account in eu-central-1. The network engineer performed the following steps to try to achieve the required connectivity: 1. Created one transit gateway in each Region 2. Shared and accepted the transit gateways with the production accounts in both Regions 3. Configured the peering attachment between both transit gateways 4. Attached both VPCs to the respective Region transit gateway 5. Created both transit gateway route tables and associated the attachments with the route tables 6. Configured a static route in both transit gateway route tables to send traffic to the remote VPC in the other Region 7. Activated route propagation on the VPC route tables in each Region After the configuration, the network engineer tried to connect from Prod A to Prod B. However, the connection was unsuccessful. What should the network engineer do to achieve the required connectivity?
Answer options
A: Modify the IP address of the peering attachment to a wider range.
B: Delete the static routes that were in the transit gateway route table to send traffic to the remote VPC and enable route propagation instead.
C: Create a new route destined to 10.0.0.0/8 in both production VPC route tables with the Region transit gateway as the target. Correct answer
D: Modify the transit gateway route tables from the production accounts to propagate routes dynamically between the production VPCs.
Correct Answer:
C. Create a new route destined to 10.0.0.0/8 in both production VPC route tables with the Region transit gateway as the target.
Explanation

The configuration is missing the necessary routes in the VPC subnet route tables. For an EC2 instance within a VPC to send traffic to a destination outside of its VPC CIDR range (like the remote VPC), its subnet route table must have a route directing that traffic to the Transit Gateway. The engineer needs to add a route in the route tables for the subnets in Prod A (10.0.0.0/16) for the destination CIDR of Prod B (10.1.0.0/16), with the target set to the local Transit Gateway. A similar route is needed in Prod B's subnet route tables for Prod A's CIDR. A summarized route like 10.0.0.0/8 would cover both and is a valid approach.

Why Incorrect

A. A peering attachment is a logical construct for routing between Transit Gateways; it does not have a modifiable IP address in this context.
B. For Transit Gateway peering, static routes pointing to the peering attachment are required in the Transit Gateway route tables. Route propagation does not work across a peering connection.
D. The production accounts do not own the Transit Gateway route tables; they are managed in the networking account. The issue is not with TGW routing but with VPC-level routing.

References

1. AWS Documentation. (2023). Routing for a transit gateway. "You must add a route to your subnet route tables to send VPC traffic to the transit gateway."

2. AWS Documentation. (2023). Transit gateway peering attachments. "To send traffic to the peer transit gateway, you must add a static route to the transit gateway route table that points to the transit gateway peering attachment."

3. AWS Documentation. (2023). Example: Inter-Region peering. "Update the VPC route table... For Destination, enter the CIDR block of the peer VPC. For Target, select the transit gateway." (This is shown in the routing configuration examples).

Scroll to Top