Google News
logo
MongoDB - Quiz(MCQ)
A)
2009
B)
2008
C)
2007
D)
2006

Correct Answer :   2009


Explanation : 10gen software company began developing MongoDB in 2007 as a component of a planned platform as a service product. In 2009, the company shifted to an open-source development model, with the company offering commercial support and other services. In 2013, 10gen changed its name to MongoDB Inc.

Initial release date : 11 February 2009

Founders : Kevin P. Ryan, Eliot Horowitz, Dwight Merriman

A)
C
B)
C++
C)
Javascript
D)
All of the Above

Correct Answer :   All of the Above


Explanation : MongoDB (from humongous) is a cross-platform document-oriented database.

A)
MongoDB is column oriented database store
B)
MongoDB is classified as a NoSQL database
C)
MongoDB favours XML format more than JSON
D)
All of the Above

Correct Answer :   MongoDB is classified as a NoSQL database


Explanation : MongoDB supports JSON format compared to XML.

A)
SQL
B)
XML
C)
BSON
D)
All of the Above

Correct Answer :   BSON


Explanation : MongoDB eschews the traditional table-based relational database structure in favor of JSON-like documents with dynamic schemas.

A)
C
B)
C++
C)
Javascript
D)
All of the above

Correct Answer :   Javascript


Explanation : MongoDB supports search by field, range queries, regular expression searches.

A)
frontend
B)
backend
C)
proprietary
D)
All of the above

Correct Answer :   backend


Explanation : MongoDB is the most popular NoSQL database system.

A)
graph
B)
key value
C)
document
D)
All of the above

Correct Answer :   document


Explanation : Documents (objects) map nicely to programming language data types.

A)
inheritance
B)
encapsulation
C)
Both (A) and (B)
D)
polymorphism

Correct Answer :   polymorphism


Explanation : Relational databases require that schemas be defined before you can add data.

A)
MMS
B)
AMS
C)
CMS
D)
DMS

Correct Answer :   MMS


Explanation : MMS stands for MongoDB Management Service and is available to all users in the cloud and on-premises as part of MongoDB Standard and Enterprise Subscriptions.

A)
availability
B)
scalability
C)
performance
D)
None of the above

Correct Answer :   availability

A)
Primary
B)
Secondary
C)
Backup
D)
All of the above

Correct Answer :   Secondary


Explanation : When a primary replica fails, the replica set automatically conducts an election process to determine which secondary should become the primary.

A)
Partitioning
B)
Replication
C)
Sharding
D)
None of the above

Correct Answer :   Sharding


Explanation : The user chooses a shard key, which determines how the data in a collection will be distributed.

A)
CMS
B)
SMS
C)
File system
D)
AMS

Correct Answer :   AMS


Explanation : The data is split into ranges (based on the shard key) and distributed across multiple shards.

A)
Hive
B)
Oozie
C)
MapReduce
D)
None of the above

Correct Answer :   MapReduce


Explanation : The aggregation framework enables users to obtain the kind of results for which the SQL GROUP BY clause is used.

A)
collation
B)
heap
C)
collection
D)
None of the above

Correct Answer :   collation


Explanation : MongoDB does not support collation-based sorting and is limited to byte-wise comparison via memcmp.

A)
Writer
B)
Readers
C)
Readers-writer
D)
None of the above

Correct Answer :   Readers-writer


Explanation : Before version 2.2, this lock was implemented on a per-mongod basis. Since version 2.2, the lock has been implemented at the database level.

A)
primary
B)
capped
C)
secondary
D)
All of the above

Correct Answer :   capped


Explanation : This type of collection maintains insertion order and, once the specified size has been reached, behaves like a circular queue.

A)
MongoDB
B)
Cassandra
C)
React JS
D)
SQL Server

Correct Answer :   SQL Server


Explanation : Microsoft SQL Server is a relational database management system developed by Microsoft.

A)
SQL
B)
JSON
C)
Document databases
D)
All of the above

Correct Answer :   Document databases


Explanation : Document databases pair each key with a complex data structure known as a document.

A)
Riak
B)
Redis
C)
MongoDB
D)
Cassandra

Correct Answer :   Cassandra


Explanation : Wide-column stores such as Cassandra and HBase are optimized for queries over large datasets, and store columns of data together, instead of rows.

A)
SAN
B)
LAN
C)
MAN
D)
All of the above

Correct Answer :   SAN


Explanation : “Sharding” a database across many server instances can be achieved with SQL databases, but usually is accomplished through SANs and other complex arrangements for making hardware act as a single server.

A)
scalability
B)
replication
C)
processing
D)
All of the above

Correct Answer :   replication


Explanation : The storage environment is essentially virtualized from the developer’s perspective.

A)
Document
B)
Key-value
C)
Wide-column
D)
All of the above

Correct Answer :   Key-value


Explanation : Every single item in the database is stored as an attribute name (or “key”), together with its value in Key-value stores.

A)
Graph
B)
Document
C)
Key-value
D)
Wide-column

Correct Answer :   Graph


Explanation : Graph stores include Neo4J and HyperGraphDB.

A)
structured
B)
semi-structured
C)
unstructured
D)
All of the above

Correct Answer :   unstructured


Explanation : MongoDB is an a typical choice for unstructured data storage.

A)
db
B)
dbmong
C)
mongodb
D)
mongo

Correct Answer :   mongo


Explanation : Interactive shell lets developers view, insert, remove, and update data in their databases, as well as get replication information, set up sharding, shut down servers, execute JavaScript, and more.

A)
psql shell
B)
web interface
C)
dashboard
D)
All of the above

Correct Answer :   web interface


Explanation : Web interface is a simple webpage that serves information about the current server status. By default, this interface is 1000 ports above the database port (28017).

A)
Mongo3
B)
BI Studio
C)
Fang of Mongo
D)
Database Master

Correct Answer :   Database Master


Explanation : Futon4Mongo is a clone of the CouchDB-Futon-Web-Interface for MongoDB.

A)
mongotop
B)
mongofiles
C)
mongosniff
D)
mongooplog

Correct Answer :   mongotop


Explanation : mongotop is a command-line tool providing a method to track the amount of time a MongoDB instance spends reading and writing data.

A)
mongotop
B)
mongofiles
C)
mongostat
D)
mongooplog

Correct Answer :   mongostat


Explanation : It describes how many inserts, updates, removes, queries, and commands were performed, as well as what percentage of the time the database was locked and how much memory it is using.

A)
vim
B)
stats
C)
vmstat
D)
All of the above

Correct Answer :   vmstat


Explanation : vmstat is a computer system monitoring tool that collects and displays summary information about operating system memory, processes, interrupts, paging and block I/O.

A)
mongofiles
B)
mongotop
C)
mongosniff
D)
mongooplog

Correct Answer :   mongotop


Explanation : By default, mongotop returns values every second.

A)
Libpcap
B)
Wcap
C)
Wirecap
D)
None of the above

Correct Answer :   Libpcap


Explanation : A cross-platform alternative is an open source Wireshark packet analyzer which has full support for the MongoDB wire protocol.

A)
mongodb-server
B)
mongodb-enterprise-server
C)
mongodb-enterprise-mongos
D)
mongodb-enterprise

Correct Answer :   mongodb-enterprise


Explanation : mongodb-enterprise is a metapackage that will automatically install the four component packages.

A)
mongodb-enterprise
B)
mongodb-enterprise-mongos
C)
mongodb-enterprise-server
D)
None of the above

Correct Answer :   mongodb-enterprise-server


Explanation : mongodb-enterprise-mongos package contains the mongos daemon.

A)
mongotop
B)
mongodown
C)
mongodump
D)
None of the above

Correct Answer :   mongodown


Explanation : mongodb-enterprise-tools package contains the following MongoDB tools: mongoimport bsondump, mongodump, mongoexport, mongofiles, mongoimport, mongooplog, mongoperf, mongorestore, mongostat, and mongotop.

A)
12.04
B)
12.10
C)
13.04
D)
13.10

Correct Answer :   12.04


Explanation : The package structure and names have changed as of version 2.6.

A)
wat
B)
dpkg
C)
capt
D)
wapt

Correct Answer :   dpkg


Explanation : The Ubuntu package management tools (i.e. dpkg and apt) ensure package consistency and authenticity by requiring that distributors sign packages with GPG keys.

A)
sudo apt-get install mongodb
B)
sudo apt-get install mongodb-ent
C)
sudo apt-get install mongodb-enterprise
D)
All of the above

Correct Answer :   sudo apt-get install mongodb-enterprise


Explanation : To install a specific release of MongoDB Enterprise, specify each component package individually and append the version number to the package name.

A)
sudo service mongod
B)
sudo service mongod start
C)
sudo service mongod restart
D)
sudo service mongod stop

Correct Answer :   sudo service mongod stop


Explanation : To stop MongoDB, press Control+C in the terminal where the mongod instance is running.

A)
mongoshell
B)
mongolocaldump
C)
mongodump
D)
None of the above

Correct Answer :   mongodump


Explanation : mongodump can read data from either mongod or mongos instances, in addition to reading directly from MongoDB data files without an active mongod.

A)
backup
B)
restore
C)
replication
D)
All of the above

Correct Answer :   backup


Explanation : The backup role provides the required privileges for backing up all databases.

A)
mongod
B)
mongos
C)
mongocon
D)
None of the above

Correct Answer :   mongos


Explanation : From the perspective of the application, a mongos instance behaves identically to any other MongoDB instance.

A)
syslog
B)
logpath
C)
syspath
D)
syspathlog

Correct Answer :   logpath


Explanation : By default, MongoDB overwrites the log file when the process restarts.

A)
mongod
B)
logpath
C)
mongos
D)
syspathlog

Correct Answer :   mongod


Explanation : It handles data requests, manages data access, and performs background management operations.

A)
mongod
B)
mongoio
C)
mongoperf
D)
mongofiles

Correct Answer :   mongofiles


Explanation : All mongofiles commands have the following form:mongofiles <options> <commands> <filename>.

A)
jsondump
B)
bsondumpjson
C)
bsondump
D)
All of the above

Correct Answer :   bsondump


Explanation : The bsondump converts BSON files into human-readable formats, including JSON.

A)
mongod
B)
mongo
C)
mongodb
D)
None of the above

Correct Answer :   mongo


Explanation : mongo provides complete access to the JavaScript language and all standard functions as well as a full database interface for MongoDB.

A)
web
B)
web host
C)
localhost
D)
All of the above

Correct Answer :   localhost


Explanation : To connect to a server on a different port or interface, use the –port and –host options.

A)
test
B)
master
C)
mongo
D)
primary

Correct Answer :   test


Explanation : At any time, db operation at the mongo shell is used to report the name of the current database.

A)
find
B)
shell
C)
move
D)
replace

Correct Answer :   find


Explanation : The find() method with no parameters returns all documents from a collection and returns all fields for the documents.

A)
display dbs
B)
show database
C)
show databases
D)
All of the above

Correct Answer :   show databases


Explanation : show databases is new in version 2.4.

A)
use db
B)
use mydb
C)
use dbs
D)
use mydbs

Correct Answer :   use mydb


Explanation : Confirm that your session has the mydb database as context, by checking the value of the db object, which returns the name of the current database.

A)
skip
B)
find
C)
sort
D)
All of the above

Correct Answer :   find


Explanation : The find() method returns a cursor. To iterate the cursor and return more documents, type it in the mongo shell.

A)
10
B)
16
C)
13
D)
12

Correct Answer :   12


Explanation : You can provide _id while inserting the document.

A)
insertData("test", "testData", 400)
B)
insertData("test", "testData", 600)
C)
insertData("test", "testData", 200)
D)
All of the above

Correct Answer :   insertData("test", "testData", 400)


Explanation : If the collection and database do not exist, MongoDB creates them implicitly before inserting documents.

A)
mongo.js
B)
mongoc.js
C)
mongorc.js
D)
All of the above

Correct Answer :   mongorc.js


Explanation : Store the function in your .mongorc.js file.

A)
it
B)
next
C)
cursor
D)
None of the above

Correct Answer :   it


Explanation : The db.collection.find() method returns a cursor. To access the documents, you need to iterate the cursor.

A)
sortfind()
B)
sort()
C)
sortelse()
D)
None of the above

Correct Answer :   sort()


Explanation : You can modify the query to impose limits, skips, and sort orders.

A)
$batch
B)
$catch
C)
Both (A) and (B)
D)
$match

Correct Answer :   $match


Explanation : Operations that modify existing documents (i.e. updates) use the same query syntax as queries to select documents to update.

A)
findOne1()
B)
selectOne()
C)
findOne()
D)
All of the above

Correct Answer :   findOne()


Explanation : MongoDB provides a db.collection.findOne() method as a special case of find() that returns a single document.

A)
find()
B)
findOne()
C)
findOne1()
D)
selectOne()

Correct Answer :   find()


Explanation : Projections are the second argument to the find() method, which specifies a list of fields to return or list fields to exclude in the result documents.

A)
db.records.find( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
B)
db.records.select( { “user_id”: { $lt: 42 } }, { “history”: 0 } )
C)
db.records.findOne( { “user_id”: { $lt: 42 } }, { “history”: 1 } )
D)
db.records.findOne( { “user_id”: { $lt: 42 } }, { “history”: 0 } )

Correct Answer :   db.records.find( { “user_id”: { $lt: 42 } }, { “history”: 0 } )


Explanation : Query uses the projection { “history”: 0 } to exclude the history field from the documents in the result set.

A)
$match
B)
$project
C)
$projectmatch
D)
All of the above

Correct Answer :   $project


Explanation : For related projection functionality in the aggregation framework pipeline, use the $project pipeline stage.

A)
_id: it
B)
_id: 1
C)
_id: 0
D)
None of the above

Correct Answer :   _id: 0


Explanation : By default, the _id field is included in the results.

A)
union
B)
selection
C)
projection
D)
None of the above

Correct Answer :   projection


Explanation : Queries specify criteria, or conditions, that identify the documents that MongoDB returns to the clients.

A)
rows
B)
cols
C)
tables
D)
collections

Correct Answer :   collections


Explanation : Collections are analogous to a table in relational databases.

A)
CRUD
B)
READ
C)
GRID
D)
All of the above

Correct Answer :   CRUD


Explanation : Data modification refers to operations that create, update, or delete data.

A)
add
B)
insert
C)
drop
D)
truncate

Correct Answer :   insert


Explanation : For the update and delete operations, you can specify the criteria to select the documents to update or remove.

A)
write
B)
read
C)
delete
D)
update

Correct Answer :   read


Explanation : For replica sets and sharded clusters with replica set components, applications specify read preferences.

A)
read
B)
truncate
C)
write
D)
All of the above

Correct Answer :   write


Explanation : Write concern semantics allow clients to specify the assurance that MongoDB provides when reporting on the success of a write operation.

A)
Hive
B)
Hbase
C)
Map-reduce
D)
None of the above

Correct Answer :   Map-reduce


Explanation : In addition to the basic queries, MongoDB provides several data aggregation features.

A)
data processing
B)
knowledge processing
C)
information processing
D)
None of the above

Correct Answer :   data processing


Explanation : MongoDB can return counts of the number of documents that match a query, or return the number of distinct values for a field.

A)
RAM
B)
ROM
C)
CMOS
D)
None of the above

Correct Answer :   RAM


Explanation : Querying only the index can be much faster than querying documents outside of the index.

A)
explainall()
B)
explain()
C)
explainstats()
D)
All of the above

Correct Answer :   explain()


Explanation : db.collection.explain() provides information on the execution of other operations, such as db.collection.update().

A)
UPDATE
B)
MB_UPDATES
C)
OP_UPDATES
D)
OP_UPDATE

Correct Answer :   OP_UPDATE


Explanation : Only the OP_QUERY and OP_GET_MORE messages result in a response from the database.

A)
find()
B)
modify()
C)
update()
D)
None of the above

Correct Answer :   update()


Explanation : By default, the update() method updates a single document.

A)
db.explain()
B)
cursor.explain()
C)
cursor.explainstats()
D)
All of the above

Correct Answer :   cursor.explain()


Explanation : This information can help as you develop indexing strategies.

A)
ordered
B)
execution
C)
unordered
D)
None of the above

Correct Answer :   ordered


Explanation : An ordered query plan has returned all the matching results.

A)
External
B)
Capped
C)
Embedded
D)
References

Correct Answer :   References


Explanation : Applications can resolve these references to access the related data. Broadly, these are normalized data models.

