Refer to the exhibit. What is the impact of setting 'dynamic' to true in this Atlas Search index definition?
When dynamic mapping is enabled, Atlas Search scans the documents and automatically indexes every field it encounters. This provides a 'search-everything' capability out of the box, which is extremely convenient for collections where you do not want to manually define mappings for every individual document field.
Why this answer
Setting 'dynamic' to true enables Atlas Search to automatically index all fields in every document within the collection. This is useful for rapid prototyping or collections with unpredictable schemas. However, it can significantly increase the size of the index and consume more resources compared to manual mappings.
Understanding this balance is critical for developers managing performance and cost when dealing with large datasets and varying document structures in search-enabled collections.
Exam trap
Candidates often underestimate the resource cost of dynamic indexing. They assume it is a 'set and forget' feature, ignoring how it bloats the search index and consumes excessive Atlas resources.