Courseiva
Continuous Improvement for Existing SolutionseasyMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company uses AWS CloudFormation to deploy infrastructure. The company wants to ensure that if a stack update fails, the stack automatically rolls back to the last known good state. Which CloudFormation stack option should the company configure?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Set the 'Rollback on failure' option to 'Yes' when performing the stack update.

When performing a stack update, you can set the 'Rollback on failure' option to 'Yes'. This ensures that if the update fails, CloudFormation automatically rolls back to the last known good state. Option A is incorrect because termination protection prevents accidental deletion, not rollback. Option B is incorrect because a stack policy controls which resources can be updated, not rollback behavior. Option D is incorrect because change sets allow you to review changes but do not provide automatic rollback.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable termination protection on the stack.

    Why it's wrong here

    Termination protection prevents accidental deletion, not rollback on failed updates.

  • Configure a stack policy to prevent updates to critical resources.

    Why it's wrong here

    Stack policies are for protecting resources during updates, not for rollback behavior.

  • Set the 'Rollback on failure' option to 'Yes' when performing the stack update.

    Why this is correct

    This is the default behavior; if an update fails, CloudFormation rolls back automatically.

  • Use a change set to review changes before updating the stack.

    Why it's wrong here

    Change sets provide a preview but do not handle rollback.

About these practice questions

This SAP-C02 question is part of Courseiva's 1,660-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.