0
0
Elasticsearchquery~20 mins

Rolling upgrades in Elasticsearch - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Elasticsearch Rolling Upgrade Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
2:00remaining
Output of rolling upgrade cluster health status
Consider a rolling upgrade process in Elasticsearch where nodes are upgraded one by one. After upgrading the first node, the cluster health is checked with the following command:

GET /_cluster/health

What is the expected value of the status field in the response during the upgrade?
Elasticsearch
GET /_cluster/health
A"yellow"
B"red"
C"green"
D"blue"
Attempts:
2 left
💡 Hint
During rolling upgrades, some shards may be temporarily unassigned.
🧠 Conceptual
intermediate
2:00remaining
Understanding shard allocation during rolling upgrades
During a rolling upgrade in Elasticsearch, what happens to shard allocation on the node that is being upgraded?
AShards remain on the node until it is stopped, then replicas take over temporarily.
BAll shards on the node are immediately moved to other nodes before upgrade starts.
CShards are deleted and recreated after the node restarts.
DShard allocation is frozen and no changes happen during the upgrade.
Attempts:
2 left
💡 Hint
Think about how Elasticsearch maintains data availability during node restarts.
Predict Output
advanced
2:00remaining
Result of incompatible index during rolling upgrade
You attempt a rolling upgrade from Elasticsearch 7.10 to 8.0. One index uses a deprecated mapping feature incompatible with 8.0. What will happen when the node with that index restarts?
AThe node starts but the index is marked as read-only and inaccessible.
BThe node fails to start and logs an error about the incompatible index.
CThe node starts normally and automatically upgrades the index mapping.
DThe node starts and deletes the incompatible index automatically.
Attempts:
2 left
💡 Hint
Elasticsearch enforces strict index compatibility during major version upgrades.
🔧 Debug
advanced
2:00remaining
Identify the cause of cluster red status during rolling upgrade
During a rolling upgrade, the cluster health status unexpectedly turns red. Which of the following is the most likely cause?
AA master node was upgraded last, causing cluster state loss.
BThe upgrade process skipped the cluster settings update step.
CA node was shut down before its shards were replicated elsewhere.
DAll replicas were assigned to the same node, causing shard conflicts.
Attempts:
2 left
💡 Hint
Red status means some primary shards are missing or unassigned.
🚀 Application
expert
3:00remaining
Planning a rolling upgrade with zero downtime
You need to perform a rolling upgrade on a 5-node Elasticsearch cluster with critical uptime requirements. Which sequence of steps ensures zero downtime?
ADisable shard allocation, upgrade all nodes simultaneously, then re-enable shard allocation.
BUpgrade master nodes first, then data nodes, restarting one node at a time with shard allocation enabled.
CUpgrade one node at a time with shard allocation enabled, waiting for cluster green status before next node.
DDisable shard allocation, upgrade one node at a time, wait for cluster green status before next node.
Attempts:
2 left
💡 Hint
Think about how shard allocation affects data availability during node restarts.