AWS Certified SysOps Administrator – Associate — Question 100

A SysOps administrator creates two VPCs, VPC1 and VPC2, in a company’s AWS account The SysOps administrator deploys a Linux Amazon EC2 instance in VPC1 and deploys an Amazon RDS for MySQL DB instance in VPC2. The DB instance is deployed in a private subnet. An application that runs on the EC2 instance needs to connect to the database.

What should the SysOps administrator do to give the EC2 instance the ability to connect to the database?

Answer options

Correct answer: B

Explanation

The correct answer is B, as VPC peering allows resources in different VPCs to communicate with each other directly. Options A and D are incorrect because the DB instance in VPC2 is in a private subnet and cannot be accessed via a public IP or a connection string in VPC1's route table. Option C is incorrect because overlapping IPv4 CIDR ranges would not facilitate communication between the VPCs.