Bird
Raised Fist0

Look at this elasticsearch.yml snippet:

medium📝 Debug Q14 of Q15
Elasticsearch - Cluster Management

Look at this elasticsearch.yml snippet:

node.roles: master, data

What is the problem with this configuration?

ARoles must be listed as a YAML list with brackets and quotes
BThe roles "master" and "data" cannot be assigned together
CThe roles should be uppercase
DThe node.roles setting is deprecated
Step-by-Step Solution
Solution:
  1. Step 1: Check YAML syntax for node.roles

    Roles must be defined as a list, e.g., ["master", "data"], not as a comma-separated string.
  2. Step 2: Validate role assignment rules

    Assigning master and data roles together is allowed; roles are lowercase; node.roles is valid.
  3. Final Answer:

    Roles must be listed as a YAML list with brackets and quotes -> Option A
  4. Quick Check:

    YAML list syntax required for node.roles [OK]
Quick Trick: Use YAML list syntax: node.roles: ["master", "data"] [OK]
Common Mistakes:
MISTAKES
  • Writing roles as comma-separated string without brackets
  • Using uppercase role names
  • Thinking roles cannot combine

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes