AZ-305 · Question 45 · Domain 4.2: Design an application architecture
You are designing a distributed microservices architecture for a travel booking system.
Booking a vacation requires three steps: booking a flight, booking a hotel, and processing payment. Each step is handled by a separate microservice with its own database.
If the flight and hotel are booked successfully, but the payment processing fails, the system must automatically cancel the flight and hotel bookings to maintain data consistency.
Which architectural pattern should you implement?
Answer options:
Command and Query Responsibility Segregation (CQRS)
Saga pattern
Circuit Breaker pattern
Event Sourcing
55 questions · hints · full answers · grading