An organization is designing a two-tier application in an Amazon VPC. The database tier must be completely isolated from direct inbound internet traffic, while the web tier must accept public web traffic from the internet. Which two configuration options will meet these requirements? (Select TWO.)
- Configure a public subnet with a route pointing to an Internet Gateway for the web tierCevap
- Configure a private subnet without a route pointing to an Internet Gateway for the database tierCevap
- CEstablish a VPC Peering connection between the public and private subnets to enable internal routing
- DDeploy an AWS Transit Gateway to route public internet traffic directly to the private subnet
- EApply a stateless Network ACL directly to the database instances to filter incoming traffic
Cevap
Configure a public subnet with a route pointing to an Internet Gateway for the web tier, and configure a private subnet without a route pointing to an Internet Gateway for the database tier.
The correct architecture uses a public subnet with a route to an Internet Gateway to allow web traffic to reach the web tier, and a private subnet without an Internet Gateway route to keep the database tier isolated. Communication between subnets in the same VPC is enabled by default via local routing, so VPC Peering or Transit Gateway are not required.
Adım Adım Çözüm
Anahtar Kavram
VPC Subnet Types and Routing (Public vs. Private Subnets)