A company has migrated a web application to an Amazon EC2 instance in a VPC. The instance is assigned a public IPv4 address and is placed in a subnet with a CIDR block of . The security group associated with the instance allows all inbound traffic on port and port , and the network ACL allows all inbound and outbound traffic. However, users are reporting that they receive connection timeouts when trying to access the application. The SysOps Administrator confirms that the application is running locally on the instance. Which of the following troubleshooting steps should the administrator perform next to resolve the connectivity issue?
- Configure a route for targeting an Internet Gateway (igw-xxxxxx) in the route table associated with the subnet.Cevap
- BModify the network ACL to allow outbound traffic on ephemeral ports back to the client.
- CAssociate a Gateway VPC Endpoint for the web application's subnet route tables to direct the traffic.
- DUpdate the Target Group health check path to point to a static file on the EC2 instance instead of the root directory.
Cevap
Configure a route for targeting an Internet Gateway (igw-xxxxxx) in the route table associated with the subnet.
For an EC2 instance in a VPC to be reachable from the internet, it must have a public IPv4 address and its subnet's route table must route internet-bound traffic () to an Internet Gateway. Although the security group and network ACL are configured correctly, the absence of this route prevents response packets from leaving the VPC, causing connection timeouts for external users.
Adım Adım Çözüm
Anahtar Kavram
VPC Route Table Configuration and Internet Gateway Association