Bird
Raised Fist0

Given this role definition, what permissions does a user have on the sales-data index?

medium📝 Predict Output Q13 of Q15
Elasticsearch - Security
Given this role definition, what permissions does a user have on the sales-data index?
{
  "cluster": ["monitor"],
  "indices": [
    {
      "names": ["sales-data"],
      "privileges": ["read", "write"]
    }
  ]
}
AUser can read and write data in sales-data index
BUser can only read data from sales-data index
CUser can manage cluster settings but not access sales-data
DUser has full admin access to all indexes
Step-by-Step Solution
Solution:
  1. Step 1: Analyze cluster privileges

    Cluster privilege 'monitor' allows monitoring but no write or admin cluster changes.
  2. Step 2: Analyze index privileges

    Privileges 'read' and 'write' on 'sales-data' index allow reading and writing data there.
  3. Final Answer:

    User can read and write data in sales-data index -> Option A
  4. Quick Check:

    Index 'read' + 'write' = read/write access [OK]
Quick Trick: Check index privileges for read/write to know access level [OK]
Common Mistakes:
MISTAKES
  • Ignoring 'write' privilege and assuming read-only
  • Confusing cluster 'monitor' with admin rights
  • Assuming full admin access without 'all' privilege

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes