sample-questions-for-mongodb-c100dba-exam-by-craig
sample-questions-for-mongodb-c100dba-exam-by-craig
Question 1
Question Type: MultipleChoice
Which of the tags in a replica set configuration specify the operations to be read from the node
with the least network latency?
Options:
A- netLatency
B- secondaryPreferred
C- nearest
D- primaryPreferred
Answer:
C
Question 2
Question Type: MultipleChoice
Options:
A- Create
B- update
C- insert
D- delete
Answer:
A, C
Question 3
Question Type: MultipleChoice
A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?
Sample Questions for MongoDB C100DBA Exam By Craig - Page 3
Options:
A- Column and Row
B- Table and Row
C- Database and Table
D- Table and Column
Answer:
B
Question 4
Question Type: MultipleChoice
The MongoDB explain() method does not support which of the following verbosity mode:
Options:
A- executionStats
B- queryPlanner
C- customExecutionStats
D- allPlansExecution
Answer:
C
Question 5
Question Type: MultipleChoice
"_id": Objectld("5360c0a0a655a60674680bbe"),
"user"
"login": "irOn"
"date": ISODate("2014-04-30T09:16:45.836Z"),
>
which of the following statements correctly describe how MongoDB will handle the query? Check
all that apply.
Options:
A- As an optimized sort query (scanAndOrder = false) using 'mylndex' because we are sorting on
an indexed field
B- As an indexed query using 'mylndex' because field 'user.login' is indexed
C- MongoDB will need to do a table/collection scan to find matching documents
D- None of the above
E- As a covered query using 'mylndex' because we are filtering out '_id' and only returning
'user.login'
Answer:
B
Question 6
Question Type: MultipleChoice
Given a replica set with five data-bearing members, suppose the primary goes down with
operations in its oplog that have been copied from the primary to only one secondary. Assuming
no other problems occur, which of the following describes what is most likely to happen?
Options:
A- missing operations will need to be manually re-performed
Sample Questions for MongoDB C100DBA Exam By Craig - Page 5
B- the secondary with the most current oplog will be elected primary
C- reads will be stale until the primary comes back up
D- the primary may roll back the operations once it recovers
E- the most current secondary will roll back the operations following the election
Answer:
B
Sample Questions for MongoDB C100DBA Exam By Craig - Page 6