Bird
Raised Fist0

Which of the following is the correct Elasticsearch API call to create an API key?

easy📝 Syntax Q12 of Q15
Elasticsearch - Security
Which of the following is the correct Elasticsearch API call to create an API key?
ADELETE /_security/api_key
BGET /_security/api_key/create
CPUT /_security/api_key
DPOST /_security/api_key
Step-by-Step Solution
Solution:
  1. Step 1: Recall API key creation syntax

    Elasticsearch uses POST method to create resources like API keys.
  2. Step 2: Match correct endpoint

    The correct endpoint for creating an API key is POST /_security/api_key.
  3. Final Answer:

    POST /_security/api_key -> Option D
  4. Quick Check:

    POST + /_security/api_key = create key [OK]
Quick Trick: Use POST to create API keys in Elasticsearch [OK]
Common Mistakes:
MISTAKES
  • Using GET or DELETE for creation
  • Confusing endpoint paths
  • Using PUT instead of POST

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes