A SysOps Administrator is hosting a public website on an Amazon EC2 instance within a custom VPC. The Security Group associated with the EC2 instance allows all outbound traffic and inbound HTTP traffic on port 80. The Network ACL (NACL) associated with the subnet has an inbound rule that allows HTTP traffic on TCP port 80 from 0.0.0.0/0. However, external users cannot connect to the website. Which configuration change is required to allow external traffic to reach the web server?
- AConfigure an outbound rule in the Network ACL that allows TCP traffic on port 80 to destination 0.0.0.0/0.
- Add an outbound rule to the Network ACL that allows TCP traffic on ports 1024-65535 to destination 0.0.0.0/0.Cevap
- CAdd an outbound rule to the Security Group that allows TCP traffic on ports 1024-65535 to destination 0.0.0.0/0.
- DCreate a Gateway VPC Endpoint for the subnet and associate it with the subnet's route table.
Cevap
Add an outbound rule to the Network ACL that allows TCP traffic on ports 1024-65535 to destination 0.0.0.0/0.
The correct answer provides the necessary outbound rule for the stateless Network ACL. Since Network ACLs do not track connection states, return traffic from the web server back to the web clients must be explicitly permitted. Web clients initiate HTTP requests using random source ports from the ephemeral port range (TCP 1024-65535), meaning the return traffic must be allowed to leave the subnet on these ports.
Adım Adım Çözüm
Anahtar Kavram
Network ACLs (NACLs) are stateless firewalls that control inbound and outbound traffic at the subnet level. They require explicit configuration of outbound rules for ephemeral port ranges (1024-65535) to allow response traffic back to clients.
Tahmini Süre:1m 0s