Bird
Raised Fist0

Given the following sequence during a rolling upgrade:

medium📝 Predict Output Q13 of Q15
Elasticsearch - Cluster Management
Given the following sequence during a rolling upgrade:
1. Disable shard allocation
2. Upgrade node 1
3. Upgrade node 2
4. Enable shard allocation

What is the expected cluster behavior after step 4?
AThe cluster will stop accepting new data
BThe cluster will rebalance shards across all nodes
CThe cluster will delete old shards permanently
DThe cluster will remain unbalanced with shards stuck
Step-by-Step Solution
Solution:
  1. Step 1: Understand shard allocation states

    Disabling shard allocation prevents shard movement during upgrade; enabling it allows rebalancing.
  2. Step 2: Analyze cluster behavior after enabling allocation

    After enabling, the cluster redistributes shards to balance load.
  3. Final Answer:

    The cluster will rebalance shards across all nodes -> Option B
  4. Quick Check:

    Enable allocation = rebalance shards [OK]
Quick Trick: Enabling shard allocation triggers shard rebalancing [OK]
Common Mistakes:
MISTAKES
  • Thinking cluster stops accepting data
  • Assuming shards get deleted
  • Believing shards remain stuck after enabling allocation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes