MongoDB Interview Questions - 24 | Snaprecruit.com
MongoDB Interview Questions - 24 | Snaprecruit.com
JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing
Enterprises
MongoDB interview questions part 24
MongoDB interview questions part 24
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. The ________ settings of replica set members affect the outcomes of elections for primary.
A. priority
B. replication
C. Initiate
D. all of the mentioned
Show Correct Answer
Correct Answer is :
priority
2. Point out the correct statement:
A. The value of the member’s priority setting determines the member’s priority in elections
B. The default value for the priority field is 3
C. The value of priority can be any floating point (i.e. decimal) number between 0 and 500
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The value of the member’s priority setting determines the member’s priority in elections
3. To modify priorities, you update the members _________ in the replica configuration object.
A. array
B. tag
C. mdimarray
D. all of the mentioned
Show Correct Answer
Correct Answer is :
array
4. The _________ shell method can force the current primary to step down, which causes an election.
A. rs.repliconfig()
B. rs.config()
C. rs.reconfig()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
rs.reconfig()
5. Point out the wrong statement :
A. Before an election the primary opens all open client connections
B. To block a member from seeking election as primary, assign it a priority of 0
C. Hidden members, delayed members, and arbiters all have priority set to 0
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Before an election the primary opens all open client connections
6. If the oplog is shorter than the slaveDelay window, the _______ member cannot successfully replicate operations.
A. hidden
B. delayed
C. priority
D. all of the mentioned
Show Correct Answer
Correct Answer is :
delayed
7. _________ members allow you to add additional members for read distribution beyond the maximum seven voting members.
A. Voting
B. Non-voting
C. Priority
D. all of the mentioned
Show Correct Answer
Correct Answer is :
Non-voting
8. Remove the secondary from the replica set by calling ___________ method.
A. rs.removeRepli()
B. rs.remove()
C. rs.removeset()
D. isMaster
Show Correct Answer
Correct Answer is :
rs.remove()
9. ______ returns basic help text for replica set functions.
A. rs.printSlaveReplicationInfo()
B. rs.printReplication()
C. rs.help()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
rs.help()
10. __________ prints a report of the status of the replica set from the perspective of the secondaries.
A. rs.printSlaveReplicationInfo()
B. rs.printReplication()
C. rs.help()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
rs.printSlaveReplicationInfo()
11. Which of the following pattern is best for static trees that do not change ?
A. Child
B. Parent
C. Root
D. None of the mentioned
Show Correct Answer
Correct Answer is :
None of the mentioned
12. Point out the correct statement :
A. $regex is used for regular expression pattern matches
B. $like is used for regular expression pattern matches
C. $reg is used for regular expression pattern matches
D. All of the mentioned
Show Correct Answer
Correct Answer is :
$regex is used for regular expression pattern matches
13. Which of the following operations are atomic on document level ?
A. update
B. remove
C. findAndModify
D. all of the mentioned
Show Correct Answer
Correct Answer is :
all of the mentioned
14. ___________ bulk indexes may be more efficient for some kinds of content and workloads in real time.
A. Synchronous
B. Asynchronous
C. Unique
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Asynchronous
15. Point out the correct statement :
A. An array with a large number of elements will incur greater indexing costs on insertion
B. An array with a large number of elements will incur smaller indexing costs on updates
C. An array with a small number of elements will incur greater indexing costs on insertion
D. None of the mentioned
Show Correct Answer
Correct Answer is :
An array with a large number of elements will incur greater indexing costs on insertion
16. ________ indexes can include any field whose value is a string or an array of string elements.
A. text
B. string
C. char
D. none of the mentioned
Show Correct Answer
Correct Answer is :
text
17. Which of the following is related to document that do not provide a way to weight results?
A. Stemming
B. Synonyms
C. Ranking
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Ranking
18. Which of the following is related to document that provide support for synonym or related queries in the application layer ?
A. Stemming
B. Synonyms
C. Ranking
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Synonyms
19. Which of the following is related to parsing of document for root ?
A. Stemming
B. Synonyms
C. Ranking
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Stemming
20. To add structures to your document to support keyword-based queries add the keywords as ______ in the array.
A. number
B. strings
C. character
D. none of the mentioned
Show Correct Answer
Correct Answer is :
strings
Similar Interview Questions
Search for latest jobs
Find Jobs