Courseiva
CRUD Operations →mediumMultiple Choice

C100DBA CRUD Operations Practice Question

Which query operator matches documents where a field contains a value greater than or equal to a specified value?

⚠ Common exam trap

Candidates frequently mix up comparison operators like $gte with $gt, or misremember the exact syntax of the operator token name.

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

✓

$gte

The $gte operator (greater than or equal to) is a comparison operator used in query filters. It is essential for range-based queries, such as filtering for dates after a specific threshold, product prices above a minimum, or version numbers. Understanding these comparison operators is fundamental to building expressive and efficient queries that narrow down result sets effectively within the MongoDB document model.

Answer analysis

Option-by-option breakdown

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

  • ✗

    $gt

    Why it's wrong here

    The $gt operator matches values strictly greater than the provided threshold. It does not include the threshold value itself in the results. This is a common source of bugs when developers require inclusive boundaries in their range searches, making $gte the correct choice for these requirements.

  • ✗

    $ge

    Why it's wrong here

    $ge is not a valid MongoDB query operator. MongoDB uses the two-letter syntax $gte for 'greater than or equal to'. Using incorrect operator names will result in a query error, as the database engine does not recognize the shorthand and fails to process the filter as intended.

  • ✓

    $gte

    Why this is correct

    The $gte operator is the standard comparison operator for matching values greater than or equal to a specified limit. It is inclusive of the value provided. This is the correct tool for standard range queries where the boundary value should be included in the returned result set.

  • ✗

    $eq

    Why it's wrong here

    $eq is the equality operator. It only matches documents where the field value is exactly equal to the specified value. It is not suitable for range queries where you need to return multiple values that fall within a defined boundary, as it is too restrictive.

About these practice questions

One of 222 original C100DBA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.