A)
row
B)
collection
C)
document
D)
All of the above

Correct Answer :   document


Explanation : No single write operation can atomically affect more than one document or more than one collection.

A)
8KB
B)
28KB
C)
68KB
D)
108KB

Correct Answer :   8KB


Explanation : Adding an index has some negative performance impact for write operations.

A)
allocation
B)
pre-allocation
C)
deallocation
D)
None of the above

Correct Answer :   pre-allocation


Explanation : A data model that embeds related data in a single document facilitates atomic operations.

A)
2 Sized
B)
3 Sized
C)
4 Sized
D)
5 Sized

Correct Answer :   2 Sized


Explanation : When using MMAPv1, if your applications require updates that will frequently cause document growth to exceeds the current power of 2 allocation, you may want to refactor your data model to use references between data in distinct documents rather than a denormalized data model.

A)
MAPv1
B)
MAPv1.5
C)
MAPv2
D)
MAPv3

Correct Answer :   MAPv3


Explanation : Normalizing the data would split the data across multiple collections and would require multiple write operations that are not atomic collectively.

A)
External
B)
Reference
C)
Embedded
D)
None of the above

Correct Answer :   Embedded


Explanation : As a result, applications may need to issue fewer queries and updates to complete common operations.

A)
isa
B)
inheritance
C)
contains
D)
All of the above

Correct Answer :   contains


Explanation : Embedding provides better performance for read operations.

A)
evaluation
B)
references
C)
relativeness
D)
None of the above

Correct Answer :   references


Explanation : Normalized data models can require more round trips to the server.

A)
dot
B)
colon
C)
period
D)
comma

Correct Answer :   dot


Explanation : References provides more flexibility than embedding.

A)
sort
B)
documents
C)
collections
D)
namespaces

Correct Answer :   namespaces


Explanation : The namespace file defaults to 16 MB.

A)
db.system.namespaces.count()
B)
db.system.namespaces.countc()
C)
db.system.namespaces.count(*)
D)
All of the above

Correct Answer :   db.system.namespaces.count()


Explanation : The limit on the number of namespaces depend on the <database>.ns size.

A)
LRU
B)
MRU
C)
LIFO
D)
FIFO

Correct Answer :   FIFO


Explanation : Capped collections efficiently support operations that insert and read documents based on insertion order.

A)
One-to-Many Relationships with Document References
B)
One-to-Many Relationships with Embedded Documents
C)
One-to-One Relationships with Embedded Documents
D)
None of the above

Correct Answer :   One-to-Many Relationships with Embedded Documents


Explanation : One-to-Many Relationships with document references presents a data model that uses references to describe one-to-many relationships between documents.

A)
References
B)
Cursor
C)
Collectors
D)
DeReferences

Correct Answer :   References


Explanation : When using references, the growth of the relationships determine where to store the reference.

A)
Query selector
B)
Query optimizer
C)
Update definitions
D)
All of the above

Correct Answer :   Query selector


Explanation : Update definitions, which define what fields to modify during an update.

A)
The field names cannot contain the null character
B)
The field names cannot contain the dot (.) character
C)
The field names cannot start with the dollar sign ($) character
D)
None of the mentioned

Correct Answer :   None of the mentioned


Explanation : BSON documents may have more than one field with the same name.

A)
json
B)
mongod
C)
mongo
D)
None of the above

Correct Answer :   mongo


Explanation : MongoDB stores documents on disk in the BSON serialization format. BSON is a binary representation of JSON documents, though it contains more data types than JSON.

A)
Root
B)
Parent
C)
Child
D)
None of the above

Correct Answer :   Parent


Explanation : Data model that describes a tree-like structure in MongoDB documents by storing references to “parent” nodes in children nodes.

A)
Root
B)
Child
C)
Parent
D)
All of the above

Correct Answer :   Parent


Explanation : You can query by the parent field to find its immediate children nodes.

A)
Child
B)
Root
C)
Parent
D)
None of the above

Correct Answer :   Child


Explanation : Node may have multiple parents for Child Parents.

A)
Nested Sets
B)
String Sets
C)
Materialized Paths
D)
Array of Ancestors

Correct Answer :   Array of Ancestors


Explanation : The Array of Ancestors pattern stores each tree node in a document; in addition to the tree node, document stores in an array the id(s) of the node’s ancestors or path.

A)
Materialized Paths
B)
Nested Sets
C)
Array of Ancestors
D)
None of the above

Correct Answer :   Materialized Paths


Explanation : The Array of Ancestors pattern provides a fast and efficient solution to find the descendants and the ancestors of a node by creating an index on the elements of the ancestors field.

A)
Nested Sets
B)
Materialized Paths
C)
Array of Ancestors
D)
None of the above

Correct Answer :   Materialized Paths


Explanation : The Materialized Paths pattern stores each tree node in a document; in addition to the tree node, document stores as a string the id(s) of the node’s ancestors or path.

A)
Root
B)
Child
C)
Parent
D)
None of the above

Correct Answer :   None of the above


Explanation : The Nested Sets pattern provides a fast and efficient solution for finding subtrees but is inefficient for modifying the tree structure.

A)
update
B)
remove
C)
findAndModify
D)
All of the above

Correct Answer :   All of the above


Explanation : In MongoDB, write operations, e.g. db.collection.update(), db.collection.findAndModify(), db.collection.remove(), are atomic on the level of a single document.

A)
Unique
B)
Synchronous
C)
Asynchronous
D)
None of the above

Correct Answer :   Asynchronous


Explanation : MongoDB can support keyword searches using specific data models and multi-key indexes;

A)
text
B)
char
C)
string
D)
None of the above

Correct Answer :   text


Explanation : MongoDB provides text indexes to support text search of string content in documents of a collection.

A)
Stemming
B)
Ranking
C)
Synonyms
D)
None of the above

Correct Answer :   Ranking


Explanation : The keyword look ups described in this document do not provide a way to weight results.

A)
Ranking
B)
Synonyms
C)
Stemming
D)
None of the above

Correct Answer :   Synonyms


Explanation : MongoDB can support keyword searches using specific data models and multi-key indexes.

A)
varchar
B)
number
C)
character
D)
strings

Correct Answer :   strings


Explanation : You can then create a multi-key index on the array and create queries that select values from the array.

A)
Grid
B)
FSpec
C)
GridFS
D)
None of the above

Correct Answer :   GridFS


Explanation : Instead of storing a file in a single document, GridFS divides a file into parts, or chunks.

A)
225
B)
255
C)
256
D)
None of the above

Correct Answer :   255


Explanation : GridFS is useful not only for storing files that exceed 16MB but also for storing any files for which you want access without having to load the entire file into memory.

A)
client
B)
Server
C)
Agent
D)
None of the above

Correct Answer :   client


Explanation : You also can access information from arbitrary sections of files, which allows you to “skip” into the middle of a video or audio file.

A)
BSON
B)
JSON
C)
GSON
D)
None of the above

Correct Answer :   BSON


Explanation : As a client program assembles a query in MongoDB, it builds a BSON object, not a string.

A)
single
B)
double
C)
non unique
D)
unique

Correct Answer :   unique


Explanation : The files_id field contains the _id of the chunk’s “parent” document.

A)
composite
B)
secondary
C)
primary
D)
All of the above

Correct Answer :   primary


Explanation : Object_Id is unique and cannot be changed.

A)
_uid
B)
_id
C)
_uuid
D)
All of the above

Correct Answer :   _id


Explanation : ID value value must be unique in the collection, is immutable, and may be of any type other than an array.

A)
XML
B)
JSON
C)
JScript
D)
None of the above

Correct Answer :   None of the above


Explanation : The _id field may contain values of any BSON data type, other than an array.

A)
toString()
B)
String()
C)
toStringJava()
D)
None of the above

Correct Answer :   toString()


Explanation : In previous versions, toString() returns the hexadecimal string representation, which as of version 2.2 can be retrieved by the str property.

A)
x = ObjectId()
B)
x = addObjectId()
C)
x = ObjectIdAdd()
D)
None of the above

Correct Answer :   x = ObjectId()


Explanation : ObjectId() constructor is used with no argument for new object.

A)
iscript
B)
mongo
C)
mongod
D)
None of the above

Correct Answer :   mongo


Explanation : The value of a field can be any of the BSON data types.

