AWS Certified Solutions Architect – Associate (SAA-C02) — Question 617
A solutions architect must secure a VPC network that hosts Amazon EC2 instances. The EC2 instances contain highly sensitive data and run in a private subnet.
According to company policy, the EC2 instances that run in the VPC can access only approved third-party software repositories on the internet for software product updates that use the third party's URL. Other internet traffic must be blocked.
Which solution meets these requirements?
Answer options
- A. Update the route table for the private subnet to route the outbound traffic to an AWS Network Firewall firewall. Configure domain list rule groups.
- B. Set up an AWS WAF web ACL. Create a custom set of rules that filter traffic requests based on source and destination IP address range sets.
- C. Implement strict inbound security group rules. Configure an outbound rule that allows traffic only to the authorized software repositories on the internet by specifying the URLs.
- D. Configure an Application Load Balancer (ALB) in front of the EC2 instances. Direct all outbound traffic to the ALB. Use a URL-based rule listener in the ALB's target group for outbound access to the internet.
Correct answer: A
Explanation
AWS Network Firewall supports stateful domain list rule groups, which enable outbound traffic filtering based on specific domain names or URLs. Security groups do not support domain-name or URL-based rules, making them unsuitable for this requirement. Additionally, Application Load Balancers and AWS WAF are designed for filtering and distributing inbound traffic to applications, rather than controlling outbound internet access from EC2 instances.