JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 38
MongoDB interview questions part 38
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the following will display complete list of available cursor flags ?
A. cursor.Option()
B. cursor.addOption()
C. cursor.addOptions()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cursor.addOption()
2. To describe the message structure, a ________ like struct is used.
A. Pascal
B. C++
C. C
D. Java
Show Correct Answer
Correct Answer is :
C
3. Point out the wrong statement :
A. The MongoDB Wire Protocol is a simple socket-based, request-response style protocol
B. For queries that include a sort operation without an index, the server must load all the documents in memory to perform the sort before returning any results
C. Clients communicate with the database server through a regular TCP/IP socket
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
4. ______________ specifies the number of documents to return in each batch of the response from the MongoDB instance.
A. cursor.batchSize(size)
B. cursor.Size(size)
C. cursor.batch(size)
D. all of the mentioned
Show Correct Answer
Correct Answer is :
cursor.batchSize(size)
5. The __________ method returns a document that includes a metrics field.
A. db.serverStats()
B. db.serverStatus()
C. db.status()
D. all of the mentioned
Show Correct Answer
Correct Answer is :
db.serverStatus()
6. ____________ is a client or database-generated identifier that uniquely identifies this message.
A. messageLength
B. responseTo
C. requestID
D. all of the mentioned
Show Correct Answer
Correct Answer is :
requestID
7. Which of the following operator is not very selective ?
A. $nine
B. $nin
C. $ain
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$nin
8. An index cannot cover a query on a _______ collection when run against a mongos if the index does not contain the shard key.
A. vertical
B. sharded
C. horizontal
D. none of the mentioned
Show Correct Answer
Correct Answer is :
sharded
9. The architecture of a replica set affects the set’s _________ and capability.
A. scalability
B. capacity
C. performance
D. all of the mentioned
Show Correct Answer
Correct Answer is :
capacity
10. Point out the wrong statement :
A. Even number of members ensures that the replica set is always able to elect a primary
B. Arbiters do not store a copy of the data and require fewer resources
C. You may run an arbiter on an application server or other shared process
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Even number of members ensures that the replica set is always able to elect a primary
11. The standard replica set deployment for production system is a ___-member replica set.
A. two
B. three
C. four
D. five
Show Correct Answer
Correct Answer is :
three
12. _________ for a replica set is the number of members that can become unavailable and still leave enough members in the set to elect a primary.
A. Fault tolerance
B. Reliability
C. Security
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Fault tolerance
13. Point out the correct statement :
A. Removing a member to the replica set does not always increase the fault tolerance
B. The secondary is the only member in the replica set that receives write operations
C. Fault tolerance is an effect of replica set size, but the relationship is not direct
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Fault tolerance is an effect of replica set size, but the relationship is not direct
14. Without a primary, a replica set cannot accept ________ operations.
A. read
B. write
C. read write
D. all of the mentioned
Show Correct Answer
Correct Answer is :
write
15. _________ member is used to support dedicated functions, such as backup or reporting.
A. Hidden
B. Primary
C. ViewState
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Hidden
16. To protect your data if your main data center fails, keep at least _______ member in an alternate data center.
A. one
B. two
C. three
D. none of the mentioned
Show Correct Answer
Correct Answer is :
one
17. What should be the priority of member to prevent them from becoming primary ?
A. 0
B. 1
C. 2
D. 3
Show Correct Answer
Correct Answer is :
0
18. _________ sets also allow the routing of read operations to specific machines.
A. Field
B. Read
C. Tag
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Tag
19. Replica sets provide high availability using automatic ________
A. failover
B. replication
C. failure
D. all of the mentioned
Show Correct Answer
Correct Answer is :
failover
20. Point out the wrong statement :
A. When the primary rejoins the set as a secondary, it reverts, or “rolls back,” its write operations to maintain database consistency with the other members
B. A rollback is necessary only if the primary had accepted write operations that the secondaries had not successfully replicated before the primary stepped down
C. MongoDB attempts for rollbacks, which should be rare
D. None of the mentioned
Show Correct Answer
Correct Answer is :
MongoDB attempts for rollbacks, which should be rare
Similar Interview Questions
Search for latest jobs
Find Jobs