ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 468 - SAP-C02 discussion

Report
Export

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 comp any do to meet this new requirement with the LEAST effort?

A.
Create a new AWS Cloud Development Kit (AWS CDK) stack that strictly provisions the existing VPC resources and configuration Use AWS CDK to import the VPC into the stack and to manage the VPC
Answers
A.
Create a new AWS Cloud Development Kit (AWS CDK) stack that strictly provisions the existing VPC resources and configuration Use AWS CDK to import the VPC into the stack and to manage the VPC
B.
Create a CloudFormation stack set that creates the VPC Use the stack set to import the VPC into the stack
Answers
B.
Create a CloudFormation stack set that creates the VPC Use the stack set to import the VPC into the stack
C.
Create a new CloudFormation template that strictly provisions the existing VPC resources and configuration From the CloudFormation console, create a new stack by importing the existing resources
Answers
C.
Create a new CloudFormation template that strictly provisions the existing VPC resources and configuration From the CloudFormation console, create a new stack by importing the existing resources
D.
Create a new CloudFormation template that creates the VPC Use the AWS Serverless Application Model (AWS SAM) CLI to import the VPC
Answers
D.
Create a new CloudFormation template that creates the VPC Use the AWS Serverless Application Model (AWS SAM) CLI to import the VPC
Suggested answer: C

Explanation:

Creating the Template:

Start by creating a CloudFormation template that includes all the VPC resources. This template should accurately reflect the current state and configuration of the VPC.

Using the CloudFormation Console:

Open the AWS Management Console and navigate to CloudFormation.

Choose 'Create stack' and then select 'With existing resources (import resources)'.

Specifying the Template:

Upload the previously created template or specify the Amazon S3 URL where the template is stored.

Identifying the Resources:

On the 'Identify resources' page, provide the identifiers for each VPC resource you wish to import. For example, for an AWS::EC2::VPC resource, use the VPC ID as the identifier.

Creating the Stack:

Complete the stack creation process by providing stack details and reviewing the changes. This will create a change set that includes the import operation.

Executing the Change Set:

Execute the change set to import the resources into the CloudFormation stack, making them managed by CloudFormation.

Verification and Drift Detection:

After the import is complete, run drift detection to ensure the actual configuration matches the template configuration.

This approach allows the company to manage their VPC and other resources via CloudFormation without the need to recreate resources, ensuring a smooth transition to automated infrastructure management.

Reference

Creating a stack from existing resources - AWS CloudFormation (AWS Documentation).

Generating templates for existing resources - AWS CloudFormation (AWS Documentation).

Bringing existing resources into CloudFormation management (AWS Documentation).

asked 16/09/2024
MARCOS ALAMOS
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first