A)
XML
B)
JScript
C)
JSON
D)
All of the above

Correct Answer :   JSON


Explanation : BSON contains more data types than JSON.

A)
field1: value1;
B)
field1:; value1
C)
field1; value1;
D)
field1: value1

Correct Answer :   field1: value1


Explanation : The value of a field can be any of the BSON data types, including other documents, arrays, and arrays of documents.

A)
MMS
B)
Grid
C)
GridFS
D)
None of the above

Correct Answer :   Grid


Explanation : MongoDB preserves the order of the document fields following write operations.

A)
BinData
B)
String
C)
Materialized Paths
D)
None of the above

Correct Answer :   BinData


Explanation : Most MongoDB driver clients will include the _id field and generate an ObjectId before sending the insert operation to MongoDB.

A)
MMS
B)
replication
C)
journaling
D)
All of the above

Correct Answer :   journaling


Explanation : Without journaling enabled, there is no guarantee that the snapshot will be consistent or valid.

A)
mdump
B)
mongod
C)
mongodump
D)
All of the above

Correct Answer :   mongodump


Explanation : mongodump is a utility for creating a binary export of the contents of a database.

A)
cp
B)
copy
C)
snap
D)
None of the above

Correct Answer :   cp


Explanation : Since copying multiple files is not an atomic operation, you must stop all writes to the mongod before copying the files.

A)
mongod
B)
dbmongo
C)
mongostore
D)
mongorestore

Correct Answer :   mongorestore


Explanation : This tool is not ideal for capturing backups of larger systems.

A)
–op
B)
–oplog
C)
–log
D)

Correct Answer :   –oplog


Explanation : To restore a point in time backup created with –oplog, use mongorestore with the –oplogReplay option.

A)
mongod
B)
mongostore
C)
mongorestore
D)
mongodump

Correct Answer :   mongodump


Explanation : Applications may continue modifying data while mongodump captures the output.

A)
MMS
B)
SVM
C)
LVM
D)
All of the above

Correct Answer :   LVM


Explanation : You can create a backup by copying MongoDB’s underlying data files.

A)
secondary
B)
primary
C)
snaphot
D)
None of the above

Correct Answer :   secondary


Explanation : Alternatively, you can shut down a secondary and use mongodump with the data files directly.

A)
Ops Manager
B)
Mongod
C)
Opscore Manager
D)
None of the above

Correct Answer :   Ops Manager


Explanation : This tool is available with Enterprise Advanced subscriptions.

A)
Monitoring
B)
Automation
C)
Performance
D)
None of the above

Correct Answer :   Automation


Explanation : Ops Manager Monitoring provides real-time reporting, visualization, and alerting on key database and hardware indicators.

A)
Monitoring
B)
Automation
C)
Performance
D)
Backup

Correct Answer :   Backup


Explanation : Backup can also create snapshots of standalones that are run as single-member replica sets.

A)
MMS
B)
Mongod
C)
mongos
D)
MonitorMMS

Correct Answer :   mongos


Explanation : Backup takes and stores snapshots based on a user-defined snapshot retention policy.

A)
MMS
B)
TCP
C)
HTTPS
D)
All of the above

Correct Answer :   HTTPS


Explanation : Ops Manager Backup lets you restore data from a scheduled snapshot or from a selected point between snapshots.

A)
head
B)
tail
C)
mdump
D)
All of the above

Correct Answer :   head


Explanation : The head database is consistent with the original primary up to the last oplog supplied by the agent.

A)
backups
B)
standalones
C)
documents
D)
None of the above

Correct Answer :   standalones


Explanation : A lightweight Backup Agent runs within your infrastructure and backs up data from the MongoDB processes you have specified.

A)
dbStats
B)
db.stats()
C)
None of the above
D)
db.serverStatus()

Correct Answer :   db.serverStatus()


Explanation : serverStatus outputs an account of the state of a MongoDB instance.

A)
db.stats()
B)
db.serverStatus()
C)
replSetGetStatus
D)
None of the above

Correct Answer :   None of the above


Explanation : The replSetGetStatus command (rs.status() from the shell) returns an overview of your replica set’s status.

A)
mms
B)
mongod
C)
mongostat
D)
All of the above

Correct Answer :   mongostat


Explanation : Use mongostat to understand the distribution of operation types and to inform capacity planning.

A)
mongotop
B)
mongod
C)
mongostat
D)
All of the above

Correct Answer :   mongotop


Explanation : Use mongotop to check if your database activity and use match your expectations.

A)
db.Op
B)
db.currentOp
C)
db.current
D)
None of the above

Correct Answer :   db.currentOp


Explanation : MongoDB includes a number of commands that report on the state of the database.

A)
dbStats
B)
db.stats()
C)
db.serverStatus()
D)
None of the above

Correct Answer :   db.serverStatus()


Explanation : This command is rarely run directly.

A)
collstats
B)
dbStats
C)
db.statserver()
D)
db.serverStatus()

Correct Answer :   collstats


Explanation : It also includes count of the objects in the collection, the size of the collection, the amount of disk space used by the collection, and information about its indexes.

A)
db.statserver()
B)
db.serverStatus()
C)
db.server()
D)
dbStats

Correct Answer :   dbStats


Explanation : The dbStats command, or db.stats() from the shell, returns a document that addresses storage use and data volumes.

A)
globalLock
B)
globalLock.active
C)
localLock.activeClients
D)
globalLock.activeClients

Correct Answer :   globalLock.activeClients


Explanation : The activeClients data structure provides more granular information about the number of connected clients and the operation types (e.g. read or write) performed by these clients.

A)
admin.system.role
B)
admin.system.roles
C)
admin.system.roleasign
D)
All of the above

Correct Answer :   admin.system.roles


Explanation : System collections include these collections stored in the admin database

A)
mem.resident
B)
memory.resident
C)
mem.resident
D)
All of the above

Correct Answer :   mem.resident


Explanation : If this exceeds the amount of system memory and there is a significant amount of data on disk that isn’t in RAM, you may have exceeded the capacity of your system.

A)
rs.conf()
B)
rs.config()
C)
rs.confstats()
D)
All of the above

Correct Answer :   rs.conf()


Explanation : Custom read preferences and write concerns evaluate tags sets in different ways.

A)
stat
B)
iostat
C)
iostats
D)
None of the above

Correct Answer :   iostat


Explanation : Specify the number of seconds when running iostat to avoid displaying stats covering the time since server boot.

A)
systemLog
B)
systemLog.verbosity
C)
operationProfiling.mode
D)
operationProfiling.slowOpThresholdMs

Correct Answer :   operationProfiling.slowOpThresholdMs


Explanation : systemLog.verbosity controls the amount of logging output that mongod write to the log.

A)
MMAPv1
B)
WiredTiger
C)
WirelessTiger
D)
All of the above

Correct Answer :   MMAPv1


Explanation : MongoDB includes support for two storage engines: MMAPv1, the storage engine available in previous versions of MongoDB, and WiredTiger

A)
writer
B)
readers
C)
readers-writer
D)
All of the above

Correct Answer :   readers-writer


Explanation : Each database has a readers-writer lock that allows concurrent read access to a database, but gives exclusive access to a single write operation per database.

A)
read only
B)
write ahead
C)
write once
D)
read ahead

Correct Answer :   write ahead


Explanation : Leave journaling enabled in order to ensure that mongod will be able to recover its data files and keep the data files in a valid state following a crash.

A)
Read
B)
SSD
C)
Write
D)
Read only

Correct Answer :   Write


Explanation : The strength of the write concerns determine the level of guarantee.

A)
server
B)
connStats
C)
serverstats
D)
connPoolStats

Correct Answer :   connPoolStats


Explanation : To avoid overloading the connection resources of a single mongod or mongos instance, ensure that clients maintain reasonable connection pool sizes.

A)
RAID-0
B)
RAID-5
C)
RAID-7
D)
RAID-10

Correct Answer :   RAID-0


Explanation : While RAID-0 provides good write performance, it also provides limited availability and can lead to reduced performance on read operations, particularly when using Amazon’s EBS volumes.

A)
SST
B)
XFS
C)
SSD
D)
All of the above

Correct Answer :   XFS


Explanation : Some Linux distributions require different versions of the kernel to support using XFS.

A)
fsync()
B)
sync()
C)
fsynconce()
D)
all of the above

