Bird
Raised Fist0

Given this cluster health API response snippet:

medium📝 Predict Output Q4 of Q15
Elasticsearch - Cluster Management
Given this cluster health API response snippet:
{"status":"yellow","number_of_nodes":3,"active_primary_shards":5,"active_shards":7}

What does the yellow status mean?
AAll primary and replica shards are allocated
BPrimary shards are allocated but some replicas are not
CPrimary shards are missing
DCluster is offline
Step-by-Step Solution
Solution:
  1. Step 1: Understand cluster health colors

    Green means all shards allocated, yellow means replicas missing, red means primary shards missing.
  2. Step 2: Interpret yellow status

    Yellow indicates primary shards are allocated but some replica shards are not.
  3. Final Answer:

    Primary shards are allocated but some replicas are not -> Option B
  4. Quick Check:

    Yellow status = missing replicas [OK]
Quick Trick: Yellow means replicas missing, not primary shards [OK]
Common Mistakes:
MISTAKES
  • Thinking yellow means all shards allocated
  • Confusing yellow with red status
  • Assuming cluster offline on yellow

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes