Bird
0
0

Which of the following YAML snippets correctly configures traffic splitting to send 70% of requests to serviceA and 30% to serviceB?

easy📝 Conceptual Q3 of 15
Microservices - Service Mesh
Which of the following YAML snippets correctly configures traffic splitting to send 70% of requests to serviceA and 30% to serviceB?
Asplit: - service: serviceA weight: 30 - service: serviceB weight: 70
Bsplit: - weight: 70 service: serviceA - weight: 30 service: serviceB
Croute: - service: serviceA percent: 70 - service: serviceB percent: 30
Dtraffic: serviceA: 70 serviceB: 30
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct YAML keys

    The correct keys for traffic splitting are typically split, weight, and service.
  2. Step 2: Verify weights and services

    split: - weight: 70 service: serviceA - weight: 30 service: serviceB correctly assigns 70 to serviceA and 30 to serviceB under split.
  3. Final Answer:

    split: - weight: 70 service: serviceA - weight: 30 service: serviceB is the correct YAML syntax.
  4. Quick Check:

    Weights must sum to 100 and use correct keys [OK]
Quick Trick: Use 'split' with 'weight' and 'service' keys summing to 100% [OK]
Common Mistakes:
MISTAKES
  • Swapping weights between services
  • Using incorrect keys like 'percent' or 'traffic'
  • Not summing weights to 100

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes