In MongoDB explain output, a COLLSCAN stage means the winning plan is scanning documents in the collection rather than traversing a suitable index. This is the clearest indicator that the query is not being serviced by a normal index scan for the relevant predicate. By contrast, IXSCAN explicitly indicates an index scan and typically includes details such as the index key pattern, direction, and bounds. A FETCH stage represents retrieval of full documents, often after an index has already identified candidate record locations; its presence does not imply that no index was used. GROUP relates to grouping behavior and is not the stage used to identify missing index support. A collection scan is not automatically wrong: for tiny collections or queries that return most documents, it can be efficient. However, on large collections with selective predicates, repeated COLLSCAN plans are a strong signal that the DBA should evaluate indexing. Administrators should compare totalDocsExamined, totalKeysExamined, execution time, and the winning/rejected plans before deciding to add an index. For the terminology tested by the question, COLLSCAN is the correct stage, so C is correct.
Study Guide reference/topic:Indexing and Query Optimization - explain plans, COLLSCAN, IXSCAN, and missing index diagnostics.
===========
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit