exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 673 discussion

Exam question from Amazon's AWS-SysOps
Question #: 673
Topic #: 1
[All AWS-SysOps Questions]

A SysOps Administrator has been tasked with deploying a company's infrastructure as code. The Administrator wants to write a single template that can be reused for multiple environments in a safe, repeatable manner.
What is the recommended way to use AWS CloudFormation to meet this requirement?

  • A. Use parameters to provision the resources.
  • B. Use nested stacks to provision the resources.
  • C. Use Amazon EC2 user data to provision the resources.
  • D. Use stack policies to provision the resources.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
karmaah
Highly Voted 2 years, 7 months ago
As per the question requirement : Single template that can be reused for multiple environments. Ans B is more suitable. Reasons ******* For A: If you want to use same teplate with multiple envt with Little changes especially Input or map or condition related then, A is good. For B : If you dont want to change anything in your template and if requires simply to run any envt without changes then, B is the right one.
upvoted 13 times
Jayveen
2 years, 6 months ago
I'm sorry but A is more suitable. Because for B you need to create multiple Templates, a Stack is the result of a Template. Nested Stack is when you refer a Stack in a template. In the question we have "Single template", so it's definitely A to create only one template.
upvoted 2 times
...
...
coolboylqy
Highly Voted 2 years, 7 months ago
B https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#stackpolicy
upvoted 9 times
Cyril_the_Squirl
2 years, 6 months ago
@coolboylql… your link in fact means that A is correct… After you have your stacks and resources set up, you can reuse your templates to replicate your infrastructure in multiple environments. For example, you can create environments for development, testing, and production so that you can test changes before implementing them into production. To make templates reusable, use the parameters, mappings, and conditions sections so that you can customize your stacks when you create them. For example, for your development environments, you can specify a lower-cost instance type compared to your production environment, but all other configurations and settings remain the same. For more information about parameters, mappings, and conditions, see Template anatomy.
upvoted 1 times
...
...
albert_kuo
Most Recent 9 months, 3 weeks ago
Selected Answer: A
Option A, using parameters, provides a flexible and customizable approach to infrastructure deployment, enabling the use of a single template for multiple environments while allowing environment-specific customization through parameter values.
upvoted 1 times
...
gulu73
1 year, 3 months ago
Selected Answer: A
Vote for A
upvoted 1 times
...
sapien45
2 years, 6 months ago
To make templates reusable, use the parameters, mappings, and conditions sections so that you can customize your stacks when you create them. Response is A
upvoted 2 times
...
Azaad78
2 years, 6 months ago
A - It says it here "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#stackpolicy" - Reuse templates to replicate stacks in multiple environments: After you have your stacks and resources set up, you can reuse your templates to replicate your infrastructure in multiple environments. For example, you can create environments for development, testing, and production so that you can test changes before implementing them into production. To make templates reusable, use the parameters, mappings, and conditions sections so that you can customize your stacks when you create them. For example, for your development environments, you can specify a lower-cost instance type compared to your production environment, but all other configurations and settings remain the same. For more information about parameters, mappings, and conditions, see
upvoted 2 times
...
RicardoD
2 years, 6 months ago
A is the answer As a SINGLE template will be used for all environment, the parameters are the way to make the necessary changes, so the template can be used in other environments
upvoted 2 times
...
abhishek_m_86
2 years, 6 months ago
A. Use parameters to provision the resources.
upvoted 2 times
...
Chirantan
2 years, 6 months ago
its should be A as -->Nested stacks are stacks created as part of other stacks hence D is wrong
upvoted 2 times
...
kiev
2 years, 6 months ago
Answer is A. See AWS documents on cloud formation best practice. In it, bit states to the use of parameters among other things for templates reusable.
upvoted 2 times
...
kiev
2 years, 6 months ago
A for me definitely
upvoted 1 times
...
BKhan
2 years, 6 months ago
The answer is A: If you want to reuse your templet across other regions or other AWS accounts we use AWS parameters
upvoted 1 times
...
jackdryan
2 years, 6 months ago
I'll go with A
upvoted 1 times
...
MFDOOM
2 years, 6 months ago
A. Use parameters to provision the resources.
upvoted 2 times
...
gilbertlelancelo
2 years, 6 months ago
A. Use parameters to provision the resources. Reuse templates to replicate stacks in multiple environments After you have your stacks and resources set up, you can reuse your templates to replicate your infrastructure in multiple environments. For example, you can create environments for development, testing, and production so that you can test changes before implementing them into production. To make templates reusable, use the parameters, mappings, and conditions sections so that you can customize your stacks when you create them. For example, for your development environments, you can specify a lower-cost instance type compared to your production environment, but all other configurations and settings remain the same. For more information about parameters, mappings, and conditions, see Template anatomy. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#reuse
upvoted 2 times
...
orebaron
2 years, 6 months ago
definitely A , If you want to reuse your templates across the company use param
upvoted 3 times
...
KhatriRocks
2 years, 6 months ago
Single Template, Reusable, Choice is A
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago