Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
In a setup with an EC2 instance in VPC A requiring secure access to a database in VPC B, which method is most secure for enabling cross-VPC connectivity within the same AWS account?
A
Allow traffic from the EC2 instance's public IP in VPC A to the DB instance security group.
B
Establish a VPC peering connection between VPC A and VPC B.
C
Enable public accessibility for the DB instance by assigning it a public IP address.
D
Deploy a proxy EC2 instance with an Elastic IP in VPC B to route requests from VPC A.