Correct Answer :   fsync()


Explanation : HGFS and Virtual Box’s shared folders do not support this operation.

A)
ECS
B)
EC1
C)
EC2
D)
EC3

Correct Answer :   EC2


Explanation : MongoDB is compatible with EC2.

A)
Kit
B)
Lib
C)
Zip
D)
snappy

Correct Answer :   snappy


Explanation : snappy provides a lower compression rate but has little performance cost

A)
NSS
B)
NTP
C)
STP
D)
SSD

Correct Answer :   NSS


Explanation : Use the Network Time Protocol (NTP) to synchronize time among your hosts.

A)
bwm-n
B)
bwm-ng
C)
bwm-g
D)
bwm-ngs

Correct Answer :   bwm-ng


Explanation : If you suspect a network-based bottleneck, you may use bwm-ng to begin your diagnostic process.

A)
fastOpThresholdMs
B)
slowOpThresholdGs
C)
slowOpThresholdMs
D)
None of the above

Correct Answer :   slowOpThresholdMs


Explanation : The operationProfiling.slowOpThresholdMs setting is available only for mongod.

A)
locks.deadlock
B)
lock.deadlockCount
C)
locks.deadlockCount
D)
All of the above

Correct Answer :   locks.deadlockCount


Explanation : The globalLock data structure contains information regarding the database’s current lock state, historical lock status, current operation queue, and the number of active clients.

A)
globalLock
B)
globalLock.halfTime
C)
globalLock.downTime
D)
globalLock.totalTime

Correct Answer :   globalLock.totalTime


Explanation : The value of totalTime represents the time, in microseconds, since the database last started and creation of the globalLock.

A)
currentQu
B)
currentQueue
C)
curQueue
D)
None of the above

Correct Answer :   currentQueue


Explanation : The serverStatus command returns a document that provides an overview of the database process’s state

A)
rangeDelete
B)
rangeDEL
C)
rangeDeleter
D)
None of the above

Correct Answer :   rangeDelete


Explanation : You may only dynamically include top-level fields from the serverStatus document that are not included by default.

A)
Profiler
B)
Reporter
C)
Executer
D)
None of the above

Correct Answer :   Profiler


Explanation : Enable the profiler by setting the profile value using the following command in the mongo shell.

A)
Model
B)
Master
C)
Local
D)
All of the above

Correct Answer :   Local


Explanation : It is stored specifically for replication purposes.

A)
mongos
B)
mongod
C)
serverInfo
D)
None of the above

Correct Answer :   mongod


Explanation : mongod uses background threads for a number of internal processes, including TTL collections, replication, and replica set health checks, which may require a small number of additional resources.

A)
admin.system
B)
admin.system.auth
C)
admin.system.usersauth
D)
admin.system.users

Correct Answer :   admin.system.users


Explanation : Users may define authorization roles in the admin.system.roles collection.

A)
system.js
B)
store.js
C)
save.js
D)
system.store.js

Correct Answer :   system.js


Explanation : To store a function, you can use the db.collection.save().

A)
db.loadScripts()
B)
db.loadServerScriptsjs()
C)
db.loadServerScripts()
D)
None of the above

Correct Answer :   db.loadServerScripts()


Explanation : The documents in the system.js collection provide functions that your applications can use in any JavaScript context with MongoDB in this database.

A)
system.index
B)
system.profile
C)
system.replica
D)
All of the above

Correct Answer :   system.profile


Explanation : The database profiler writes data in the system.profile collection, which is a capped collection.

A)
admin.system.locks
B)
system.profile.locks
C)
admin.system.authlocks
D)
All of the above

Correct Answer :   system.profile.locks


Explanation : MongoDB uses reader-writer locks that allow concurrent readers shared access to a resource, such as a database or collection, but give exclusive access to a single write operation.

A)
Meta
B)
Metadata
C)
Database
D)
Collection

Correct Answer :   Collection


Explanation : Database represents database lock.

A)
system.profile.locks.acquireCount
B)
system.profile.locks.Count
C)
system.profile.locks.acquireWaitCount
D)
None of the above

Correct Answer :   system.profile.locks.acquireCount


Explanation : system.profile.locks.acquireWaitCount is number of times the operation had to wait for the acquireCount lock acquisitions because the locks were held in a conflicting mode. acquireWaitCount is less than or equal to acquireCount.

A)
.mongo.js
B)
.mongorc.jscript
C)
.mongorc.js
D)
All of the above

Correct Answer :   .mongorc.js


Explanation : You can disable this behavior by passing the mongo –norc option.

A)
Mac
B)
Linux
C)
Solaris
D)
Windows

Correct Answer :   Windows


Explanation : On Linux and Unix systems, mongo reads the .mongorc.js file from $HOME/.mongorc.js.

A)
10000
B)
1000
C)
2000
D)
3000

Correct Answer :   1000


Explanation : By default, the HTTP interface port is 28017, but is indirectly set using the port option which allows you to configure the primary mongod port.

A)
REST
B)
Web
C)
RestFul
D)
All of the above

Correct Answer :   REST


Explanation : The REST interface is disabled by default, and is not recommended for production use.

A)
netstats
B)
mongos
C)
mongod
D)
selectindexes

Correct Answer :   mongos


Explanation : Clients connect to mongos instances, which behave from the client’s perspective as mongod instances.

A)
27107
B)
27011
C)
27019
D)
None of the above

Correct Answer :   27019


Explanation : You also can run a config server by using the configsvr value for the clusterRole setting in a configuration file.

A)
log
B)
oplog
C)
evallog
D)
syslog

Correct Answer :   syslog


Explanation : MongoDB provides an option to send output to the host’s syslog system.

A)
ts
B)
local
C)
users
D)
remote

Correct Answer :   local


Explanation : Remote document contains the remote ip address and the port number of the incoming connection associated with the event.

A)
auditAuthorizationSuccess
B)
auditAuthorizationlog
C)
auditAuthorizationFailure
D)
None of the above

Correct Answer :   auditAuthorizationSuccess


Explanation : System Event Audit Message is available only in MongoDB Enterprise.

A)
Server
B)
Client
C)
Application
D)
All of the above

Correct Answer :   Server


Explanation : Printing audit events to a file in JSON format degrades server performance more than printing to a file in BSON format.

A)
bsonout
B)
bsonlog
C)
bsondump
D)
SelectIndexes

Correct Answer :   bsondump


Explanation : The following converts the audit log into a human-readable form and output to the terminal: bsondump data/db/auditLog.bson.

A)
log
B)
oplog
C)
evallog
D)
syslog

Correct Answer :   syslog


Explanation : The auditing system will neither detect the truncation nor error upon its occurrence.

A)
db
B)
db.User()
C)
db.superuser()
D)
db.createUser()

Correct Answer :   db.createUser()


Explanation : MongoDB provides the db.createUser() to add and manage user information.

A)
system.allusers
B)
system.users
C)
system.usersnone
D)
system.superusers

Correct Answer :   system.users


Explanation : MongoDB stores all user information, including name, password, and the user’s database, in the system.users collection in the admin database.

A)
LDAP
B)
MONGODB-CR
C)
SCRAM-SHA-1
D)
None of the above

Correct Answer :   SCRAM-SHA-1


Explanation : SCRAM-SHA-1 verifies supplied user credentials against the user’s name, password and database.

A)
LDAP
B)
MONGODB-CR
C)
SCRAM-SHA-1
D)
None of the above

Correct Answer :   MONGODB-CR


Explanation : Using key files, you can also use MONGODB-CR authentication for the internal member authentication of replica set members and sharded cluster members.

A)
x.509
B)
x.590
C)
x.950
D)
All of the above

Correct Answer :   x.509


Explanation : To authenticate to servers, clients can use x.509 certificates instead of usernames and passwords.

A)
service sets
B)
service replica
C)
service principle
D)
service principal

Correct Answer :   service principal


Explanation : Service principal names must be reachable over the network using the fully qualified domain name (FQDN) part of its service principal name.

A)
roles
B)
shards
C)
replica sets
D)
None of the above

Correct Answer :   roles


Explanation : By creating a role with privileges that are scoped to a specific collection in a particular database, administrators can provision users with roles that grant privileges on a collection level.

A)
unlock
B)
viewRole
C)
grantRole
D)
killCursors

Correct Answer :   grantRole


