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

Andrew Glover, CTO, App47
Andrew Glover
Andrew 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.

Summary:  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.

Date:  04 Dec 2012
Level:  Intermediate PDF:  A4 and Letter (140 KB | 4 pages)Get Adobe® Reader®
Also available in:   Chinese

Activity:  7850 views
Comments:  

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

  6. Fix this query:
    db.words.find({}).sort({spelling:1}).rows(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

Answers

Check your answers here.


Resources

About the author

Andrew Glover

Andrew 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.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


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. 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.

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.

(Must be between 3 – 31 characters.)

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

 


Rate this article

Comments

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java technology
ArticleID=847848
ArticleTitle=Discover MongoDB quiz
publish-date=12042012