0
0
Elasticsearchquery~10 mins

Cluster health API in Elasticsearch - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to get the cluster health status.

Elasticsearch
GET /_cluster/[1]
Drag options to blanks, or click blank then click option'
Astate
Bstatus
Chealth
Dinfo
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'status' or 'state' instead of 'health' in the URL.
2fill in blank
medium

Complete the code to filter cluster health by a specific index.

Elasticsearch
GET /_cluster/health?level=[1]
Drag options to blanks, or click blank then click option'
Aindices
Bindex
Cindex_name
Dindex_names
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular 'index' instead of 'indices' for the level parameter.
3fill in blank
hard

Fix the error in the cluster health API call to wait for a green status.

Elasticsearch
GET /_cluster/health?wait_for_status=[1]
Drag options to blanks, or click blank then click option'
Agreen
Bblue
Cred
Dyellow
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'yellow' or 'red' which do not indicate full cluster health.
4fill in blank
hard

Fill both blanks to check cluster health with a timeout and wait for a specific status.

Elasticsearch
GET /_cluster/health?timeout=[1]&wait_for_status=[2]
Drag options to blanks, or click blank then click option'
A30s
Bgreen
C60s
Dyellow
Attempts:
3 left
💡 Hint
Common Mistakes
Using '60s' timeout with 'yellow' status which is less healthy.
5fill in blank
hard

Fill all three blanks to get cluster health for a specific index, wait for yellow status, and set a timeout.

Elasticsearch
GET /_cluster/health/[1]?wait_for_status=[2]&timeout=[3]
Drag options to blanks, or click blank then click option'
Amy_index
Byellow
C50s
Dgreen
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'green' status when the task asks for yellow.
Setting timeout too low or missing it.