Bird
0
0

If a microservice uses vertical decomposition, which of the following is true about the database schema?

medium📝 Analysis Q5 of 15
Microservices - Migration from Monolith
If a microservice uses vertical decomposition, which of the following is true about the database schema?
AEach microservice owns a full copy of the original table
BTables are split by rows based on user ID
CEach microservice owns tables with a subset of columns from the original table
DAll microservices share the same full schema
Step-by-Step Solution
Solution:
  1. Step 1: Recall vertical decomposition meaning

    It splits tables by columns, so each service owns some columns.
  2. Step 2: Analyze options

    Each microservice owns tables with a subset of columns from the original table correctly states ownership of subsets of columns.
  3. Final Answer:

    Each microservice owns tables with a subset of columns from the original table -> Option C
  4. Quick Check:

    Vertical decomposition = subset columns per service [OK]
Quick Trick: Vertical = columns split, partial tables per service [OK]
Common Mistakes:
  • Thinking vertical means full table copies
  • Confusing vertical with horizontal splitting
  • Assuming shared full schema

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes