Course menuSAA-C03

Exams / SAA-C03 / Security groups and network ACLs / Question 1

SAA-C03 practice question: Security groups and network ACLs (1 of 3)

Design Secure Architectures A free question from our original SAA-C03 practice exam. Try it, then open the answer to see why each option is right or wrong.

A retailer is launching a web application with the network design shown in the diagram. An internet-facing Application Load Balancer (ALB) in the public subnets forwards HTTPS requests to web servers in two Availability Zones. A security review of the first test deployment found that the launch template puts the web servers in the public subnets with public IPv4 addresses, and that their security group allows HTTPS from 0.0.0.0/0. The web servers must be reachable only through the ALB. Which TWO actions should a solutions architect take? (Choose two.)

Architecture diagram: users on the internet reach an Application Load Balancer in two public subnets, which forwards traffic to web servers in two private subnets, one in each of two Availability Zones.
Read a full description of the diagram

A VPC spans two Availability Zones. Each zone has a public subnet and a private subnet. An internet gateway is attached to the VPC. The Application Load Balancer has a node in each public subnet. Web servers on EC2 sit in each private subnet. Arrows show user traffic going from the internet, through the internet gateway, to the load balancer, and then to the web servers.

Choose two answers.

  1. A. Change the web servers' security group so that it allows inbound HTTPS only from the security group that is attached to the ALB.
  2. B. Update the launch template to use the private subnets and to stop assigning public IPv4 addresses to the web servers.
  3. C. Add a network ACL rule to the private subnets that allows inbound HTTPS only from the ALB's security group, and deny everything else.
  4. D. Recreate the ALB with the internal scheme so that its nodes have only private IP addresses inside the VPC.
  5. E. Keep HTTPS open to 0.0.0.0/0 on the web servers, and attach an AWS WAF web ACL to the ALB to filter requests.
Show the answer and explanation

Answers: A, B

Explanation

Use two layers. Placing the web servers in private subnets without public IP addresses removes any direct path from the internet, and allowing inbound HTTPS only from the ALB's security group means that even traffic from inside the VPC must come through the load balancer. Network ACLs cannot reference security groups, an internal ALB would cut off customers, and AWS WAF does not protect traffic that bypasses the ALB.

Study

Keep practising

Answer questions with a score at the end, or practise just this topic with the explanation after each one. No sign-up needed.