← All MongoDB Flashcard Decks

MongoDB Indexing and Performance Flashcards

6 cards from real MongoDB practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 6 MongoDB Indexing and Performance flashcards as text
  1. What is a covered query in MongoDB?

    Answer: A query that can be satisfied entirely using an index without accessing documents

    A covered query is fulfilled entirely by the index, meaning MongoDB never needs to read actual documents, resulting in very high performance.

  2. Which type of index supports efficient queries on fields within embedded arrays?

    Answer: Multikey index

    MongoDB automatically creates a multikey index when an indexed field contains array values, creating index entries for each array element.

  3. What is the purpose of a TTL (Time-To-Live) index in MongoDB?

    Answer: Automatically deletes documents after a specified time period

    A TTL index automatically removes documents from a collection after a specified number of seconds, useful for session data or logs.

  4. What does the 'nscannedObjects' field in explain() output indicate?

    Answer: Number of documents examined to fulfill the query

    nscannedObjects (or docsExamined in newer versions) shows how many actual documents were read, with lower numbers indicating better index usage.

  5. Which index type allows full-text search queries on string content?

    Answer: Text index

    A text index tokenizes and stems string fields to support $text search queries, with at most one text index per collection.

  6. What is a partial index in MongoDB?

    Answer: An index that only includes documents meeting a specified filter expression

    A partial index indexes only documents that satisfy a specified filter, resulting in smaller, more efficient indexes for common query patterns.

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. 10geneducation.zendesk.com — Test dates, score release, passing score, test delivery, retake policy · verified Oct 2026
  2. learn.mongodb.com — Eligibility, fees, exam format, time limit · verified Oct 2026