These exercises and solutions supplement the developerWorks knowledge path "Discover MongoDB."
- MongoDB supports query joins between collections.
- Replica sets in MongoDB offer the following benefits (pick all that
- Data redundancy
- Distributed transaction support
- Automated failover & high availability
- Disaster recovery
- In replica sets, all write requests are automatically sent to secondary nodes
- MongoDB documents are represented as XML.
- Fix this query:
- Fix this query:
- Searching for elements in a document array requires you specify a positional element (i.e. document.arrary[i]).
- MongoDB enforces attribute similarity across documents in a collection (i.e. all word documents must have an array of synonyms).
- To find all documents that do not contain the attribute 'synonyms' this
query will work.
- In Mongo, frequently accessed data is stored:
- On disk
- In memory
- MongoDB supports indexes just like any other relational database.
- Indexes can make document queries faster but:
- They can make inserts and updates slightly slower
- Require specialized query commands to even be leveraged (in other words, hints)
- They do not work in a replica set environment
Check your answers here.
- Discover MongoDB: Follow this knowledge path to master MongoDB's basic and advanced capabilities, and start using it in your programming.
- developerWorks Java technology zone: Find hundreds of articles about every aspect of Java programming.
Dig deeper into Java technology on developerWorks
Get samples, articles, product docs, and community resources to help build, deploy, and manage your cloud apps.
Experiment with new directions in software development.
Software development in the cloud. Register today to create a project.
Evaluate IBM software and solutions, and transform challenges into opportunities.