Bird
0
0

You want to temporarily free resources by closing an index but keep its data safe. Later, you want to reopen it. Which sequence of commands should you use?

hard🚀 Application Q15 of 15
Elasticsearch - Index Management
You want to temporarily free resources by closing an index but keep its data safe. Later, you want to reopen it. Which sequence of commands should you use?
APOST /myindex/_close then POST /myindex/_open
BDELETE /myindex then POST /myindex/_open
CPOST /myindex/_open then POST /myindex/_close
DPUT /myindex/_close then DELETE /myindex
Step-by-Step Solution
Solution:
  1. Step 1: Close index to free resources

    Use POST /myindex/_close to close the index without deleting data.
  2. Step 2: Reopen index when needed

    Use POST /myindex/_open to reopen the closed index and make it searchable again.
  3. Final Answer:

    POST /myindex/_close then POST /myindex/_open -> Option A
  4. Quick Check:

    Close then open to save and restore resources [OK]
Quick Trick: Close with POST _close, reopen with POST _open [OK]
Common Mistakes:
MISTAKES
  • Deleting index instead of closing
  • Opening before closing
  • Using wrong HTTP methods like PUT or DELETE

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes