0
0
Microservicessystem_design~20 mins

Identifying service boundaries in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Service Boundary Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identifying service boundaries based on business capabilities

Which of the following best describes how to identify service boundaries in a microservices architecture?

AGroup services by technical layers such as database, API, and UI to separate concerns.
BSplit services based on the size of the development team to balance workload.
CCreate one large service that handles all business logic to reduce network calls.
DDefine services around distinct business capabilities or domains to ensure loose coupling.
Attempts:
2 left
💡 Hint

Think about how to keep services independent and aligned with business goals.

Architecture
intermediate
2:00remaining
Choosing service boundaries for an e-commerce platform

You are designing microservices for an e-commerce platform. Which service boundary division is most appropriate?

ASeparate services for user authentication, product catalog, order processing, and payment handling.
BSeparate services for frontend UI, backend API, and database access.
CSeparate services by geographic region to optimize latency.
DSeparate services by programming language used for development.
Attempts:
2 left
💡 Hint

Consider how to align services with distinct business functions.

scaling
advanced
2:00remaining
Scaling microservices by service boundaries

Which approach best supports scaling microservices independently based on service boundaries?

ADesign services so that each handles multiple unrelated business functions to maximize resource use.
BDesign services around single business capabilities so they can be scaled independently as demand varies.
CCombine all services into one monolith to simplify scaling decisions.
DScale services only by increasing database capacity regardless of service boundaries.
Attempts:
2 left
💡 Hint

Think about how service boundaries affect independent scaling.

tradeoff
advanced
2:00remaining
Tradeoffs in defining service boundaries

What is a common tradeoff when defining very fine-grained service boundaries in microservices?

AImproved performance due to fewer network calls between services.
BSimpler deployment because fewer services exist to manage.
CIncreased complexity in communication and data consistency across many small services.
DReduced fault tolerance because all logic is in one service.
Attempts:
2 left
💡 Hint

Consider what happens when services are too small and numerous.

estimation
expert
3:00remaining
Estimating number of microservices for a ride-sharing app

You are tasked with estimating the number of microservices needed for a ride-sharing app. The app includes user management, ride matching, payment processing, driver tracking, and notifications. Which is the most reasonable estimate?

A5 or more services, each focused on a distinct business capability like user management, ride matching, payment, driver tracking, and notifications.
B2 services: one for users and rides, one for payments and notifications.
C10 services, splitting each feature into multiple smaller services regardless of business boundaries.
D1 service handling all features to reduce complexity.
Attempts:
2 left
💡 Hint

Think about aligning services with clear business capabilities without over-fragmenting.