A company is deploying a critical application on AWS and needs to ensure that traffic between two VPCs in the same region is encrypted in transit. The VPCs are connected via a VPC peering connection. What should the network engineer do to meet the encryption requirement?
Trap 1: No additional configuration is needed; VPC peering traffic is…
Incorrect. Same-region VPC peering traffic is not automatically encrypted. Only inter-region VPC peering is encrypted automatically by AWS.
Trap 2: Create a VPN connection between the two VPCs using the VPC peering…
Incorrect. You cannot create a VPN connection using a VPC peering connection; VPN requires a virtual private gateway or transit gateway.
Trap 3: Use AWS Transit Gateway with VPN attachments between the VPCs.
Transit Gateway does not natively encrypt traffic between VPCs attached to it within the same region; it acts as a routing hub. While VPNs can attach to a Transit Gateway, establishing VPN attachments *between VPCs* in the same region via Transit Gateway is an inefficient and non-standard approach for encrypting intra-region VPC-to-VPC communication. This option is tempting because Transit Gateway centralises connectivity and can integrate with VPNs for hybrid or cross-region encryption, making it suitable for complex network topologies or connecting to on-premises data centres.
- A
No additional configuration is needed; VPC peering traffic is automatically encrypted.
Why wrong: Incorrect. Same-region VPC peering traffic is not automatically encrypted. Only inter-region VPC peering is encrypted automatically by AWS.
- B
Create a VPN connection between the two VPCs using the VPC peering connection.
Why wrong: Incorrect. You cannot create a VPN connection using a VPC peering connection; VPN requires a virtual private gateway or transit gateway.
- C
Use AWS Transit Gateway with VPN attachments between the VPCs.
Why wrong: Transit Gateway does not natively encrypt traffic between VPCs attached to it within the same region; it acts as a routing hub. While VPNs can attach to a Transit Gateway, establishing VPN attachments *between VPCs* in the same region via Transit Gateway is an inefficient and non-standard approach for encrypting intra-region VPC-to-VPC communication. This option is tempting because Transit Gateway centralises connectivity and can integrate with VPNs for hybrid or cross-region encryption, making it suitable for complex network topologies or connecting to on-premises data centres.
- D
Configure IPsec on the EC2 instances to encrypt traffic over the VPC peering connection.
Correct. To encrypt traffic over a same-region VPC peering connection, you must configure IPsec on the EC2 instances involved. This ensures encryption at the application layer.