A company is hosting a centralized monitoring server on an Amazon EC2 instance in Subnet A (). This server is configured to scrape metrics from production application servers located in Subnet B () on TCP port 9100.
The custom Network Access Control List (NACL) for Subnet A has the following rules:
* Inbound: Allow TCP traffic on ports from Subnet B ()
* Outbound: Allow TCP traffic on port 9100 to Subnet B ()
The custom NACL for Subnet B has the following rules:
* Inbound: Allow TCP traffic on port 9100 from Subnet A ()
* Outbound: Allow TCP traffic on port 9100 to Subnet A ()
The Security Groups associated with the EC2 instances are configured correctly to allow traffic on port 9100. However, the monitoring server cannot establish a connection to scrape metrics.
Which modification to the Subnet B NACL rules is required to resolve this connectivity issue?
- Modify the outbound rule for Subnet B to allow TCP traffic on ports 1024-65535 to Subnet A.Answer
- BModify the outbound rule for Subnet B to allow TCP traffic on port 9100 to Subnet A and enable stateful tracking in the NACL settings.
- CModify the inbound rule for Subnet B to allow TCP traffic on ports 1024-65535 from Subnet A.
- DRemove the outbound rule in Subnet B entirely, as the stateful nature of the security groups will automatically permit the response traffic.