C100DEV CRUD Operations • Set 2
C100DEV CRUD Operations Practice Test 2 — 15 questions with explanations. Free, no signup.
An analytics job updates counters in the 'metrics' collection with db.metrics.updateOne({ metric: "visits" }, { $inc: { count: 1 } }). The job runs with write concern w:1 against a three-node replica set, and a failover occurs immediately after the primary acknowledges a write. The developer reports that a counter increment appears to be lost. Which statement best explains this outcome?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.