
Answer-first summary for fast verification
Answer: Create a new CloudFormation template that accurately provisions the existing VPC resources and configuration, and from the CloudFormation console, initiate a new stack by importing the existing resources.
The correct answer is C. Creating a new CloudFormation template that accurately provisions the existing VPC resources and configuration and then importing these existing resources into a new stack via the CloudFormation console is the most efficient and least effort approach. This method leverages the existing CloudFormation capabilities to import resources and manage them without the need to recreate or modify the current infrastructure significantly. Options A and B either involve significant changes (switching to AWS CDK) or unnecessary complexity (using stack sets). Option D is incorrect because AWS Serverless Application Model (AWS SAM) is not typically used for importing existing VPC resources.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
A company is currently operating its solution on AWS within a manually created VPC and is utilizing AWS CloudFormation for provisioning other infrastructure components. Due to a new requirement, the company needs to automate the management of all its infrastructure. What is the most efficient approach for the company to meet this requirement with minimal effort?
A
Develop a new AWS Cloud Development Kit (AWS CDK) stack that precisely provisions the existing VPC resources and configuration, and use AWS CDK to incorporate the VPC into the stack for management.
B
Establish a CloudFormation stack set to create the VPC and utilize this stack set to integrate the VPC into the stack.
C
Create a new CloudFormation template that accurately provisions the existing VPC resources and configuration, and from the CloudFormation console, initiate a new stack by importing the existing resources.
D
Generate a new CloudFormation template to create the VPC and employ the AWS Serverless Application Model (AWS SAM) CLI to import the VPC.