QuizzesService Decomposition Strategies — Concept Check
intermediate
microservices

Service Decomposition Strategies — Concept Check

Questions on Service Decomposition Strategies. Decompose by business capability, by subdomain (DDD), or by verb (action); wrong boundaries are the primary cause of microservices complexity and distributed monoliths.

8 minutes 8 questions Pass at 70%
Time Limit
8 minutes - timer starts when you begin
Change Answers Freely
Revisit and change any answer before submitting
Full Review After Submit
Correct answers and explanations shown for every question
Auto-submit on timeout
Quiz submits automatically when time runs out

Questions in this quiz

8 questions on Service Decomposition Strategies — Concept Check. Work through them here, then start the quiz to answer them and see your score.

  1. 1.A company is transitioning from a monolithic architecture to microservices using the strangler fig pattern. They have built a new 'inventory-service'. What should be their next step?

    • ADecommission the monolith before routing requests to the new service.
    • BMigrate all data to the new service immediately.
    • CBuild all new features directly into the monolith for consistency.
    • DRoute all inventory-related requests to the new service via an API gateway.
  2. 2.In a microservices architecture, which strategy involves defining services based on stable organizational functions?

    • ADecompose by technology stack
    • BDecompose by verb (action)
    • CDecompose by business capability
    • DDecompose by subdomain (DDD)
  3. 3.A team has decomposed their services by DDD subdomains. They notice that 'Product' means different things in 'order-service' and 'catalogue-service'. What should they do?

    • AUse a context map to manage differences between services.
    • BMerge the services to avoid confusion.
    • CRename 'Product' to a common term in both services.
    • DShare a common database to synchronize 'Product' definitions.
  4. 4.A developer is integrating 'order-service' with 'catalogue-service'. They decide to use an Anti-Corruption Layer (ACL). What is the purpose of this layer?

    • ATo enforce data consistency between services.
    • BTo improve performance by caching data locally.
    • CTo translate external models into the service's internal domain model.
    • DTo allow direct database access between services.
  5. 5.A team is experiencing high network latency between services. They suspect their service boundaries might be incorrect. What is a likely cause?

    • AServices are too large, leading to complex internal logic.
    • BServices are too granular, causing excessive inter-service communication.
    • CServices are hosted on the same server.
    • DServices are using different technology stacks.
  6. 6.Which decomposition strategy aligns with the concept of bounded contexts in Domain-Driven Design (DDD)?

    • ADecompose by verb (action)
    • BDecompose by business capability
    • CDecompose by technology stack
    • DDecompose by subdomain
  7. 7.A company decomposes their monolith by business capability. They notice that 'order-service' is frequently querying 'customer-service'. What should they do to improve service independence?

    • AUse a shared database for both services to reduce API calls.
    • BAllow direct database access between services for efficiency.
    • CMerge order-service and customer-service into one service.
    • DUse customer-service's API to fetch customer data instead of direct queries.
  8. 8.A developer believes that decomposing services by verb (action) will lead to better performance. What is a potential downside of this approach?

    • AIt simplifies the deployment process.
    • BIt reduces the need for inter-service communication.
    • CIt guarantees improved performance across all services.
    • DIt may lead to nano-services that are harder to manage.