A company has a three-tier web application hosted in a VPC. The database tier resides in a private subnet and needs to retrieve software patches from an external repository on the internet, while blocking all other outbound and inbound traffic. A NAT gateway has been deployed in a public subnet to facilitate outbound internet access. Which configurations should a solutions architect implement to secure this network path while ensuring successful patch downloads? (Select TWO.)
- Configure the database instances' security group to allow outbound HTTP and HTTPS traffic to the destination IP range of the external repository.Cevap
- Configure the network ACL of the database subnet to allow outbound HTTP and HTTPS traffic to the public subnet, and allow inbound traffic on ephemeral ports (1024-65535) from the public subnet.Cevap
- CConfigure the network ACL of the database subnet to allow outbound HTTP and HTTPS traffic to the public subnet, relying on the stateful nature of network ACLs to permit the return traffic.
- DAssociate a security group directly with the NAT gateway to allow inbound traffic from the database subnet on ports 80 and 443.
- EConfigure the database instances' security group to allow inbound traffic from the external repository on ephemeral ports (1024-65535) to receive the patch responses.
Cevap
Configure the database instances' security group to allow outbound HTTP/HTTPS traffic to the destination IP range, and configure the database subnet's network ACL to allow outbound HTTP/HTTPS traffic to the public subnet while allowing inbound traffic on ephemeral ports (1024-65535) from the public subnet.
The correct configurations are to configure the database instances' security group to allow outbound HTTP/HTTPS traffic, and configure the database subnet's network ACL to allow outbound HTTP/HTTPS traffic as well as inbound ephemeral port traffic. Because security groups are stateful, they automatically track connections and allow return traffic without an explicit inbound rule. Because network ACLs are stateless, they require explicit rules for both outbound request traffic and inbound response traffic.
Adım Adım Çözüm
Anahtar Kavram
VPC Network Security