Bird
Raised Fist0

Given this API key creation request, what will be the value of the "name" field in the response?

medium📝 Predict Output Q4 of Q15
Elasticsearch - Security
Given this API key creation request, what will be the value of the "name" field in the response?
{
  "name": "read-only-key",
  "role_descriptors": {
    "read_role": {
      "cluster": ["monitor"],
      "index": [{"names": ["logs-*"], "privileges": ["read"]}]
    }
  }
}
Aread_role
Bread-only-key
Clogs-*
Dmonitor
Step-by-Step Solution
Solution:
  1. Step 1: Identify the "name" field in the request

    The request explicitly sets "name" to "read-only-key".
  2. Step 2: Understand response naming

    The API key name in the response matches the "name" field from the request.
  3. Final Answer:

    read-only-key -> Option B
  4. Quick Check:

    API key name in response = request "name" value [OK]
Quick Trick: API key response name matches request name field [OK]
Common Mistakes:
MISTAKES
  • Confusing role descriptor name with API key name
  • Using index pattern as key name
  • Mistaking privilege names for key name

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes