An organization is deploying a multi-tier application. Which TWO of the following configurations are required to ensure that the backend application tier in a private subnet can securely communicate with an RDS database instance while preventing direct internet access?
Referencing the Security Group ID of the application tier is the most secure method for allowing traffic. It avoids relying on IP addresses, which can change in dynamic environments. This ensures that only resources associated with the application tier can reach the database, effectively isolating the database from unauthorized network segments.
Why this answer
Proper infrastructure security relies on network isolation through private subnets and restrictive Security Group rules. By placing the RDS instance in a private subnet and configuring the application tier's security group to only permit inbound traffic on the database port from the application tier's specific security group, you minimize the attack surface. This defense-in-depth approach ensures lateral movement is blocked even if one tier is compromised.