Bird
Raised Fist0

Which setting controls the number of primary shards when creating an Elasticsearch index?

easy📝 Syntax Q12 of Q15
Elasticsearch - Performance and Scaling
Which setting controls the number of primary shards when creating an Elasticsearch index?
Anumber_of_shards
Bnumber_of_replicas
Cshard_size
Dindex_refresh_interval
Step-by-Step Solution
Solution:
  1. Step 1: Identify shard count setting

    The setting number_of_shards defines how many primary shards an index has.
  2. Step 2: Differentiate from replicas

    number_of_replicas controls copies, not primary shard count.
  3. Final Answer:

    number_of_shards -> Option A
  4. Quick Check:

    Primary shards = number_of_shards [OK]
Quick Trick: Primary shards set by number_of_shards [OK]
Common Mistakes:
MISTAKES
  • Confusing replicas with shards
  • Using shard_size which is not a setting
  • Mixing index refresh with shard count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes