Bird
0
0

You have this routing rule:

medium📝 Analysis Q14 of 15
Microservices - Service Mesh
You have this routing rule:
route:
  path: /user
  service: user-service-v1
  weight: 100
But requests to /user/profile are not reaching user-service-v1. What is the likely problem?
AService name is incorrect and causes failure
BWeight should be split between multiple services
CThe path rule matches only exact /user, not subpaths like /user/profile
DRouting rules cannot use path matching
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the path matching rule

    The rule matches exactly /user, but /user/profile is a subpath and may not match unless wildcard or prefix matching is used.
  2. Step 2: Identify why requests fail

    Since /user/profile does not match exactly /user, requests do not route to user-service-v1.
  3. Final Answer:

    The path rule matches only exact /user, not subpaths like /user/profile -> Option C
  4. Quick Check:

    Exact path matching excludes subpaths [OK]
Quick Trick: Exact path matches exclude subpaths unless wildcard used [OK]
Common Mistakes:
MISTAKES
  • Assuming weight must be split
  • Blaming service name without checking
  • Thinking routing ignores paths

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes