Bird
0
0

You want to optimize an Elasticsearch cluster for high availability. Which shard configuration should you choose for an index with 6 primary shards?

hard🚀 Application Q8 of 15
Elasticsearch - Basics and Architecture
You want to optimize an Elasticsearch cluster for high availability. Which shard configuration should you choose for an index with 6 primary shards?
ASet number_of_replicas to 1 and number_of_shards to 12
BSet number_of_replicas to 0 to save disk space
CSet number_of_shards to 1 and replicas to 6
DSet number_of_replicas to 2 to ensure multiple copies across nodes
Step-by-Step Solution
Solution:
  1. Step 1: Understand high availability needs

    High availability requires multiple copies (replicas) of data to survive node failures.
  2. Step 2: Evaluate options

    Setting replicas to 2 creates two copies of each shard, improving availability. Other options reduce copies or increase shards unnecessarily.
  3. Final Answer:

    Set number_of_replicas to 2 to ensure multiple copies across nodes -> Option D
  4. Quick Check:

    More replicas = better availability [OK]
Quick Trick: Increase replicas for high availability [OK]
Common Mistakes:
MISTAKES
  • Choosing zero replicas to save space
  • Confusing shards with replicas
  • Setting too many shards unnecessarily

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes