AZ-305 · Question 46 · Domain 4.2: Design an application architecture
You are designing a microservices architecture for a travel booking system.
A single user action (booking a vacation) requires updating data across three independent microservices: Flight Booking, Hotel Booking, and Car Rental. Each microservice has its own database. If the Flight and Hotel bookings succeed, but the Car Rental fails, the entire transaction must be rolled back to maintain data consistency.
Which distributed transaction pattern should you implement?
Answer options:
Saga pattern with Compensating Transactions
Two-Phase Commit (2PC)
Command Query Responsibility Segregation (CQRS)
Circuit Breaker pattern
55 questions · hints · full answers · grading