Courseiva
Continuous Improvement for Existing SolutionsmediumMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company runs a production application on Amazon EC2 instances behind an Application Load Balancer. Recently, error rates increased due to a misconfiguration. The operations team wants to automatically roll back to the previous working configuration if errors exceed a threshold. Which solution provides the fastest rollback?

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

Implement AWS CodeDeploy with automatic rollback triggered by CloudWatch alarms.

AWS CodeDeploy supports automatic rollback based on CloudWatch alarm thresholds, providing the fastest rollback by reverting to the previous working deployment revision automatically. Option A is incorrect because manually restoring AMI snapshots is slow and error-prone. Option B is incorrect because AWS Elastic Beanstalk with rolling updates and health checks can perform rollbacks, but it is slower and less granular than CodeDeploy’s immediate alarm-based rollback. Option C is incorrect because AWS CloudFormation stack policies prevent updates and do not facilitate automatic rollback of the application deployment.

Answer analysis

Option-by-option breakdown

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

  • Manually restore AMI snapshots of the previous deployment.

    Why it's wrong here

    Manually restoring AMI snapshots is slow and error-prone, not providing fast rollback.

  • Use AWS Elastic Beanstalk with rolling updates and health checks.

    Why it's wrong here

    AWS Elastic Beanstalk can perform rollbacks via rolling updates and health checks, but it is slower and less granular than CodeDeploy's alarm-based automatic rollback.

  • Use AWS CloudFormation with a stack policy to prevent updates.

    Why it's wrong here

    AWS CloudFormation stack policies prevent updates and do not facilitate automatic rollback of the application deployment.

  • Implement AWS CodeDeploy with automatic rollback triggered by CloudWatch alarms.

    Why this is correct

    AWS CodeDeploy supports automatic rollback based on CloudWatch alarm thresholds, providing the fastest rollback by reverting to the previous working deployment revision automatically.

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.