0
0
Elasticsearchquery~10 mins

Cluster, node, and shard architecture in Elasticsearch - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a cluster name in Elasticsearch configuration.

Elasticsearch
cluster.name: [1]
Drag options to blanks, or click blank then click option'
Anode-1
B"my-cluster"
Cshard-0
Dindex-1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a node name instead of a cluster name
Omitting quotes around the cluster name
2fill in blank
medium

Complete the code to set the node name in Elasticsearch configuration.

Elasticsearch
node.name: [1]
Drag options to blanks, or click blank then click option'
A"index-1"
B"cluster-1"
C"node-1"
D"shard-1"
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing node name with cluster name
Using shard or index names as node names
3fill in blank
hard

Fix the error in the shard allocation setting to specify primary shards count.

Elasticsearch
index.number_of_primary_shards: [1]
Drag options to blanks, or click blank then click option'
A"five"
Bfive
C"5"
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a number
Writing the number as a word
4fill in blank
hard

Fill both blanks to create a dictionary mapping node names to shard counts.

Elasticsearch
shard_allocation = {"[1]": [2]
Drag options to blanks, or click blank then click option'
Anode_1
B5
C3
Dnode_2
Attempts:
3 left
💡 Hint
Common Mistakes
Using shard count as key
Using node name as a number
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension for shard sizes greater than 10GB.

Elasticsearch
large_shards = {node: size[1]2 for node, size in shard_sizes.items() if size [2] [3]
Drag options to blanks, or click blank then click option'
A*
B>
C10
D**
Attempts:
3 left
💡 Hint
Common Mistakes
Using multiplication instead of exponentiation
Using less than instead of greater than
Using 10 as a string instead of number