AWS Certified SysOps Administrator SOA-C01 – Question832

A company needs to deploy a web application on two Amazon EC2 instances behind an Application Load Balancer (ALB). Two EC2 instances will also be deployed to host the database. The infrastructure needs to be designed across Availability Zones for high availability and must limit public access to the instances as much as possible.
How should this be achieved within a VPC?

A.
Create one public subnet for the Application Load Balancer, one public subnet for the web servers, and one private subnet for the database servers.
B. Create one public subnet for the Application Load Balancer, two public subnets for the web servers, and two private subnets for the database servers.
C. Create two public subnets for the Application Load Balancer, two private subnets for the web servers, and two private subnets for the database servers.
D. Create two public subnets for the Application Load Balancer, two public subnets for the web servers, and two public subnets for the database servers.

Correct Answer: B