Discover MongoDB quiz

Test your knowledge path progress

Test your MongoDB knowledge and skills and you'll be able to quickly assess how well you've mastered key information and coding techniques you've learned from this knowledge path.


Andrew Glover, CTO, App47

Andrew GloverAndrew Glover is a developer, author, speaker, and entrepreneur with a passion for behavior-driven development, Continuous Integration, and Agile software development. He is the founder of the easyb Behavior-Driven Development (BDD) framework and is the co-author of three books: Continuous Integration, Groovy in Action, and Java Testing Patterns. You can keep up with him at his blog and by following him on Twitter.

04 December 2012

These exercises and solutions supplement the developerWorks knowledge path "Discover MongoDB."

  1. MongoDB supports query joins between collections.
    1. True
    2. False
  2. Replica sets in MongoDB offer the following benefits (pick all that apply):
    1. Data redundancy
    2. Distributed transaction support
    3. Automated failover & high availability
    4. Disaster recovery
  3. In replica sets, all write requests are automatically sent to secondary nodes directly.
    1. True
    2. False
  4. MongoDB documents are represented as XML.
    1. True
    2. False
  5. Fix this query:
  6. Fix this query:
  7. Searching for elements in a document array requires you specify a positional element (i.e. document.arrary[i]).
    1. True
    2. False
  8. MongoDB enforces attribute similarity across documents in a collection (i.e. all word documents must have an array of synonyms).
    1. True
    2. False
  9. To find all documents that do not contain the attribute 'synonyms' this query will work.
    1. True
    2. False
  10. In Mongo, frequently accessed data is stored:
    1. On disk
    2. In memory
  11. MongoDB supports indexes just like any other relational database.
    1. True
    2. False
  12. Indexes can make document queries faster but:
    1. They can make inserts and updates slightly slower
    2. Require specialized query commands to even be leveraged (in other words, hints)
    3. They do not work in a replica set environment


Check your answers here.



developerWorks: Sign in

Required fields are indicated with an asterisk (*).

Need an IBM ID?
Forgot your IBM ID?

Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.


The first time you sign into developerWorks, a profile is created for you. Information in your profile (your name, country/region, and company name) is displayed to the public and will accompany any content you post, unless you opt to hide your company name. You may update your IBM account at any time.

All information submitted is secure.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

Required fields are indicated with an asterisk (*).

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.


All information submitted is secure.

Dig deeper into Java technology on developerWorks

Zone=Java technology
ArticleTitle=Discover MongoDB quiz