nerdexam
Amazon

ANS-C01 · Question #79

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…

The correct answer is C. Resources:newEC2Route:Type: AWS::EC2::Route E. Resources:newVPCPeeringConnection:Type. 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…

Submitted by chen.hong· Mar 6, 2026Implementing AI Solutions

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:

How the community answered

(55 responses)
  • A
    5% (3)
  • B
    25% (14)
  • C
    58% (32)
  • D
    11% (6)

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#cross-account#EC2 route

Community Discussion

No community discussion yet for this question.

Full ANS-C01 Practice