Explanation : Apply this action to database resources.

A)
viewRole
B)
revokeRole
C)
grantRole
D)
killCursors

Correct Answer :   revokeRole


Explanation : User can view information about any role in the given database through viewRole.

A)
db.kill()
B)
db.remove()
C)
db.killOp()
D)
None of the above

Correct Answer :   db.killOp()


Explanation : Only use db.killOp() to terminate operations initiated by clients and do not terminate internal database operations.

A)
cleanup
B)
listallshards
C)
SelectIndexes
D)
cleanupOrphaned

Correct Answer :   cleanupOrphaned


Explanation : If two contiguous ranges do not belong to the shard, the cleanupOrphaned examines both ranges for orphaned documents.

A)
invalidateUserCache
B)
grantCache
C)
validateUserCache
D)
None of the above

Correct Answer :   invalidateUserCache


Explanation : invalidateUserCache allows you to purge the cache at any given moment, regardless of the interval set in the userCacheInvalidationIntervalSecs parameter.

A)
CacheListPlans
B)
planCacheListPlans
C)
displayCacheListPlans
D)
None of the above

Correct Answer :   displayCacheListPlans


Explanation : The query optimizer only caches the plans for those query shapes that can have more than one viable plan.

A)
home
B)
primary
C)
secondary
D)
None of the above

Correct Answer :   home


Explanation : The mongod and mongos instances run with the http interface disabled by default.

A)
Restful
B)
Rest
C)
WebService
D)
All of the above

Correct Answer :   Rest


Explanation : The REST interface does not support any authentication and you should always restrict access to this interface to only allow trusted clients to connect to this port.

A)
bind
B)
bindIp
C)
revokeip
D)
bindIpmongo

Correct Answer :   bindIp


Explanation : You can also specify a number of interfaces by passing bindIp a comma separated list of IP addresses.

A)
portp
B)
portI
C)
portIP
D)
port

Correct Answer :   port


Explanation : Setting port also indirectly sets the port for the HTTP status interface, which is always available on the port numbered 1000 greater than the primary mongod port.

A)
netln
B)
netstat
C)
netsh
D)
SelectIndexes

Correct Answer :   netsh


Explanation : To minimize overall exposure, ensure that only traffic from trusted sources can reach mongod and mongos instances and that the mongod and mongos instances can only connect to trusted outputs.

A)
Windows
B)
Mac
C)
Linux
D)
None of the above

Correct Answer :   Windows


Explanation : Given the default ports of all MongoDB processes, you must configure networking rules that permit only required communication between your application and the appropriate mongod.exe and mongos.exe instances.

A)
ReplicaAgg
B)
Aggregations
C)
SumCalculation
D)
None of the above

Correct Answer :   Aggregations


Explanation : MongoDB provides a rich set of aggregation operations that examine and perform calculations on the data sets.

A)
mongos
B)
mongod
C)
document
D)
All of the above

Correct Answer :   mongod


Explanation : Like queries, aggregation operations in MongoDB use collections of documents as an input and return results in the form of one or more documents.

A)
pipeline
B)
pipelineView
C)
pipelineUser
D)
All of the above

Correct Answer :   pipeline


Explanation : MongoDB 2.2 introduced a new aggregation framework, modeled on the concept of data processing pipelines.

A)
methods
B)
stored
C)
filters
D)
stored procedure

Correct Answer :   filters


Explanation : Other pipeline operations provide tools for grouping and sorting documents by specific field.

A)
roles
B)
replicas
C)
Both (A) and (B)
D)
operators

Correct Answer :   operators


Explanation : User can remove any role from any user from any database in the system.

A)
final
B)
finally
C)
static
D)
None of the above

Correct Answer :   finally


Explanation : Certain mongo shell functions and properties are inaccessible in map-reduce operations.

A)
indexes
B)
functions
C)
OptmData
D)
All of the above

Correct Answer :   indexes


Explanation : Both the aggregation pipeline and map-reduce can operate on a sharded collection.

A)
2.1
B)
2.2
C)
2.4
D)
3.0

Correct Answer :   2.2


Explanation : The aggregation pipeline provides an alternative to map-reduce.

A)
db.collection.agg
B)
db.collection.pipeline
C)
db.collection.aggregate
D)
All of the above

Correct Answer :   db.collection.aggregate


Explanation : In the mongo shell, if the cursor returned from the db.collection.aggregate() is not assigned to a variable using the var keyword, then the mongo shell automatically iterates the cursor up to 20 times.

A)
cursor
B)
cursor.has()
C)
cursor.Next()
D)
cursor.hasNext()

Correct Answer :   cursor.hasNext()


Explanation : cursor.hasNext() returns true if the cursor returned by the db.collection.find() query can iterate further to return more documents.

A)
it
B)
cur
C)
next
D)
None of the above

Correct Answer :   it


Explanation : The mongo shell iterates the returned cursor automatically to print the results.

A)
cur: { batchSize: }
B)
cursor: { batchSize: }
C)
cursor: { batchSize: }
D)
None of the above

Correct Answer :   cursor: { batchSize: }


Explanation : A batchSize of 0 means an empty first batch and is useful for quickly returning a cursor or failure message without doing significant server-side work.

A)
selection
B)
projection
C)
collection
D)
None of the above

Correct Answer :   collection


Explanation : If an index filter exists for a given query shape, the optimizer only considers those indexes specified in the filter.

A)
$match
B)
$reg
C)
$regex
D)
None of the above

Correct Answer :   $match


Explanation : $match uses standard MongoDB queries. For each input document, outputs either one document (a match) or zero documents (no match).

A)
$skip
B)
$redact
C)
$limit
D)
$match

Correct Answer :   $redact


Explanation : $redact reshapes each document in the stream by restricting the content for each document based on information stored in the documents themselves.

A)
$skip
B)
$match
C)
$redact
D)
$limit

Correct Answer :   $limit


Explanation : For each input document, outputs either one document (for the first n documents) or zero documents (after the first n documents).

A)
$geoRear
B)
$geoSpatial
C)
$geoNear
D)
None of the above

Correct Answer :   $geoNear


Explanation : The output documents include an additional distance field and can include a location identifier field.

A)
$unwin
B)
$unwind
C)
$unwindelem
D)
None of the above

Correct Answer :   $unwin


Explanation : Each output document replaces the array with an element value.

A)
$geoNear
B)
$geoRear
C)
$geoSpatial
D)
None of the above

Correct Answer :   $geoNear


Explanation : $geoNear returns an ordered stream of documents based on the proximity to a geospatial point.

A)
$setUnion
B)
$setEquals
C)
$setDifference
D)
None of the above

Correct Answer :   $setEquals


Explanation : $setEquals accepts two or more argument expressions.

A)
$set
B)
$setEquals
C)
$setDifference
D)
$setIntersection

Correct Answer :   $setIntersection


Explanation : $setIntersection returns a set with elements that appear in all of the input sets.

A)
$setEquals
B)
$setDifference
C)
$setUnion
D)
$setIntersection

Correct Answer :   $setUnion


Explanation : $setUnion performs set operation on arrays, treating arrays as sets.

A)
$setUnion
B)
$setEquals
C)
$setDifference
D)
$setIntersection

Correct Answer :   $setIntersection


Explanation : $setDifference returns a set with elements that appear in the first set but not in the second set.

A)
$bool
B)
$setIsSubset
C)
$anyElementTrue
D)
None of the above

Correct Answer :   $anyElementTrue


Explanation : $anyElementTrue returns true if any elements of a set evaluate to true; otherwise, returns false.

A)
1 and 31
B)
1 and 30
C)
1 and 28
D)
None of the above

Correct Answer :   1 and 31


Explanation : The $dayOfMonth expression has the following syntax: { $dayOfMonth: }.

A)
$dayOfWeek
B)
$dayOfYear
C)
$dayofWeekend
D)
None of the above

Correct Answer :   $dayOfYear


Explanation : The $dayOfYear expression has the following syntax:{ $dayOfYear: }.

A)
$year
B)
$yearday
C)
$syearofmonth
D)
None of the above

Correct Answer :   $year


Explanation : $year returns the year for a date as a number (e.g. 2014).

A)
$hour
B)
$minute
C)
$seconds
D)
All of the above

Correct Answer :   $hour


Explanation : The argument in hour statement can be any expression as long as it resolves to a date.

