Bringing a manually created VPC under CloudFormation management via resource import
A company is running its solution on AWS in a manually created VPC. The company is using AWS CloudFormation 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?
Community Votes
100% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
CloudFormation resource import lets you describe existing resources in a template and adopt them into a stack, the least-effort path to automated management of already-running infrastructure.
A manually created VPC must be managed automatically with least effort. Creating a CloudFormation template that provisions the existing VPC resources and importing the existing resources into a stack brings it under full automation without rebuilding.
Using a CloudFormation StackSet (Option B) — stack sets target multi-account/multi-Region deployment, not importing a single existing resource; and SAM (Option D) cannot perform resource import.
Community Discussion (14 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Option C writes a template that strictly mirrors the existing VPC configuration and uses CloudFormation's resource import to bring the live VPC under stack management. This achieves automated, declarative management with the least effort and no recreate.Why the Other Options Are Wrong
Option A relies on CDK import, which requires rewriting in CDK rather than reusing the existing CloudFormation footprint. Option B uses StackSets, designed for multi-account rollout, not single-resource import. Option D uses SAM, which does not support resource import.Community Comment Notes
saggy4 (likes 10) explains SAM cannot import and stack sets are not for importing existing resources. JoeTromundo confirms stack sets are for cross-account deployment. The vote is C (81).Official Reference
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →