A gaming analytics platform runs on Amazon EC2 instances in a private VPC subnet (). The instances successfully retrieve session logs from Amazon S3 in the same AWS Region using an S3 Gateway VPC Endpoint. However, when the instances attempt to send batch reports to an external audit API (`https://audit.example.com`) via a NAT Gateway located in a public subnet (), the connections consistently time out.
The private subnet's Network ACL (NACL) is configured as follows:
- Inbound Rule 100: Allow TCP ports from
- Inbound Rule 110: Allow TCP ports from the S3 Prefix List (`pl-xxxxxx`)
- Outbound Rule 100: Allow TCP port 443 to
- Outbound Rule 110: Allow TCP port 443 to the S3 Prefix List (`pl-xxxxxx`)
- Default rule: Deny all other traffic
The EC2 instances are associated with a Security Group that has the following rules:
- Inbound: Allow TCP port 443 from
- Outbound: Allow TCP port 443 to
Which of the following configurations will resolve the timeout issue while maintaining the principle of least privilege?
- Modify the private subnet's Network ACL to allow outbound TCP port 443 to and inbound TCP ports from .Answer
- BModify the EC2 instances' Security Group inbound rules to allow TCP ports from , and add a Network ACL outbound rule to allow TCP port 443 to the NAT Gateway's private IP address.
- CAdd a Route Table entry to forward traffic for `audit.example.com` to the S3 Gateway VPC Endpoint, and modify the Network ACL to allow inbound TCP port 443 from .
- DChange the EC2 instances' Security Group outbound rules to only allow TCP port 443 to since all traffic is routed through the NAT Gateway, and add an inbound Network ACL rule allowing TCP port 443 from .