Bird
Raised Fist0

What does the number_of_replicas setting control in an Elasticsearch index?

easy🧠 Conceptual Q1 of Q15
Elasticsearch - Performance and Scaling

What does the number_of_replicas setting control in an Elasticsearch index?

AThe refresh interval of the index
BThe number of copies of each shard for fault tolerance
CThe maximum number of documents per shard
DThe number of primary shards in the index
Step-by-Step Solution
Solution:
  1. Step 1: Understand replica concept in Elasticsearch

    Replicas are copies of primary shards used to increase availability and fault tolerance.
  2. Step 2: Identify what number_of_replicas controls

    This setting defines how many replica shards each primary shard has.
  3. Final Answer:

    The number of copies of each shard for fault tolerance -> Option B
  4. Quick Check:

    Replica setting = Copies of shards [OK]
Quick Trick: Replicas mean copies of shards for safety and speed [OK]
Common Mistakes:
MISTAKES
  • Confusing replicas with primary shards
  • Thinking replicas control document count
  • Mixing replicas with refresh interval

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes