A SysOps Administrator is troubleshooting network connectivity between an Amazon EC2 instance in a public subnet and an external database. The EC2 instance is attempting to connect to the database at IP address 203.0.113.50 on TCP port 5432. The connection attempts are failing with a timeout.
The administrator enables VPC Flow Logs for the EC2 instance's elastic network interface (ENI). The flow logs capture the following records:
text
2 123456789012 eni-0123456789abcdef0 10.0.1.15 203.0.113.50 49152 5432 6 1 40 1620000000 1620000060 ACCEPT OK
2 123456789012 eni-0123456789abcdef0 203.0.113.50 10.0.1.15 5432 49152 6 1 40 1620000000 1620000060 REJECT OK
Which two statements explain this behavior and identify the correct configuration changes required to resolve this connectivity issue? (Select two.)
- The Network Access Control List (NACL) associated with the subnet is blocking the inbound response traffic on the ephemeral port.Answer
- The Network Access Control List (NACL) associated with the subnet must be updated to allow inbound traffic on TCP ports 1024-65535 from 203.0.113.50.Answer
- CThe Security Group associated with the EC2 instance is blocking the response traffic and must be updated to allow inbound traffic on TCP port 49152 from 203.0.113.50.
- DThe Security Group associated with the EC2 instance must be updated to allow inbound traffic on TCP port 5432 from 203.0.113.50.
- EThe subnet's route table is missing a route targeting the Internet Gateway (IGW), which is preventing the outbound connection from leaving the VPC.