Courseiva
Continuous Improvement for Existing SolutionsmediumMultiple SelectObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company runs a production AWS environment with Amazon EC2 instances managed by Auto Scaling groups. The operations team notices that after a recent deployment, the application is returning higher error rates. Which TWO steps should the team take to enable a quick rollback and improve future deployments?

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 canary deployments using AWS CodeDeploy to shift traffic gradually and monitor error rates.

Implement canary deployments using AWS CodeDeploy to shift traffic gradually and monitor error rates. This allows a gradual rollout, reducing blast radius, and enables quick rollback by stopping traffic to unhealthy instances. Option D: Use AWS Elastic Beanstalk to perform a blue/green deployment, swapping the environment URL after testing. This provides a full rollback by swapping back to the old environment. Option A (lifecycle hooks) is for custom actions during instance lifecycle, not for rollback of deployments. Option C (CloudFormation change sets) allows previewing changes but does not automatically roll back on failure. Option E (CloudTrail) is for auditing API calls, not for deployment 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.

  • Configure Auto Scaling lifecycle hooks to automatically terminate new instances if health checks fail.

    Why it's wrong here

    Lifecycle hooks run custom actions but do not orchestrate rollback of deployments.

  • Implement canary deployments using AWS CodeDeploy to shift traffic gradually and monitor error rates.

    Why this is correct

    Canary deployments allow early detection and rollback if errors increase.

  • Use AWS CloudFormation change sets to automatically roll back failed deployments.

    Why it's wrong here

    Change sets preview changes but do not automatically roll back.

  • Use AWS Elastic Beanstalk to perform a blue/green deployment, swapping the environment URL after testing.

    Why this is correct

    Blue/green deployment allows instant rollback by swapping back to the old environment.

  • Enable AWS CloudTrail to track deployment API calls and automatically revert if errors exceed a threshold.

    Why it's wrong here

    CloudTrail is for logging, not automatic rollback.

Quick reference

AAA Protocol Comparison

ProtocolPort(s)EncryptionTransportPrimary Use
RADIUS1812 / 1813Password onlyUDPNetwork access control
TACACS+49Full packetTCPDevice administration
Diameter3868Full sessionTCP / SCTPCarrier / mobile networks
802.1XEAP-basedLayer 2Port-based access control

TACACS+ encrypts the entire packet; RADIUS only encrypts the password field — a key exam distinction.

About these practice questions

One of 1,660 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.