Bird
0
0

Given an Elasticsearch cluster with 2 nodes and an index with 4 primary shards and 1 replica, how many total shards will be allocated across the cluster?

medium📝 Predict Output Q4 of 15
Elasticsearch - Basics and Architecture
Given an Elasticsearch cluster with 2 nodes and an index with 4 primary shards and 1 replica, how many total shards will be allocated across the cluster?
A8
B4
C6
D10
Step-by-Step Solution
Solution:
  1. Step 1: Calculate total shards per index

    Total shards = primary shards + replicas per primary = 4 + (4 * 1) = 8 shards.
  2. Step 2: Consider cluster nodes and shard allocation

    Each shard and its replica are allocated on different nodes, but total shards remain 8 for the index.
  3. Final Answer:

    8 -> Option A
  4. Quick Check:

    Total shards = primary + replicas = 8 [OK]
Quick Trick: Total shards = primary shards x (1 + replicas) [OK]
Common Mistakes:
MISTAKES
  • Counting only primary shards
  • Adding nodes to shard count incorrectly
  • Confusing replicas with extra shards

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes