A database specialist is troubleshooting a connectivity issue with an Amazon RDS for PostgreSQL instance. The instance is in a VPC with a public subnet. The security group allows inbound traffic on port 5432 from the application server's IP address. The application server is in the same VPC but in a private subnet. Despite the security group configuration, the application cannot connect. Which action should the specialist take to resolve the issue?
The application connects from its private IP within the VPC, so the security group should allow that private IP.
Why this answer
The application server is in a private subnet, so it communicates with the RDS instance using its private IP address. The security group inbound rule must allow traffic from the application server's private IP (or the security group of the application server) on port 5432. The current rule only allows the application server's public IP, which is not used for traffic within the VPC, causing the connection failure.
Exam trap
The trap here is that candidates may confuse public and private IP addressing within a VPC, assuming that allowing the application server's public IP in the security group is sufficient, when in fact traffic between instances in the same VPC always uses private IPs.
How to eliminate wrong answers
Option A is wrong because launching the RDS instance in the default VPC does not resolve the IP mismatch; the application server's private IP would still need to be allowed in the security group. Option B is wrong because the DB subnet group defines which subnets the RDS instance can be placed in, not which subnets can connect to it; the application server's subnet is irrelevant for connectivity rules. Option C is wrong because network ACLs are stateless and apply at the subnet level, but the issue is that the security group is allowing the wrong IP (public instead of private); additionally, the application server's public IP is not used for VPC-internal traffic.
Option D is wrong because making the RDS instance publicly accessible would expose it to the internet, which is unnecessary and less secure; the application server is in the same VPC, so private connectivity should be used.