A)
$date
B)
$toString
C)
$letString
D)
$dateToString

Correct Answer :   $dateToString


Explanation : $dateToString converts a date object to a string according to a user-specified format.

A)
$Null
B)
$ElseNull
C)
$ifNull
D)
None of the above

Correct Answer :   $ifNull


Explanation : $ifNull returns the result of the second expression if the first expression results in a null result.

A)
Monitors
B)
Computer
C)
Performoner
D)
Accumulators

Correct Answer :   Accumulators


Explanation : Accumulators are available only for the $group stage.

A)
Map
B)
Hash
C)
B-tree
D)
All of the above

Correct Answer :   Map


Explanation : MongoDB provides a number of different index types to support specific types of data and queries.

A)
Single
B)
Compound
C)
Non Unique
D)
None of the above

Correct Answer :   Single


Explanation : If applications do not specify a value for _id the driver or the mongod will create an _id field with an ObjectId value.

A)
candidate
B)
compound
C)
composite
D)
None of the above

Correct Answer :   compound


Explanation : The order of fields listed in a compound index has significance.

A)
compkey
B)
singlekey
C)
multikey
D)
None of the above

Correct Answer :   multikey


Explanation : If you index a field that holds an array value, MongoDB creates separate index entries for every element of the array.

A)
1dsphere
B)
2dsphere
C)
3dsphere
D)
None of the above

Correct Answer :   2dsphere


Explanation : To support efficient queries of geospatial coordinate data, MongoDB provides two special indexes.

A)
char
B)
num
C)
string
D)
text

Correct Answer :   text


Explanation : These text indexes do not store language-specific stop words (e.g. “the”, “a”, “or”) and stem the words in a collection to only store root words.

A)
Point
B)
MultiPoint
C)
LineString
D)
None of the above

Correct Answer :   None of the above


Explanation : In version 2.2 and newer, capped collections do have an _id field, except those in the local database.

A)
2d
B)
2dsphere
C)
geoHaystack
D)
All of the above

Correct Answer :   2dsphere


Explanation : If you choose flat surface calculations via a 2d index, you can store data only as legacy coordinate pairs.

A)
$geoin
B)
$geokey
C)
$geoWithin
D)
All of the above

Correct Answer :   $geoWithin


Explanation : $geoWithin selects documents with geospatial data that exists entirely within a specified shape.

A)
$geometry
B)
$geoin
C)
$sphere
D)
All of the above

Correct Answer :   $geometry


Explanation : For $geoWithin, if you specify a single-ringed polygon that has an area greater than a single hemisphere, include the custom MongoDB coordinate reference system in the $geometry expression.

A)
CRS
B)
CLS
C)
CDS
D)
None of the above

Correct Answer :   CRS


Explanation : CRS stands for coordinate reference system.

A)
$gwithin
B)
$within
C)
$withing
D)
All of the above

Correct Answer :   $within


Explanation : $within is deprecated since version 2.4.

A)
$box
B)
$circle
C)
$shape
D)
All of the above

Correct Answer :   $box


Explanation : $box specifies a rectangle for a geospatial $geoWithin query to return documents that are within the bounds of the rectangle, according to their point-based location data.

A)
modIndex()
B)
dropIndex()
C)
createIndex()
D)
None of the above

Correct Answer :   createIndex()


Explanation : To modify the index, you must drop the index first.

A)
db.collection()
B)
db.collection.reIndex()
C)
db.collection.rebuildIndex()
D)
db.collection.Index()

Correct Answer :   db.collection.Index()


Explanation : This operation drops all indexes, including the _id index, and then rebuilds all indexes.

A)
db.killOp()
B)
db.currentOp()
C)
db.removeOp()
D)
All of the above

Correct Answer :   db.killOp()


Explanation : For index builds, the effects of db.killOp() may not be immediate and may occur well after much of the index build operation has completed.

A)
getretIndexes()
B)
getIndexes()
C)
getallIndexes()
D)
None of the above

Correct Answer :   getIndexes()


Explanation : When performing maintenance you may want to check which indexes exist on a collection.

A)
$center
B)
$maxDistance
C)
$minDistance
D)
All of the above

Correct Answer :   $maxDistance


Explanation : The measuring units for the maximum distance are determined by the coordinate system in use.

A)
find()
B)
index()
C)
query()
D)
All of the above

Correct Answer :   find()


Explanation : Append the hint() method to the find() method.

A)
$near
B)
$nearsphere
C)
$geoIntersect
D)
None of the above

Correct Answer :   $geoIntersect


Explanation : The 2dsphere index supports $geoIntersects.

A)
$near
B)
$nearsphere
C)
$geoIntersect
D)
None of the above

Correct Answer :   $near


Explanation : $near requires a geospatial index.

A)
$geoin
B)
$geometry
C)
$sphere
D)
All of the above

Correct Answer :   $geometry


Explanation : $geometry uses EPSG:4326 as the default coordinate reference system (CRS).

A)
$geo
B)
$near
C)
$geoIntersect
D)
$nearsphere

Correct Answer :   $nearsphere


Explanation : The 2dsphere and 2d indexes support $nearSphere.

A)
$center
B)
$minDistance
C)
$maxDistance
D)
All of the above

Correct Answer :   $minDistance


Explanation : $minDistance is available for use with 2dsphere index only.

A)
Unique
B)
Temporal
C)
Geospatial
D)
None of the above

Correct Answer :   Geospatial


Explanation : Only the 2d geospatial index supports $center.

A)
radii
B)
copy
C)
sorted
D)
replica

Correct Answer :   replica


Explanation : One mongod, the primary, receives all write operations.

A)
primary
B)
center
C)
secondary
D)
None of the above

Correct Answer :   primary


Explanation : The primary accepts all write operations from clients.

A)
oplog
B)
log
C)
adlog
D)
None of the above

Correct Answer :   oplog


Explanation : If the primary is unavailable, the replica set will elect a secondary to be primary.

A)
additor
B)
arbiter
C)
replicator
D)
All of the above

Correct Answer :   arbiter


Explanation : Arbiters do not maintain a data set.

A)
center
B)
primary
C)
secondary
D)
None of the above

Correct Answer :   secondary


Explanation : If your replica set has an even number of members, add an arbiter to obtain a majority of votes in an election for primary.

A)
weak
B)
strict
C)
partial
D)
All of the above

Correct Answer :   strict


Explanation : Arbiters can be a good way to provide replica set quorum functionality with a cheaper resource cost than a fully functional replica set member with a data set.

A)
failure
B)
replication
C)
Both (A) and (B)
D)
failover

Correct Answer :   failover


Explanation : Failover, in most situations does not require manual intervention.

A)
Secondary
B)
Primary
C)
Hidden
D)
ViewState

Correct Answer :   Secondary


Explanation : Replica set members keep the same data set but are otherwise independent.

A)
logPath
B)
dataPath
C)
dbPath
D)
All of the above

Correct Answer :   dbPath


Explanation : The storage.dbPath setting is available only for mongod.

A)
bsondp
B)
bsondumpdata
C)
bsondump
D)
None of the above

Correct Answer :   bsondump


Explanation : The bsondump converts BSON files into human-readable formats, including JSON.

A)
bsondump
B)
mongodump
C)
mongostore
D)
All of the above

Correct Answer :   mongodump


Explanation : The data format used by mongodump from version 2.2 or later is incompatible with earlier versions of mongod.

A)
Hidden
B)
Primary
C)
center
D)
Delayed

Correct Answer :   Delayed


Explanation : Use hidden members for dedicated tasks such as reporting and backups.

A)
secondary
B)
db.lockl()
C)
db.synclock()
D)
db.fsyncUnlock()

Correct Answer :   db.fsyncUnlock()


Explanation : As a result, do not use these methods to ensure consistency for the purposes of creating backups.

A)
db.fsyncLock()
B)
db.lockall()
C)
db,lockreads()
D)
None of the above

Correct Answer :   db.fsyncLock()


Explanation : Such reads are necessary to establish new connections to a mongod that enforces authorization checks.

A)
secondary
B)
db.fsynclock()
C)
db.fsyncUnlock()
D)
db.syncUnlock()

Correct Answer :   db.fsyncUnlock()


Explanation : Typically you will use db.fsyncUnlock() following a database backup operation.

A)
“roll backup”
B)
“rolling backup”
C)
“rolling commit”
D)
None of the above

