An application running on an Amazon EC2 instance in VPC-A needs to access files on another EC2 instance in VPC-B. Both VPCs are in separate AWS accounts. The network administrator must design a secure solution to allow EC2 in VPC-A to access the EC2 in VPC-B. The connectivity should avoid a single point of failure and not have bandwidth concerns. Which solution will meet these requirements?
Choose an answer
Tap an option to check your answer.
Correct answer: Set up a VPC peering connection between VPC-A and VPC-B..
Why this is the answer
VPC peering allows private IP address communication between instances in different VPCs, even across different AWS accounts, as if they were in the same network. This solution is highly available and scalable, avoiding single points of failure and bandwidth limitations inherent in other approaches. VPC gateway endpoints are for connecting to AWS services, not between EC2 instances in different VPCs. Attaching a virtual private gateway is typically used for VPN connections to on-premises networks, not direct VPC-to-VPC communication. A private virtual interface (VIF) is part of AWS Direct Connect, used for private connectivity from on-premises to AWS, not for inter-VPC communication.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed