Design Resilient Architectures
A three-tier application has web instances, application instances, and an RDS database in separate security groups. Only application instances should connect to the database. Which database security group rule BEST enforces this boundary?
Show the answer
Correct answerA. Allow the database port from the application tier's security group.
AWhy this is right: A source security group reference permits database connections from instances in the application tier.
BWhy not this: Allowing web instances to connect directly bypasses the application tier.
CWhy not this: Application instances initiate database connections; their load balancer's security group does not identify those connections.
DWhy not this: The VPC CIDR includes resources outside the application tier.
Referencing the application instances' security group restricts database access to the intended tier without tracking individual instance addresses. Allowing the VPC CIDR also permits other tiers and weakens the boundary.