0
0
Elasticsearchquery~20 mins

Infrastructure monitoring in Elasticsearch - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Infrastructure Monitoring Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Elasticsearch cluster health status output
What is the output of the following command when the cluster is fully operational with no issues?
Elasticsearch
curl -X GET "localhost:9200/_cluster/health?pretty"
A
{
  "cluster_name" : "my_cluster",
  "status" : "green",
  "number_of_nodes" : 3,
  "active_primary_shards" : 10
}
B
{
  "cluster_name" : "my_cluster",
  "status" : "red",
  "number_of_nodes" : 3,
  "active_primary_shards" : 10
}
C
{
  "cluster_name" : "my_cluster",
  "status" : "yellow",
  "number_of_nodes" : 3,
  "active_primary_shards" : 10
}
Dcurl: (7) Failed to connect to localhost port 9200: Connection refused
Attempts:
2 left
💡 Hint
The cluster health status 'green' means all primary and replica shards are active.
🧠 Conceptual
intermediate
1:30remaining
Purpose of Elasticsearch node stats API
What is the main purpose of the Elasticsearch /_nodes/stats API in infrastructure monitoring?
ATo create new indices in the cluster.
BTo retrieve detailed statistics about nodes such as CPU, memory, and disk usage.
CTo delete documents from an index.
DTo update cluster settings dynamically.
Attempts:
2 left
💡 Hint
Think about what kind of node information helps monitor resource usage.
Troubleshoot
advanced
2:00remaining
Diagnosing Elasticsearch cluster yellow status
You run curl -X GET "localhost:9200/_cluster/health?pretty" and see the status is 'yellow'. What is the most likely cause?
AThe cluster has lost primary shards and is not functional.
BThe Elasticsearch service is not running on the node.
CThe cluster is fully healthy with no issues.
DSome replica shards are not allocated, but all primary shards are active.
Attempts:
2 left
💡 Hint
Yellow means partial issues, not complete failure.
🔀 Workflow
advanced
2:30remaining
Steps to monitor Elasticsearch disk usage
Which sequence correctly describes the steps to monitor disk usage of Elasticsearch nodes using the API?
A1,3,2,4
B2,1,3,4
C1,2,3,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about the logical order: get data, analyze, alert, then review.
Best Practice
expert
3:00remaining
Best practice for alerting on Elasticsearch node failures
Which option describes the best practice for setting up alerts to detect Elasticsearch node failures promptly?
AConfigure alerts on node availability using heartbeat monitoring and cluster health status changes.
BOnly check disk usage once a month and alert if above 90%.
CIgnore node failures if the cluster status is green.
DManually check logs daily without automated alerts.
Attempts:
2 left
💡 Hint
Effective alerting combines availability checks and cluster health monitoring.