A company hosts a two-tier web application in a VPC. The web servers are deployed in a public subnet () and receive HTTPS traffic from the internet. The database servers are deployed in a private subnet () and accept MySQL connections from the web servers on TCP port 3306.
A security architect configures custom network ACLs (NACLs) to secure both subnets.
The public subnet NACL is configured with the following rules:
* Inbound: Allow TCP port 443 from
* Outbound: Allow TCP port 443 to , and allow TCP port 3306 to
The private subnet NACL is configured with the following rules:
* Inbound: Allow TCP port 3306 from
* Outbound: Allow TCP ports to
The security groups for both the web servers and database servers are already correctly configured to allow the necessary inbound and outbound traffic. Currently, external clients cannot establish HTTPS connections to the web servers, and the web servers are unable to connect to the database.
Which combination of NACL modifications will resolve these connectivity issues?
- In the public subnet NACL, add an inbound rule allowing TCP ports from , and update the outbound rule to allow TCP ports to instead of TCP port 443.Answer
- BIn the private subnet NACL, add an inbound rule allowing TCP ports from , and in the public subnet NACL, update the inbound rule to allow TCP ports from .
- CIn the public subnet security group, add an inbound rule allowing TCP ports from the private subnet, and in the private subnet NACL, change the outbound rule to allow TCP port 3306 to .
- DIn the public subnet NACL, add an outbound rule allowing TCP port 3306 to , and in the private subnet NACL, remove the outbound rule for ephemeral ports since security groups are stateful and will automatically track return traffic.