0
0
Elasticsearchquery~20 mins

Shard sizing strategy in Elasticsearch - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Shard Sizing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
Predict Output
intermediate
1:30remaining
What is the recommended shard size for optimal performance?

Given the following Elasticsearch shard sizing guidelines, what is the recommended shard size range for optimal performance?

Options are in gigabytes (GB).

A1-5 GB
B10-50 GB
C100-200 GB
D500-1000 GB
Attempts:
2 left
💡 Hint

Think about balancing shard size to avoid overhead and ensure fast recovery.

🧠 Conceptual
intermediate
1:30remaining
Why avoid too many small shards in Elasticsearch?

What is the main reason to avoid having too many small shards in an Elasticsearch cluster?

ASmall shards cause excessive overhead and resource consumption
BSmall shards improve search speed significantly
CSmall shards increase disk space usage
DSmall shards reduce cluster stability
Attempts:
2 left
💡 Hint

Think about how Elasticsearch manages shards internally.

Predict Output
advanced
1:30remaining
What happens if shard size exceeds recommended limits?

Consider an Elasticsearch index with shards sized around 200 GB each. What is the most likely impact on cluster behavior?

ANo impact on cluster performance
BFaster indexing and search performance
CReduced disk usage and faster backups
DSlower shard recovery and increased search latency
Attempts:
2 left
💡 Hint

Think about how large shards affect recovery and search operations.

🔧 Debug
advanced
2:00remaining
Identify the shard sizing mistake in this scenario

An Elasticsearch cluster has 100 indices, each with 20 shards sized about 1 GB. The cluster is experiencing high CPU usage and slow queries. What is the likely shard sizing mistake?

AToo many small shards causing overhead
BShards are too large causing slow recovery
CInsufficient number of shards per index
DShard size is optimal; issue is unrelated
Attempts:
2 left
💡 Hint

Consider how shard count and size affect resource usage.

🚀 Application
expert
2:30remaining
Calculate total shard size and count for a 5 TB index

You have a 5 TB Elasticsearch index. You want to keep shard sizes between 20 GB and 40 GB for optimal performance. How many shards should you create?

Choose the correct shard count range.

A500 to 1000 shards
B10 to 25 shards
C125 to 250 shards
D50 to 100 shards
Attempts:
2 left
💡 Hint

Divide total index size by shard size range to find shard count.