nerdexam
AmazonAmazon

ANS-C01 · Question #79

ANS-C01 Question #79: Real Exam Question with Answer & Explanation

The correct answer is C: Resources:newEC2Route:Type: AWS::EC2::Route. To create a VPC peering, you will need to create a peer connection, and update you routing table with peering VPC CIDR or subset of peering VPC CIDR as the destination and peer connection id as the target in the routing table. https://aws.amazon.com/premiumsupport/knowledge-cente

Submitted by chen.hong· Mar 6, 2026ERROR: Domain list not provided in prompt

Question

An AWS CloudFormation template is being used to create a VPC peering connection between two existing operational VPCs, each belonging to a different AWS account. All necessary components in the `Remote' (receiving) account are already in place. The template below creates the VPC peering connection in the Originating account. It contains these components: AWSTemplateFormation Version: 2010-09-09 Parameters: Originating VCId: Type: String RemoteVPCId: Type: String RemoteVPCAccountId: Type: String Resources: newVPCPeeringConnection: Type: `AWS::EC2::VPCPeeringConnection' Properties: VpcdId: !Ref OriginatingVPCId PeerVpcId: !Ref RemoteVPCId PeerOwnerId: !Ref RemoteVPCAccountId Which additional AWS CloudFormation components are necessary in the Originating account to create an operational cross-account VPC peering connection with AWS CloudFormation? (Select two.)

Options

  • AResources:NewEC2SecurityGroup:Type: AWS::EC2::SecurityGroup
  • BResources:NetworkInterfaceToRemoteVPC:Type: "AWS::EC2NetworkInterface"
  • CResources:newEC2Route:Type: AWS::EC2::Route
  • DResources:VPCGatewayToRemoteVPC:Type: "AWS::EC2::VPCGatewayAttachment"
  • EResources:newVPCPeeringConnection:Type:

Explanation

To create a VPC peering, you will need to create a peer connection, and update you routing table with peering VPC CIDR or subset of peering VPC CIDR as the destination and peer connection id as the target in the routing table. https://aws.amazon.com/premiumsupport/knowledge-center/cloudformation-vpc-peering-error/

Topics

#VPC Peering#CloudFormation#VPC Routing#Cross-account networking

Community Discussion

No community discussion yet for this question.

Full ANS-C01 PracticeBrowse All ANS-C01 Questions