Bird
Raised Fist0

How should you correctly configure a node to have both data and ingest roles in the elasticsearch.yml file?

easy📝 Syntax Q3 of Q15
Elasticsearch - Cluster Management

How should you correctly configure a node to have both data and ingest roles in the elasticsearch.yml file?

Anode.roles: data; ingest
Bnode.roles: data, ingest
Cnode.roles: "data, ingest"
Dnode.roles: ["data", "ingest"]
Step-by-Step Solution
Solution:
  1. Step 1: Understand YAML syntax for lists

    YAML lists require square brackets and quotes for strings.
  2. Step 2: Analyze options

    node.roles: ["data", "ingest"] uses correct YAML list syntax with quotes and brackets.
  3. Final Answer:

    node.roles: ["data", "ingest"] -> Option D
  4. Quick Check:

    YAML list syntax with quotes and brackets [OK]
Quick Trick: Use YAML list syntax with quotes and brackets [OK]
Common Mistakes:
MISTAKES
  • Omitting quotes around role names
  • Using commas without brackets
  • Using semicolons instead of commas

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes