Skip to main content

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

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

All information submitted is secure.

  • Close [x]

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.

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

All information submitted is secure.

  • Close [x]

Discover MongoDB quiz

Test your knowledge path progress

Return to article

  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:
    db.words.find({}).orderBy({spelling:1})
    

    FIX:

    db.words.find({}).sort({spelling:1})
    

  6. Fix this query:
    db.words.find({}).sort({spelling:1}).rows(3)
    

    FIX:

    db.words.find({}).sort({spelling:1}).limit(3)
    

  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.
    db.words.find({synonyms:{$exist:false}})
    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

Return to article