Courseiva
Continuous Improvement for Existing SolutionshardMultiple ChoiceObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company is migrating a monolithic application to microservices on Amazon ECS. The application uses a legacy database that does not support distributed transactions. The team wants to ensure data consistency across services. Which solution is BEST for achieving eventual consistency with minimal code changes?

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 the Saga pattern using AWS Step Functions.

Implementing the Saga pattern with AWS Step Functions allows orchestrating distributed transactions across services, managing rollbacks and compensating actions. This is the best approach for eventual consistency with minimal code changes.

Answer analysis

Option-by-option breakdown

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

  • Use Amazon DynamoDB transactions across all services.

    Why it's wrong here

    DynamoDB transactions are for a single database, not across multiple services with a legacy database.

  • Modify the legacy database to support two-phase commit.

    Why it's wrong here

    Modifying the legacy database is often not feasible and two-phase commit can have performance issues.

  • Use Amazon SQS to queue all database writes and process them sequentially.

    Why it's wrong here

    Sequential processing does not guarantee consistency across services and may cause performance bottlenecks.

  • Implement the Saga pattern using AWS Step Functions.

    Why this is correct

    Step Functions can orchestrate a saga, handling failures and compensating transactions.

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.