An EC2 instance is hosting a web server in a VPC subnet. The SysOps Administrator needs to configure the subnet's Network Access Control List (NACL) to allow incoming HTTP requests on port 80 from the internet (0.0.0.0/0). Which two rules must the administrator add to the custom NACL to allow this traffic?
- An inbound rule that allows TCP port 80 from source 0.0.0.0/0Cevap
- An outbound rule that allows TCP ports 1024-65535 to destination 0.0.0.0/0Cevap
- CAn outbound rule that allows TCP port 80 to destination 0.0.0.0/0
- DAn inbound rule that allows TCP ports 1024-65535 from source 0.0.0.0/0
- EAn outbound rule that allows TCP port 443 to destination 0.0.0.0/0
Cevap
The correct configurations are: an inbound rule allowing TCP port 80 from source 0.0.0.0/0 and an outbound rule allowing TCP ports 1024-65535 to destination 0.0.0.0/0.
The correct configuration requires allowing inbound TCP port 80 from source 0.0.0.0/0 to accept incoming HTTP requests, and allowing outbound TCP ports 1024-65535 to destination 0.0.0.0/0 to permit the return traffic. Because NACLs are stateless, separate rules are needed for both inbound request and outbound response paths, and response traffic is directed to the client's ephemeral ports.
Adım Adım Çözüm
Anahtar Kavram
Statelessness of Network Access Control Lists (NACLs) and ephemeral port requirements
Tahmini Süre:45s