exam questions

Exam AWS DevOps Engineer Professional All Questions

View all questions & answers for the AWS DevOps Engineer Professional exam

Exam AWS DevOps Engineer Professional topic 1 question 100 discussion

Exam question from Amazon's AWS DevOps Engineer Professional
Question #: 100
Topic #: 1
[All AWS DevOps Engineer Professional Questions]

A company is developing a web application's infrastructure using AWS CloudFormation. The database engineering team maintains the database resources in a CloudFormation template, and the software development team maintains the web application resources in a separate CloudFormation template. As the scope of the application grows, the software development team needs to use resources maintained by the database engineering team. However, both teams have their own review and lifecycle management processes that they want to keep. Both teams also require resource-level change-set reviews. The software development team would like to deploy changes to this template using their CI/CD pipeline.

Which solution will meet these requirements?

  • A. Create a stack export from the database CloudFormation template and import those references into the web application CloudFormation template.
  • B. Create a CloudFormation nested stack to make cross-stack resource references and parameters available in both stacks.
  • C. Create a CloudFormation stack set to make cross-stack resource references and parameters available in both stacks.
  • D. Create input parameters in the web application CloudFormation template and pass resource names and IDs from the database stack.
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
SatenderRathee
Highly Voted 2 years, 4 months ago
Selected Answer: B
The correct answer is B. Creating a CloudFormation nested stack allows the software development team to make cross-stack resource references and parameters available in both stacks, while still maintaining separate review and lifecycle management processes for each team. In this way, the software development team can use resources maintained by the database engineering team in their CloudFormation template, and can deploy changes to their template using their CI/CD pipeline.
upvoted 11 times
...
saeidp
Highly Voted 2 years, 3 months ago
Selected Answer: A
A is correct https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html When you organize your AWS resources based on lifecycle and ownership, you might want to build a stack that uses resources that are in another stack. You can hardcode values or use input parameters to pass resource names and IDs. However, these methods can make templates difficult to reuse or can increase the overhead to get a stack running. Instead, use cross-stack references to export resources from a stack so that other stacks can use them. Stacks can use the exported resources by calling them using the Fn::ImportValue function.
upvoted 7 times
...
failexamonly
Most Recent 1 year, 3 months ago
Selected Answer: B
B will satisfy both teams
upvoted 1 times
...
daheck
2 years ago
Selected Answer: A
When you organize your AWS resources based on lifecycle and ownership, you might want to build a stack that uses resources that are in another stack. You can hardcode values or use input parameters to pass resource names and IDs. However, these methods can make templates difficult to reuse or can increase the overhead to get a stack running. Instead, use cross-stack references to export resources from a stack so that other stacks can use them. Stacks can use the exported resources by calling them using the Fn::ImportValue function.
upvoted 1 times
...
merki
2 years ago
Chatgpt said: Option B: Create a CloudFormation nested stack to make cross-stack resource references and parameters available in both stacks would be the best solution to meet these requirements. A CloudFormation nested stack is a stack that can be used as a resource within another stack, which allows for cross-stack resource references and parameters. This will enable the software development team to reference and use resources from the database engineering team's CloudFormation template without having to maintain them in their own template. Using a nested stack also allows both teams to maintain their own review and lifecycle management processes, as each team can manage their own stack independently. Additionally, the resource-level change-set reviews can be implemented on both the parent and nested stack, which provides a comprehensive review process.
upvoted 1 times
...
easytoo
2 years, 1 month ago
It's B and here's why: A CloudFormation nested stack allows you to create a stack as a set of AWS resources within another stack, enabling you to break down complex stacks into smaller, more manageable stacks. The nested stack can be used to create a set of resources that are managed and maintained by a different team or individual while still maintaining control over the resources by the parent stack. By using nested stacks, both teams can maintain their own review and lifecycle management processes while still enabling cross-stack resource references and parameter sharing
upvoted 1 times
...
BelloMio
2 years, 2 months ago
The answer is not nested stacks as you cannot perform change sets on your own. You need a root stack for that and who manages the root stack?
upvoted 3 times
...
BelloMio
2 years, 2 months ago
B does not make sense to me. If you want the straps to be independent from one another you don’t use nested stacks
upvoted 2 times
BelloMio
2 years, 2 months ago
https://blog.shikisoft.com/cloudformation-nested-stacks-vs-cross-stack-references/ “Alternatively, if you need to manage your stacks as separate entities, you should use cross-stack references.”
upvoted 2 times
...
...
CloudFloater
2 years, 2 months ago
Selected Answer: B
B. This will satisfy both teams' requirements.
upvoted 2 times
...
LoveToronto
2 years, 2 months ago
The correct answer is B Nested Stacks are a great way to deploy your infrastructure in a modular fashion"
upvoted 1 times
...
LoveToronto
2 years, 2 months ago
Nested Stacks are a great way to deploy your infrastructure in a modular fashion"
upvoted 1 times
...
Mark1000
2 years, 2 months ago
I'm not quite sure how this website calculates the proportions of the answers, as in this question there are more users who have voted A than B, at least a tie, and yet it gives more percentage to B... In fact, in my opinion, the correct answer is A. But come on, I'm not saying it's A, it's what I think, I'm saying that I don't know how to get the proportion.....
upvoted 2 times
AkaAka4
2 years ago
People select the answer when they comment. If they don't, then their answer is not considered in the "proportion"... which is why even many prefer A, they didn't select the answer and B is still shown as the most selected answer.
upvoted 1 times
...
...
joseribas89
2 years, 2 months ago
Selected Answer: B
Option B is the best solution in this case. A nested stack is a stack that is created and managed as part of another stack. By creating a nested stack, both the database engineering team and the software development team can maintain their own CloudFormation templates and associated processes. The database engineering team can deploy their database stack as usual, and the software development team can create a nested stack that references the database stack's resources using cross-stack references.
upvoted 2 times
...
Piccaso
2 years, 2 months ago
Selected Answer: A
B and C are eliminated because software development team needs to use database engineering team, not vice verse. A is more reasonable than D.
upvoted 3 times
joseribas89
2 years, 2 months ago
Option A, using stack exports and imports, can allow cross-stack references, but it does not provide a way to maintain separate CloudFormation templates or allow for resource-level change-set reviews. Option D, passing resource names and IDs as input parameters from the database stack to the web application stack, can work, but it requires manual updates to the web application stack whenever the database stack changes. This solution can be error-prone and time-consuming to maintain. So, option B
upvoted 1 times
...
...
rrshah83
2 years, 2 months ago
Selected Answer: A
DB and web teams want to maintain the stack lifecycle separately ==> cross-stacks...
upvoted 5 times
...
Bulti
2 years, 3 months ago
Selected Answer: A
A is correct.
upvoted 4 times
...
Oleg_gol
2 years, 3 months ago
Selected Answer: A
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/best-practices.html#cross-stack
upvoted 5 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