Challenge - 5 Problems
Elasticsearch Index Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of closing an index?
You run the following command to close an index named
my_index. What is the expected response status in the output?Elasticsearch
POST /my_index/_close
Attempts:
2 left
💡 Hint
Closing an index returns an acknowledgement from Elasticsearch.
✗ Incorrect
When you close an index in Elasticsearch, the response contains {"acknowledged":true} to confirm the operation succeeded.
❓ Predict Output
intermediate2:00remaining
What happens when deleting a non-existing index?
You try to delete an index named
unknown_index that does not exist. What is the typical response status?Elasticsearch
DELETE /unknown_index
Attempts:
2 left
💡 Hint
Elasticsearch returns an error if the index does not exist when deleting.
✗ Incorrect
Trying to delete a non-existing index returns an error with type "index_not_found_exception".
🧠 Conceptual
advanced2:00remaining
Which statement about closing indexes is true?
Select the correct statement about closing an Elasticsearch index.
Attempts:
2 left
💡 Hint
Think about what closing means for index accessibility.
✗ Incorrect
A closed index is not searchable and not writable until reopened, but its data and mappings remain intact.
❓ Predict Output
advanced2:00remaining
What is the output after reopening a closed index?
You closed an index
logs_2023 and then reopened it using POST /logs_2023/_open. What is the expected output?Elasticsearch
POST /logs_2023/_open
Attempts:
2 left
💡 Hint
Opening an index returns an acknowledgement similar to closing.
✗ Incorrect
The response to opening an index contains {"acknowledged":true} confirming the operation.
❓ Predict Output
expert2:00remaining
What error occurs when deleting a closed index with aliases?
You have a closed index
archive_2022 with an alias archive. You try to delete it using DELETE /archive_2022. What error will Elasticsearch return?Elasticsearch
DELETE /archive_2022
Attempts:
2 left
💡 Hint
Deleting an index with aliases is restricted.
✗ Incorrect
Elasticsearch prevents deleting an index that has aliases and returns an illegal_argument_exception with a reason about aliases.