← All MongoDB Flashcard Decks

MongoDB Transactions and ACID Compliance 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 Transactions and ACID Compliance flashcards as text
  1. What is a transient transaction error in MongoDB and how should it be handled?

    Answer: A temporary error (e.g., write conflict or network issue) that can be resolved by retrying the entire transaction

    Transient transaction errors (ErrorLabel: 'TransientTransactionError') indicate temporary conditions like write conflicts or network issues. The application should catch these errors and retry the entire transaction from the beginning, as the original transaction was rolled back.

  2. What is a write conflict in a MongoDB transaction?

    Answer: When two concurrent transactions attempt to modify the same document simultaneously

    A write conflict occurs when two concurrent transactions attempt to write to the same document. MongoDB detects this and aborts one of the conflicting transactions with a TransientTransactionError, expecting the application to retry the aborted transaction.

  3. Which of the following operations CANNOT be performed inside a MongoDB multi-document transaction?

    Answer: Creating a new collection or index

    DDL operations such as creating collections, dropping collections, or creating indexes cannot be performed inside a multi-document transaction. Transactions are limited to DML operations (insert, update, delete, find) on existing collections.

  4. What is the default transaction timeout limit in MongoDB?

    Answer: 60 seconds

    MongoDB transactions have a default timeout of 60 seconds (configurable via transactionLifetimeLimitSeconds). Transactions running longer than this limit are automatically aborted. Long-running transactions should be avoided as they hold locks and impact performance.

  5. In MongoDB, single-document operations are atomic by default. What does this mean?

    Answer: An update to a single document either fully succeeds or fully fails — partial updates never occur

    MongoDB guarantees atomicity at the single-document level without needing transactions. An operation modifying a single document (including updating multiple fields or embedded arrays) either applies all changes or none — observers never see a partial update.

  6. What is the impact of using transactions on MongoDB performance?

    Answer: Transactions introduce overhead from lock management and oplog entries, reducing throughput compared to non-transactional operations

    Multi-document transactions in MongoDB introduce overhead: they hold locks, create larger oplog entries, and require coordination across members. MongoDB documentation recommends using the document model to avoid transactions where possible and to keep transactions short when they are necessary.

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