Bird
Raised Fist0

Which of the following is the correct Elasticsearch API call to restore a snapshot named backup_2023 from repository repo1?

easy📝 Syntax Q3 of Q15
Elasticsearch - Cluster Management
Which of the following is the correct Elasticsearch API call to restore a snapshot named backup_2023 from repository repo1?
APUT /_snapshot/repo1/backup_2023/_restore
BPOST /_snapshot/repo1/backup_2023/_restore
CGET /_snapshot/repo1/backup_2023/_restore
DDELETE /_snapshot/repo1/backup_2023/_restore
Step-by-Step Solution
Solution:
  1. Step 1: Identify HTTP method for restore

    Snapshot restore uses POST method.
  2. Step 2: Confirm endpoint format

    The endpoint is /_snapshot/{repository}/{snapshot}/_restore.
  3. Final Answer:

    POST /_snapshot/repo1/backup_2023/_restore -> Option B
  4. Quick Check:

    Restore uses POST, not PUT, GET, or DELETE. [OK]
Quick Trick: Restore snapshots with POST to _restore endpoint [OK]
Common Mistakes:
MISTAKES
  • Using PUT instead of POST for restore
  • Confusing snapshot creation with restore endpoints
  • Using GET or DELETE methods incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes