Bird
0
0

Given this VirtualService snippet, what will be the effect on traffic?

medium📝 Command Output Q4 of 15
Kubernetes - Service Mesh
Given this VirtualService snippet, what will be the effect on traffic?
spec:
  http:
  - route:
    - destination:
        host: reviews
        subset: v1
      weight: 90
    - destination:
        host: reviews
        subset: v2
      weight: 10
AAll traffic goes to reviews v1
BTraffic is sent only to reviews v2
CTraffic is evenly split between v1 and v2
D90% of traffic goes to reviews v1, 10% to reviews v2
Step-by-Step Solution
Solution:
  1. Step 1: Analyze weights in route destinations

    The snippet shows two destinations with weights 90 and 10, meaning traffic is split accordingly.
  2. Step 2: Understand traffic distribution

    90% of requests go to subset v1, and 10% go to subset v2 of the reviews service.
  3. Final Answer:

    90% of traffic goes to reviews v1, 10% to reviews v2 -> Option D
  4. Quick Check:

    Weights control traffic split = 90% v1, 10% v2 [OK]
Quick Trick: Weights add to 100% to split traffic [OK]
Common Mistakes:
  • Assuming equal split without checking weights
  • Ignoring weights and picking one subset
  • Confusing subset names

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes