This MongoDB Online Test
Separates Good From Bad Hires

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The MongoDB online test assesses the candidate's knowledge of MongoDB queries and concepts such as indexes and sharding.

It's an ideal test for pre-employment screening. A good database admin or back-end developer benefits from a solid understanding of MongoDB to interface and access a MongoDB database efficiently.

This online test requires candidates to answer multiple-choice questions about MongoDB.

Sample public questions

You work for a mail delivery company and the tracker system uses MongoDB with the following document schema for the "Packages" collection:

{
  "_id": { "bsonType": "objectId" },
  "destination": { "type": "string" },
  "state": { "enum": ["preparing", "in transit", "delivered"] }
}

Select all the correct statements about the Packages collection.

MongoDB
Database Schema
Easy
3 min
mca
Public

You're working on a MongoDB database for a video game where players can sell their items, such as planks, to other players.

The Mongo Shell code to trade planks between players is the following:

// The seller and buyer variables were set to the ids of the seller and the buyer, respectively
// They both exist in the database
sellerPlayer = db.Players.findOne({ _id: seller });
buyerPlayer = db.Players.findOne({ _id: buyer });
if (sellerPlayer.planks >= 100 && buyerPlayer.gold >= 350) {
    db.Players.update({ _id: seller }, { $inc: { gold: 350, planks: -100 }});
    db.Players.update({ _id: buyer }, { $inc: { planks: 100, gold: -350 }});
}

What can be said about the code above in cases with no disconnections from the server?

MongoDB
Update
Easy
5 min
mca
Public

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the MongoDB test with public questions.

Take a Certification Test

Sample silver certificate

Peter Gibbons

Java and SQL

TestDome
Certificate

TestDome logo on certificate

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

Skills and topics tested

  • MongoDB
  • Data Storage
  • NoSQL
  • Sharding
  • Queries
  • Bug Fixing
  • Update
  • Indexes
  • Performance Tuning

For job roles

  • Database Administrator
  • MongoDB Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one short test. See an example.

How TestDome works

1
Choose a pre-made test or create a custom test.
2
Invite candidates via email, URL or your ATS
3
Candidates take a test remotely
4
Sort candidates and get individual reports

Want to know more?