A company operates in a manually created VPC while using AWS CloudFormation to provision other resources. A new mandate requires all infrastructure to be managed automatically. What is the lowest-effort approach to bring the existing manually created VPC under automated management?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a new CloudFormation template that defines the existing VPC resources and configuration. From the CloudFormation console, create a new stack by importing the existing resources..
Why this is the answer
The lowest-effort approach is to use CloudFormation's import existing resources feature. This allows you to define the current VPC configuration in a CloudFormation template and then import the live resources into a new stack, bringing them under CloudFormation management without recreation. Creating a new AWS CDK stack and importing would also work, but CloudFormation console import is a more direct and often simpler path for existing resources. CloudFormation StackSets are designed for deploying stacks across multiple accounts and regions, not for importing existing resources into a single stack. AWS SAM CLI is for serverless applications and does not have a direct mechanism to import an existing VPC into a CloudFormation stack.
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