An organization hosts a multi-tier application in a VPC. A SysOps Administrator is troubleshooting database connection timeouts between the application servers in Subnet A () and a PostgreSQL database in Subnet B ().
The Security Groups are configured as follows:
- The application servers belong to `sg-app`, which has an outbound rule allowing TCP port to `sg-db`.
- The database belongs to `sg-db`, which has an inbound rule allowing TCP port from `sg-app`.
The Network ACLs (NACLs) are configured as follows:
- Subnet A NACL: Inbound rule allows all traffic from . Outbound rule allows TCP port to .
- Subnet B NACL: Inbound rule allows TCP port from . Outbound rule allows TCP port to .
Which configuration change will resolve the connection timeouts while maintaining the principle of least privilege?
- Modify Subnet B's NACL outbound rule to allow TCP traffic on ports to .Answer
- BModify `sg-db` to allow outbound TCP traffic on ports to `sg-app`.
- CModify Subnet A's NACL outbound rule to allow TCP traffic on ports to .
- DModify Subnet B's NACL inbound rule to allow TCP traffic on ports from .