Challenge - 5 Problems
Hot-Warm-Cold Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of this hot-warm-cold node allocation query?
Given an Elasticsearch cluster with hot, warm, and cold nodes, what will this query return?
Elasticsearch
GET /_cat/allocation?v # Assume the cluster has 3 hot nodes, 2 warm nodes, and 1 cold node. # The query shows disk usage per node.
Attempts:
2 left
💡 Hint
The _cat/allocation API shows allocation info for all nodes by default.
✗ Incorrect
The _cat/allocation API lists all nodes in the cluster with their disk usage and shard allocation. It does not filter by node tier unless specified.
🧠 Conceptual
intermediate1:30remaining
Which node tier is best suited for storing frequently updated data?
In a hot-warm-cold Elasticsearch architecture, which node tier should store data that is updated frequently and requires fast access?
Attempts:
2 left
💡 Hint
Think about which nodes handle indexing and fast queries.
✗ Incorrect
Hot nodes are designed for fast indexing and search of recent data that changes frequently.
🔧 Debug
advanced2:30remaining
Why does this index not move to the warm tier as expected?
An index lifecycle policy is set to move indices from hot to warm after 7 days, but indices remain on hot nodes. What is the likely cause?
Elasticsearch
PUT _ilm/policy/my_policy
{
"policy": {
"phases": {
"hot": {
"actions": {
"rollover": {
"max_age": "7d"
}
}
},
"warm": {
"actions": {
"allocate": {
"require": {
"data": "warm"
}
}
}
}
}
}
}Attempts:
2 left
💡 Hint
Check node attributes and allocation filtering.
✗ Incorrect
If warm nodes lack the required attribute 'data=warm', allocation cannot move shards there.
📝 Syntax
advanced2:00remaining
Identify the syntax error in this ILM policy snippet for cold phase allocation
Which option contains the correct syntax to allocate indices to cold nodes in the cold phase?
Elasticsearch
PUT _ilm/policy/cold_policy
{
"policy": {
"phases": {
"cold": {
"min_age": "30d",
"actions": {
"allocate": {
"require": {
"data": "cold"
}
}
}
}
}
}
}Attempts:
2 left
💡 Hint
JSON keys must be strings and use curly braces for objects.
✗ Incorrect
Option C uses correct JSON object syntax with string keys and nested objects.
🚀 Application
expert3:00remaining
How many shards will be on cold nodes after 60 days with this ILM policy?
An index has 10 primary shards and 1 replica. The ILM policy moves data from hot to warm at 7 days, then to cold at 30 days. After 60 days, how many shards (primary + replica) are allocated on cold nodes?
Elasticsearch
ILM policy phases: - hot: 0-7 days - warm: 7-30 days - cold: 30+ days Index settings: - number_of_shards: 10 - number_of_replicas: 1
Attempts:
2 left
💡 Hint
Replicas move with primaries during ILM phase transitions.
✗ Incorrect
Both primary and replica shards move to cold nodes after 30 days, so total shards are 10 primaries + 10 replicas = 20.