Bird
Raised Fist0

Examine this elasticsearch.yml snippet:

medium📝 Debug Q6 of Q15
Elasticsearch - Cluster Management

Examine this elasticsearch.yml snippet:

node.roles: [master, data]

What is the issue with this configuration?

ARole names are not quoted strings
BSquare brackets are not allowed in node.roles
CRoles must be separated by semicolons
DThe roles 'master' and 'data' cannot be assigned together
Step-by-Step Solution
Solution:
  1. Step 1: Check YAML syntax for lists

    Role names must be strings enclosed in quotes.
  2. Step 2: Identify error

    Here, master and data are unquoted, causing a syntax error.
  3. Final Answer:

    Role names are not quoted strings -> Option A
  4. Quick Check:

    Role names must be quoted in YAML lists [OK]
Quick Trick: Always quote role names in YAML lists [OK]
Common Mistakes:
MISTAKES
  • Leaving role names unquoted
  • Using incorrect separators
  • Assuming roles cannot be combined

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes