A company is setting up a secure multi-tier application in a VPC. The database tier runs on Amazon EC2 instances located in a private subnet (). The database instances need to periodically initiate outbound connections to download software patches from an external repository on the public internet over HTTPS (TCP port ). A NAT Gateway is deployed in the public subnet () to facilitate egress, and the private subnet's route table contains a default route () pointing to the NAT Gateway. The database subnet uses a custom Network Access Control List (NACL) that currently denies all traffic. The database instances are associated with a custom security group. Which configuration of security group and NACL rules must the solutions architect implement to allow the database instances to download patches while maintaining the principle of least privilege?
- Security Group: Outbound rule allowing TCP port to . No inbound rules. Subnet NACL: Outbound rule allowing TCP port to ; Inbound rule allowing TCP ports from .Answer
- BSecurity Group: Outbound rule allowing TCP port to . Inbound rule allowing TCP ports from . Subnet NACL: Outbound rule allowing TCP port to . No inbound rules.
- CSecurity Group: Outbound rule allowing TCP port to the NAT Gateway's private IP address. No inbound rules. Subnet NACL: Outbound rule allowing TCP port to the NAT Gateway's private IP address; Inbound rule allowing TCP ports from the NAT Gateway's private IP address.
- DSecurity Group: Outbound rule allowing TCP port to . No inbound rules. Subnet NACL: Outbound rule allowing TCP port to ; Inbound rule allowing TCP port from .