Bird
0
0

Which of the following is the correct way to define a microservice boundary?

easy📝 Conceptual Q12 of 15
Microservices - Migration from Monolith
Which of the following is the correct way to define a microservice boundary?
AA service that handles user authentication and profile management
BA service that mixes payment processing and product catalog updates
CA service that only manages database connections
DA service that handles logging for all other services
Step-by-Step Solution
Solution:
  1. Step 1: Identify cohesive responsibilities

    A good service boundary groups related business functions, like authentication and profile management.
  2. Step 2: Check for unrelated responsibilities

    Options A, B, and C mix unrelated concerns or are cross-cutting, which should be separate services or infrastructure.
  3. Final Answer:

    A service that handles user authentication and profile management -> Option A
  4. Quick Check:

    Cohesive business functions = D [OK]
Quick Trick: Group related business tasks in one service [OK]
Common Mistakes:
  • Combining unrelated business functions
  • Creating services for technical concerns only
  • Mixing cross-cutting concerns inside business services

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes