Bird
0
0

You receive nested JSON uptime data per region: {"regions": {"us-east": {"uptime": 99.8}, "eu-west": {"uptime": 99.6}}}. How do you compute overall uptime across regions?

hard📝 Application Q9 of 15
Rest API - API Testing and Monitoring
You receive nested JSON uptime data per region: {"regions": {"us-east": {"uptime": 99.8}, "eu-west": {"uptime": 99.6}}}. How do you compute overall uptime across regions?
ACalculate weighted average uptime based on traffic per region
BTake the maximum uptime value among regions
CAdd all uptime values together
DUse the uptime of the region with the most servers
Step-by-Step Solution
Solution:
  1. Step 1: Understand multi-region uptime aggregation

    Overall uptime depends on traffic or usage weight per region, not just uptime values.
  2. Step 2: Evaluate options

    Maximum or sum of uptimes ignores traffic distribution; using server count alone is insufficient.
  3. Final Answer:

    Calculate weighted average uptime based on traffic per region -> Option A
  4. Quick Check:

    Overall uptime = weighted average by traffic [OK]
Quick Trick: Weight uptimes by traffic, not just count or max [OK]
Common Mistakes:
MISTAKES
  • Using max uptime as overall
  • Adding uptimes directly
  • Ignoring traffic weights

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes