Courseiva
Indexing and Performance →mediumMultiple Choice

C100DBA Indexing and Performance Practice Question

When would you choose to create a Partial Index instead of a standard index?

⚠ Common exam trap

Candidates often choose sparse indexes instead of partial indexes, confusing sparse indexing behavior with the ability to define custom, complex filter expressions for subsets of data.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

When only a subset of data is frequently queried.

Partial indexes are designed to index only a subset of documents that meet a specific filter expression. They are highly efficient when queries only target a small, specific portion of a large collection. By reducing the size of the index in memory and on disk, partial indexes lower storage costs and decrease the impact on write operations while maintaining query performance for the intended subset of data.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    When you need to ensure the index covers all documents.

    Why it's wrong here

    A standard index is required if the query needs to access all documents in the collection. A partial index specifically ignores documents that do not match the filter criteria, so it would fail to satisfy queries that require a full scan or search across the entire collection.

  • ✓

    When only a subset of data is frequently queried.

    Why this is correct

    Partial indexes reduce index size by only including documents that meet a filter condition. This is highly effective when your application only queries active or specific subsets of data, leading to smaller index memory footprints and faster performance for those specific, high-frequency query patterns compared to full indexes.

  • ✗

    To improve performance for all possible queries.

    Why it's wrong here

    Partial indexes are narrow in scope and only optimize queries that include the specific filter expression defined for the index. They do not provide broad performance benefits for every possible query, as they ignore documents not matching the criteria, potentially leading to slow performance for non-targeted queries.

  • ✗

    To automatically shard the collection data.

    Why it's wrong here

    Partial indexes and sharding serve different purposes. Sharding is a horizontal scaling mechanism that partitions data across multiple nodes, whereas a partial index is a local storage optimization technique. Using a partial index does not trigger or manage the sharding process within a MongoDB cluster configuration.

About these practice questions

This C100DBA question is part of Courseiva's 222-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official MongoDB exam blueprint

This C100DBA practice question is part of Courseiva's free MongoDB certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the C100DBA exam.