A development team has configured a VPC peering connection (`pcx-0a1b2c3d4e5f6g7h8`) between a database VPC (CIDR ) and an application VPC (CIDR ). An application server with IP address in Subnet App-1 is unable to connect to a PostgreSQL database instance with IP address in Subnet DB-1. The database security group has been configured to allow incoming traffic on port from . The network ACLs for both subnets are configured with their default settings.
Which actions must be completed to enable successful communication between the application server and the database instance? (Select TWO.)
- Add a route to the route table associated with Subnet App-1 that routes traffic for through `pcx-0a1b2c3d4e5f6g7h8`.Cevap
- Add a route to the route table associated with Subnet DB-1 that routes traffic for through `pcx-0a1b2c3d4e5f6g7h8`.Cevap
- CConfigure an Internet Gateway in both VPCs and add routes pointing to the Internet Gateway for the peer VPC CIDR ranges.
- DAdd an outbound rule to the Network ACL of Subnet DB-1 to allow traffic to ephemeral ports () for the application subnet.
- EEnable DNS resolution support for the VPC peering connection on both the requester and accepter VPCs.
Cevap
Add a route to the route table associated with Subnet App-1 that routes traffic for through the peering connection, and add a route to the route table associated with Subnet DB-1 that routes traffic for through the peering connection.
For communication to succeed across a VPC peering connection, bidirectional route table entries must exist. The route table for the application subnet must route database traffic () to the peering connection, and the route table for the database subnet must route return traffic () back to the peering connection. Since security groups and default Network ACLs are already configured correctly, establishing these routes will resolve the connection timeout.
Adım Adım Çözüm
Anahtar Kavram
VPC Peering Bidirectional Routing