Courseiva
Continuous Improvement for Existing SolutionsmediumMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company has a production Amazon ECS service running on Fargate. The service needs to be updated to use a new task definition with different environment variables. The company wants to perform a rolling update with minimal impact. What is the correct way to update the service?

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

Update the service with the new task definition and use a rolling update deployment controller.

Updating the ECS service with the new task definition while using the rolling update deployment controller performs a rolling update with minimal downtime. Option A is wrong because deleting and recreating the service causes downtime. Option B is wrong because modifying the task definition alone does not trigger a deployment; you must update the service to use the new revision. Option D is wrong because creating a new service duplicates resources and is unnecessary.

Answer analysis

Option-by-option breakdown

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

  • Delete the existing service and recreate it with the new task definition.

    Why it's wrong here

    This causes downtime.

  • Modify the task definition and then restart the service.

    Why it's wrong here

    Restarting does not use the new definition.

  • Update the service with the new task definition and use a rolling update deployment controller.

    Why this is correct

    Rolling update replaces tasks gradually.

  • Create a new service with the new task definition and delete the old one.

    Why it's wrong here

    Causes downtime and complexity.

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.