nerdexam
Amazon

SAP-C02 · Question #266

A company is running its solution on AWS in a manually created VPC. The company is using AWS Cloud Formation to provision other parts of the infrastructure. According to a new requirement, the…

The correct answer is D. Create a new CloudFormation template that creates the VPC. To bring a manually created VPC under automatic management using AWS CloudFormation with the least effort, the company should define the existing VPC's configuration in a new CloudFormation template.

Submitted by yasin.bd· Mar 6, 2026Continuous Improvement for Existing Solutions

Question

A company is running its solution on AWS in a manually created VPC. The company is using AWS Cloud Formation to provision other parts of the infrastructure. According to a new requirement, the company must manage all infrastructure in an automatic way. What should the company do to meet this new requirement with the LEAST effort?

Options

  • ACreate a new AWS Cloud Development Kit (AWS CDK) stack that stnctly provisions the existing
  • BCreate a CloudFormation stack set that creates the VPC.
  • CCreate a new CloudFormation template that strictly provisions the existing VPC resources and
  • DCreate a new CloudFormation template that creates the VPC.

How the community answered

(24 responses)
  • A
    13% (3)
  • B
    4% (1)
  • C
    4% (1)
  • D
    79% (19)

Why each option

To bring a manually created VPC under automatic management using AWS CloudFormation with the least effort, the company should define the existing VPC's configuration in a new CloudFormation template.

ACreate a new AWS Cloud Development Kit (AWS CDK) stack that stnctly provisions the existing

Using AWS CDK, while powerful, involves writing code in a programming language and synthesizing templates, which is generally more effort than directly writing a CloudFormation template for an existing VPC.

BCreate a CloudFormation stack set that creates the VPC.

CloudFormation Stack Sets are designed for deploying resources across multiple AWS accounts or regions, which is an unnecessary complexity and effort for managing a single VPC in one account.

CCreate a new CloudFormation template that strictly provisions the existing VPC resources and

This choice is incomplete, but if it implies re-provisioning/recreating the VPC, it would likely be more disruptive and potentially more effort than simply defining the existing VPC's state in a template for management.

DCreate a new CloudFormation template that creates the VPC.Correct

Creating a new CloudFormation template that defines the VPC's configuration is the most direct and least effort approach to bring an existing, manually created VPC under CloudFormation management, allowing for automated provisioning and updates.

Concept tested: CloudFormation for existing resources, Infrastructure as Code

Source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import.html

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice