Design Secure Architectures

An Application Load Balancer forwards requests to EC2 instances on TCP port 8080. How should a solutions architect ensure that the instances accept application traffic only from the load balancer?

Show the answer

Correct answerC. Allow port 8080 from the load balancer's security group in the instances' security group.

AWhy not this: Allowing the VPC CIDR permits other VPC resources, not just the load balancer, to connect.

BWhy not this: Route tables select routes by destination address, not TCP port, and do not enforce this source restriction.

CWhy this is right: Referencing the load balancer's security group permits traffic from its network interfaces on the specified port.

DWhy not this: AWS WAF cannot be associated directly with EC2 instances and does not replace instance security groups.

A security group reference restricts inbound application traffic to the load balancer's network interfaces. Allowing the VPC CIDR also permits other resources in the VPC to reach the instances.