exam questions

Exam AWS-SysOps All Questions

View all questions & answers for the AWS-SysOps exam

Exam AWS-SysOps topic 1 question 829 discussion

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

A company has deployed its infrastructure using AWS CloudFormation. Recently, the company made manual changes to the infrastructure. A SysOps
Administrator is tasked with determining what was changed and updating the CloudFormation template.
Which solution will ensure all the changes are captured?

  • A. Create a new CloudFormation stack based on the changes that were made. Delete the old stack and deploy the new stack.
  • B. Update the CloudFormation stack using a change set. Review the changes and update the stack.
  • C. Update the CloudFormation stack by modifying the selected parameters in the template to match what was changed.
  • D. Use drift detection on the CloudFormation stack. Use the output to update the CloudFormation template and redeploy the stack.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
kung07
Highly Voted 2 years, 9 months ago
D You first need to figure out what was changed. Use Cloudformation drift for that. Then update your Cloudformation template, and use a changeset to roll it out. Assuming 'redeploy the stack' would mean using a changeset.
upvoted 17 times
AWSvad
2 years, 9 months ago
Thanks for your feedback. Could you please check out the other new questions and provide your feedback there too?
upvoted 1 times
...
...
proxyolism
Highly Voted 2 years, 8 months ago
I was confused with topic2 question14. as question14, I picked this questions answer to B. I want to know diffrences between *change set* and *drift detection* https://stackoverflow.com/questions/60910525/what-is-the-difference-cloudformation-drift-and-change-sets import thing was *manual changes*. if there is no manual changes, the answer is B. but this question has manual changes, and answer is D indeed.
upvoted 6 times
...
albert_kuo
Most Recent 11 months, 2 weeks ago
Selected Answer: B
Option B (updating the CloudFormation stack using a change set) is the appropriate approach when you want to capture all the changes made to the infrastructure in a controlled and automated manner. A change set provides a summary of proposed changes to the CloudFormation stack, including additions, modifications, and deletions of resources based on an updated template. You can review and validate the changes before applying them to the stack, ensuring a controlled and accurate update process.
upvoted 1 times
albert_kuo
10 months ago
Change to D drift detection
upvoted 1 times
...
...
gulu73
1 year, 4 months ago
Selected Answer: D
D is the answer
upvoted 1 times
...
RicardoD
2 years, 7 months ago
D is the answer
upvoted 1 times
...
abhishek_m_86
2 years, 8 months ago
D. Use drift detection on the CloudFormation stack. Use the output to update the CloudFormation template and redeploy the stack. Seem correct
upvoted 1 times
...
jackdryan
2 years, 8 months ago
I'll go with D
upvoted 1 times
...
vob
2 years, 8 months ago
The question is vague: it says the administrator must (1) determine what has changed and (2) update the template. Then it asks "which solution will ensure all the changes are captured" - So is that (1) AND (2), or only (2)? Not A because deleting the old stack will delete the resources. Not C because it would be a coincidence, sheer luck, if the changes are identical to those arising from a change of parameters. I thought it could be B because the question asks "which solution will ensure all the changes are captured". If the administrator had determined the changes, then simply updating the stack and getting it reviewed via a change set would not be good practice. But the answer is D because there is a feature called "drift detection" specifically for this purpose. I thought it was a trick answer because the name sounds casual. But it's actually correct.
upvoted 2 times
...
gofavad926
2 years, 8 months ago
D. You can use drift detection to identify stack resources to which configuration changes have been made outside of CloudFormation management. You can then take corrective action so that your stack resources are again in sync with their definitions in the stack template, such as updating the drifted resources directly so that they agree with their template definition. Resolving drift helps to ensure configuration consistency and successful stack operations.
upvoted 3 times
...
nicat
2 years, 9 months ago
D. Use drift detection on the CloudFormation stack. Use the output to update the CloudFormation template and redeploy the stack. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-stack-drift.html
upvoted 4 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 ...