Allowing the App Tier to Reach the Database
App instances in an Auto Scaling group must reach RDS on port 5432. Their IPs change constantly. What is the cleanest rule on the database's security group?
Choose one answer
Allow 5432 from each instance's private IP, updated by a script.
Allow 5432 from the VPC's CIDR range in a network ACL.
Allow 5432 from 0.0.0.0/0; the database is in a private subnet anyway.
0.0.0.0/0
Allow 5432 from the app tier's security group as the source.