0
0
Elasticsearchquery~10 mins

Deleting and closing indexes 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 delete an index named 'my_index'.

Elasticsearch
DELETE /[1]
Drag options to blanks, or click blank then click option'
Aindex_name
Bmy_index
Cdelete_index
Dindex
Attempts:
3 left
💡 Hint
Common Mistakes
Using a placeholder name instead of the actual index name.
Forgetting to specify the index name after DELETE.
2fill in blank
medium

Complete the code to close an index named 'logs_2023'.

Elasticsearch
POST /[1]/_close
Drag options to blanks, or click blank then click option'
Alogs_2023
B2023_logs
Clogs
Dclose_logs
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the index name with a wrong string.
Using DELETE instead of POST for closing.
3fill in blank
hard

Fix the error in the code to delete the index 'archive'.

Elasticsearch
DELETE /[1]/
Drag options to blanks, or click blank then click option'
Aarchives
Barchive/
C/archive
Darchive
Attempts:
3 left
💡 Hint
Common Mistakes
Adding a trailing slash after the index name.
Using a wrong index name.
4fill in blank
hard

Fill both blanks to close the index 'user_data' using the correct HTTP method and URL.

Elasticsearch
[1] /[2]/_close
Drag options to blanks, or click blank then click option'
APOST
BDELETE
Cuser_data
Dusers
Attempts:
3 left
💡 Hint
Common Mistakes
Using DELETE instead of POST to close.
Using wrong index name in the URL.
5fill in blank
hard

Fill both blanks to delete the index 'temp_logs' using the correct HTTP method and index name.

Elasticsearch
[1] /[2]
Drag options to blanks, or click blank then click option'
APOST
BDELETE
Ctemp_logs
Dlogs_temp
Attempts:
3 left
💡 Hint
Common Mistakes
Using POST instead of DELETE to delete.
Swapping index name with a wrong string.