Your application performs distributed transactions across an Order service and a Payment service using synchronous REST calls. Failures are frequent under load, and you must prevent cascading retries while still ensuring eventual consistency. Which pattern is most appropriate?

Answer

Use a saga pattern with orchestrated steps and compensation, using asynchronous messaging for state transitions and idempotent handlers

Explanation

Sagas decouple distributed work, handle partial failures with compensating actions, and avoid brittle synchronous retry storms. Idempotent handlers prevent duplicate side effects from retried events.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error

Related questions

You must design a secure cross-account access pattern where a central security team in account A needs to read audit logs stored in account B. The requirement is that account B retains control of what is accessible and can revoke access without updating identities in account A. What is the best practice approach?

View question →

A VPC uses private subnets with NAT instances previously, and the workload now includes frequent outbound calls from many services. You must reduce operational complexity and improve scalability without breaking network egress controls. Which migration target best meets this?

View question →

An organization uses AWS Organizations with SCPs and wants to ensure that only a specific set of accounts can create network interfaces in a shared VPC. They also need to prevent accidental disabling of flow logs. Which combination is most appropriate?

View question →

A company must support multi-tenant SaaS on AWS where each tenant must be isolated for cost reporting and operational debugging. Tenants share the same application tier, but data must be isolated and throttling must be per-tenant. Which combination best meets these requirements?

View question →

A system uses multiple microservices running on ECS. An upstream service calls downstream services across accounts via an API. The downstream accounts require that requests be authorized based on the caller’s AWS identity, not a shared static token. Which approach is best?

View question →

A data platform runs an ETL pipeline that produces new datasets every hour, and downstream analytics must query both the latest and the previous snapshot with low latency. The pipeline writes to S3, and queries run on a lakehouse. Which approach best enables snapshot isolation and safe schema evolution while limiting costs?

View question →

QuestionBack to list