An EC2 instance is located in private Subnet A (CIDR ) and needs to download software updates from an external repository at IP address over HTTPS (port ). The instance routes all outbound internet traffic through a NAT Gateway located in public Subnet B (CIDR ). The EC2 instance is associated with a Security Group that allows all outbound traffic but has no inbound rules. Subnet A is associated with a Network Access Control List (NACL-A) that has an inbound rule (Rule ) allowing TCP port from and an outbound rule (Rule ) allowing TCP port to . Subnet B is associated with a Network Access Control List (NACL-B) that allows all inbound and outbound traffic. Despite this configuration, the EC2 instance fails to connect to the external repository. Which action will resolve this connectivity issue?
- AAdd an inbound rule to the EC2 instance's Security Group that allows TCP traffic on ports - from .
- BConfigure a VPC Gateway Endpoint for the external patch repository and associate it with the route table of Subnet A.
- Add an inbound rule to NACL-A that allows TCP traffic on ports - from .Answer
- DRemove the route to the NAT Gateway in Subnet A's route table and add a route targeting an Internet Gateway to allow direct outbound communication.