Challenge - 5 Problems
Service Decomposition Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Identifying the primary principle of domain-driven design (DDD) in service decomposition
Which of the following best describes the main idea behind using domain-driven design (DDD) for decomposing microservices?
Attempts:
2 left
💡 Hint
Think about how business domains guide service boundaries.
✗ Incorrect
Domain-driven design focuses on dividing systems by business domains and bounded contexts, which helps create services aligned with real-world business capabilities.
❓ Architecture
intermediate2:00remaining
Choosing the best decomposition strategy for a retail platform
A retail platform wants to decompose its monolith into microservices. Which decomposition strategy would best isolate the payment processing functionality?
Attempts:
2 left
💡 Hint
Consider which approach isolates business functions clearly.
✗ Incorrect
Decomposing by business capabilities isolates payment processing as its own service, which improves maintainability and scalability.
❓ scaling
advanced2:00remaining
Scaling challenges with database-per-service pattern
What is a common scaling challenge when using the database-per-service pattern in microservices?
Attempts:
2 left
💡 Hint
Think about how data consistency is managed across services.
✗ Incorrect
Using separate databases per service leads to challenges in maintaining data consistency because distributed transactions are complex and often avoided.
❓ tradeoff
advanced2:00remaining
Tradeoff of fine-grained vs coarse-grained service decomposition
What is a key tradeoff when choosing fine-grained service decomposition over coarse-grained in microservices?
Attempts:
2 left
💡 Hint
Consider how service size affects communication and management.
✗ Incorrect
Fine-grained services lead to more network calls and higher operational complexity, while coarse-grained services reduce calls but may be less flexible.
❓ estimation
expert2:00remaining
Estimating service count from bounded contexts
A system has 5 bounded contexts identified by domain experts. Each bounded context is expected to be decomposed into 3 microservices on average. What is the estimated total number of microservices after decomposition?
Attempts:
2 left
💡 Hint
Multiply the number of bounded contexts by the average services per context.
✗ Incorrect
Multiplying 5 bounded contexts by 3 services each results in 15 total microservices.