A company hosts a secure API on Amazon EC2 instances in a private subnet (). The instances receive incoming HTTPS requests forwarded by an Application Load Balancer (ALB) located in the public subnets (). The instances also initiate outbound HTTPS connections to an external payment processor's API on the internet (). The solutions architect is configuring a custom Network Access Control List (NACL) for the private subnet. Which TWO rule configurations must be added to the custom NACL to allow this traffic while maintaining the principle of least privilege? (Select TWO.)
- Inbound rule: Allow TCP port from source . Outbound rule: Allow TCP ports - to destination .Cevap
- Outbound rule: Allow TCP port to destination . Inbound rule: Allow TCP ports - from source .Cevap
- CInbound rule: Allow TCP port from source . Outbound rule: None required, as Network ACLs are stateful and return traffic is allowed automatically.
- DOutbound rule: Allow TCP port to destination . Inbound rule: None required, as the stateful Security Group associated with the instances overrides Network ACL statelessness.
- EInbound rule: Configure AWS Shield Standard to inspect Layer headers from source . Outbound rule: Allow TCP port to destination .
Cevap
The correct configurations are the rules allowing inbound TCP port from the public subnet with outbound ephemeral port access to the public subnet, and outbound TCP port to the internet with inbound ephemeral port access from the internet.
Because Network ACLs are stateless, rules must be explicitly configured for both request and response paths. For the inbound flow from the ALB, the request arrives on destination port and the response returns to the ALB's ephemeral source ports (-). For the outbound flow to the external gateway, the request goes to destination port and the response returns to the instances' ephemeral source ports (-). Thus, both options representing these configurations must be selected.
Adım Adım Çözüm
Anahtar Kavram
Network Access Control Lists (NACLs) are stateless firewall rules applied at the subnet level, meaning that outbound response traffic must be explicitly permitted for allowed inbound requests, and inbound response traffic must be explicitly permitted for allowed outbound requests.
Tahmini Süre:2m 0s