AWS Certified Solutions Architect – Professional — Question 895

A company has developed a new billing application that will be released in two weeks. Developers are testing the application running on 10 EC2 instances managed by an Auto Scaling group in subnet 172.31.0.0/24 within VPC A with CIDR block 172.31.0.0/16. The Developers noticed connection timeout errors in the application logs while connecting to an Oracle database running on an Amazon EC2 instance in the same region within VPC B with CIDR block 172.50.0.0/16.
The IP of the database instance is hard-coded in the application instances.
Which recommendations should a Solutions Architect present to the Developers to solve the problem in a secure way with minimal maintenance and overhead?

Answer options

Correct answer: C

Explanation

Establishing a VPC peering connection is the most secure, cost-effective, and low-maintenance method to route traffic between two VPCs in the same region. Option C is correct because it allows private IP-to-IP communication over the AWS backbone network without exposing resources to the public internet. Other options like Option B introduce security risks by routing traffic over the public internet, while Option D introduces unnecessary architectural complexity and maintenance overhead.