Correct Answer :   “rolling backup”


Explanation : They may help you recover from various kinds of human error.

A)
Emitter
B)
Collector
C)
Balancer
D)
None of the above

Correct Answer :   Balancer


Explanation : Delayed members replicate chunk migrations with a delay.

A)
rs.addArb()
B)
rs.addtoArb()
C)
rs.addArbiter()
D)
All of the above

Correct Answer :   rs.addArb()


Explanation : rs.addArb() adds a new arbiter to an existing replica set.

A)
rs.conf()
B)
rs.freeze()
C)
secondary
D)
rs.printReplicationInfo()

Correct Answer :   rs.freeze()


Explanation : rs.freeze() makes the current replica set member ineligible to become primary for the period specified.

A)
rs.freeze()
B)
ReplicationInfo()
C)
rs.printReplicationInfo()
D)
rs.conf()

Correct Answer :   rs.conf()


Explanation : rs.conf() returns a document that contains the current replica set configuration.

A)
rs.freeze()
B)
rs.printconf()
C)
secondary
D)
rs.printReplicationInfo()

Correct Answer :   rs.printReplicationInfo()


Explanation : Typically you will use db.fsyncUnlock() following a database backup operation.

A)
rs.remove()
B)
rs.stepDown()
C)
rs.reconfig()
D)
None of the above

Correct Answer :   rs.reconfig()


Explanation : To reconfigure an existing replica set, first retrieve the current configuration with rs.conf(), modify the configuration document as needed, and then pass the modified document to rs.reconfig().

A)
rs.syncFrom()
B)
rs.reconfig()
C)
rs.remove()
D)
rs.stepDown()

Correct Answer :   rs.syncFrom()


Explanation : rs.syncFrom() provides a wrapper around the replSetSyncFrom, which allows administrators to configure the member of a replica set that the current member will pull data from.

A)
replSetfinalReconfig
B)
replSetReconfig
C)
replSetReconfiguration
D)
None of the above

Correct Answer :   replSetReconfig


Explanation : The force parameter in reconfig method allows a reconfiguration command to be issued to a non-primary node.

A)
rs.slaveOk()
B)
rs.slave()
C)
rs.stepDown()
D)
rs.reconfig()

Correct Answer :   rs.slaveOk()


Explanation : Use readPref() and Mongo.setReadPref() to set read preference.

A)
Initiate
B)
priority
C)
replication
D)
All of the above

Correct Answer :   priority


Explanation : Use this setting to ensure that some members are more likely to become primary and that others can never become primary.

A)
tag
B)
mdimarray
C)
array
D)
All of the above

Correct Answer :   array


Explanation : The array index begins with 0. Do not confuse this index value with the value of the replica set member’s _id field in the array.

A)
rs.config()
B)
repliconfig()
C)
rs.repliconfig()
D)
rs.reconfig()

Correct Answer :   rs.reconfig()


Explanation : When the primary steps down, the mongod closes all client connections.

A)
delayed
B)
hidden
C)
priority
D)
All of the above

Correct Answer :   delayed


Explanation : The length of the secondary slaveDelay must fit within the window of the oplog.

A)
rs.remove()
B)
isMaster
C)
rs.removeset()
D)
rs.removeRepli()

Correct Answer :   rs.remove()


Explanation : rs.remove() removes the member described by the hostname parameter from the current replica set.

A)
rs.printReplication()
B)
rs.help()
C)
rs.printSlaveReplicationInfo()
D)
All of the above

Correct Answer :   rs.help()


Explanation : rs.help() returns a basic help text for all of the replication related shell functions

A)
rs.help()
B)
rs.printReplication()
C)
rs.printSlaveReplicationInfo()
D)
None of the above

Correct Answer :   rs.printSlaveReplicationInfo()


Explanation : rs.printSlaveReplicationInfo() returns a formatted report of the status of a replica set from the perspective of the secondary member of the set.

A)
replication
B)
replica
C)
replica sets
D)
sharding

Correct Answer :   sharding


Explanation : Sharding is a method for storing data across multiple machines.

A)
1
B)
2
C)
3
D)
4

Correct Answer :   2


Explanation : MongoDB have two basic approaches: vertical scaling and sharding.

A)
Sharding
B)
Vertical
C)
Partition
D)
All of the above

Correct Answer :   Sharding


Explanation : Each shard is an independent database, and collectively, the shards make up a single logical database.

A)
1
B)
2
C)
3
D)
4

Correct Answer :   2


Explanation : Sharded cluster has the following components: shards, query routers and config servers.

A)
Query Parsers
B)
Query Executors
C)
Query Routers
D)
None of the above

Correct Answer :   Query Routers


Explanation : The query router processes and targets operations to shards and then returns results to the clients.

A)
split
B)
change
C)
distrbute
D)
All of the above

Correct Answer :   split


Explanation : The config database is internal: applications and administrators should not modify or depend upon its content in the course of normal operation.

A)
helpchunks
B)
mergeChunks
C)
moveChunks
D)
All of the above

Correct Answer :   mergeChunks


Explanation : For a sharded collection, mergeChunks combines contiguous chunk ranges on a shard into a single chunk. Issue the mergeChunks command from a mongos instance.

A)
results()
B)
sh.results()
C)
sh.collects()
D)
sh.status()

Correct Answer :   sh.status()


Explanation : To access the config database, connect to a mongos instance in a sharded cluster, and use the following helper: use config

A)
sh.split()
B)
sh.Find()
C)
sh.splitFind()
D)
All of the above

Correct Answer :   sh.splitFind()


Explanation : sh.splitFind() creates two roughly equal chunks.

A)
sh.splitAt
B)
sh.split()
C)
sh.Find()
D)
sh.splitFind()

Correct Answer :   sh.splitAt


Explanation : In most circumstances, you should leave chunk splitting to the automated processes within MongoDB.

A)
stdev
B)
median
C)
smean
D)
All of the above

Correct Answer :   median


Explanation : It may be beneficial to pre-split manually an empty collection using methods such as sh.splitFind().

A)
–Size
B)
–chunk
C)
–chunkSize
D)
None of the above

Correct Answer :   –chunkSize


Explanation : Modifying the chunk size has several limitations.

A)
sh._check()
B)
sh._checkFullName()
C)
sh.getBalancerLockDetails()
D)
sh._adminCommand()

Correct Answer :   sh._adminCommand()


Explanation : sh._adminCommand() runs a database command against the admin database, like db.runCommand(), but can confirm that it is issued against a mongos.

A)
sh.addShard()
B)
sh._lastMigration()
C)
sh._checkMongos()
D)
All of the above

Correct Answer :   sh._checkMongos()


Explanation : The sh._checkMongos() method throws an error message if the mongo shell is not connected to a mongos instance.

A)
FullName()
B)
sh._checkFullName()
C)
sh._adminCommand()
D)
sh.getBalancerLockDetails()

Correct Answer :   sh.getBalancerLockDetails()


Explanation : sh._checkFullName() tests a namespace to determine if its well formed.

A)
sh._lastMigration()
B)
sh.addShard()
C)
sh._checkMongos()
D)
Aall of the above

Correct Answer :   sh._lastMigration()


Explanation : The sh._lastMigration() method returns a document with details about the last migration performed on the database or collection.

A)
sh._checkMongos()
B)
sh.removeTagRange()
C)
sh.disableBalancing()
D)
None of the above

Correct Answer :   sh.removeTagRange()


Explanation : Use sh.removeShardTag() to ensure that unused or out of date ranges are removed and hence chunks are balanced as required.

A)
sh.enableBalancing()
B)
sh.getBalancerState()
C)
sh.getBalancerHost()
D)
None of the above

Correct Answer :   sh.getBalancerState()


Explanation : sh.getBalancerState() returns true when the balancer is enabled and false if the balancer is disabled.

A)
sh.enableSharding()
B)
sh.enableBalancing()
C)
sh.getBalancerHost()
D)
All of the above

Correct Answer :   sh.getBalancerHost()


Explanation : sh.enableSharding() enables sharding on a specific database.

A)
TagRange()
B)
sh._checkMongos()
C)
sh.removeTagRange()
D)
sh.disableBalancing()

Correct Answer :   sh.disableBalancing()


Explanation : sh.disableBalancing() does not affect balancing of other collections in a sharded cluster.