Bird
0
0

How can combining vertical and horizontal decomposition improve scalability in a microservices database?

hard📝 Trade-off Q9 of 15
Microservices - Migration from Monolith
How can combining vertical and horizontal decomposition improve scalability in a microservices database?
ABy duplicating all data across services for faster access
BBy merging all tables into one large table for simplicity
CBy splitting tables both by columns and rows, reducing data size per service
DBy storing all data in a single database shard
Step-by-Step Solution
Solution:
  1. Step 1: Understand combined decomposition

    Vertical splits columns, horizontal splits rows, so combining reduces data per service.
  2. Step 2: Identify scalability benefit

    Smaller data per service improves performance and scalability.
  3. Final Answer:

    By splitting tables both by columns and rows, reducing data size per service -> Option C
  4. Quick Check:

    Combine vertical + horizontal = smaller data chunks [OK]
Quick Trick: Combine splits to reduce data size per service [OK]
Common Mistakes:
  • Thinking duplication improves scalability
  • Assuming merging tables helps scaling
  • Believing single shard is scalable

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes