Recall & Review
beginner
What is dynamic mapping in Elasticsearch?
Dynamic mapping automatically detects and adds new fields to the index mapping when new data arrives without needing manual configuration.
Click to reveal answer
beginner
What does explicit mapping mean in Elasticsearch?
Explicit mapping means you manually define the structure and data types of fields in an index before adding data, giving you full control over how data is stored and searched.
Click to reveal answer
intermediate
What is a key advantage of using explicit mapping?
Explicit mapping helps avoid unexpected data types and ensures consistent search behavior by defining exactly how each field should be indexed.
Click to reveal answer
beginner
How does dynamic mapping handle new fields in incoming documents?
Dynamic mapping automatically adds new fields to the index with inferred data types based on the incoming document's content.
Click to reveal answer
intermediate
What is a potential risk of relying solely on dynamic mapping?
Relying only on dynamic mapping can lead to inconsistent data types, unexpected field mappings, and inefficient searches if data varies or changes over time.
Click to reveal answer
Which mapping type requires you to define field types before indexing data?
✗ Incorrect
Explicit mapping means you manually define field types before adding data.
What happens when Elasticsearch receives a new field not in the mapping and dynamic mapping is enabled?
✗ Incorrect
Dynamic mapping automatically adds new fields with inferred types.
Which is a benefit of explicit mapping over dynamic mapping?
✗ Incorrect
Explicit mapping gives you control over field types and how data is indexed.
If you want to prevent Elasticsearch from adding new fields automatically, what should you do?
✗ Incorrect
Disabling dynamic mapping or using explicit mapping stops automatic addition of new fields.
What is a common problem when using only dynamic mapping in production?
✗ Incorrect
Dynamic mapping can cause inconsistent field types leading to search problems.
Explain the difference between dynamic and explicit mapping in Elasticsearch.
Think about how new fields are handled when data is added.
You got /4 concepts.
What are the advantages and risks of using dynamic mapping?
Consider what happens when new or unexpected data arrives.
You got /3 concepts.