JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 47
MongoDB interview questions part 47
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. Which of the operator is similar to order by clause in RDBMS ?
A. $sort
B. $match
C. $sortby
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$sort
2. Which of the following provides similar functionality to join ?
A. $unwindelem
B. $unwind
C. $unwin
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$unwin
3. Point out the wrong statement :
A. CURRENT references the start of the field path being processed in the aggregation pipeline stage
B. All stages start with CURRENT the same as ROOT
C. DESCENDING is one of the allowed results of a $let expression
D. None of the mentioned
Show Correct Answer
Correct Answer is :
DESCENDING is one of the allowed results of a $let expression
4. ________ limits the number of documents in result set
A. $project
B. $geo
C. $limit
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$limit
5. Which of the following is used to retrieve like SELECT clause in SQL?
A. $reduce
B. $select
C. $project
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$project
6. _______ groups documents by some specified expression and outputs to the next stage a document for each distinct grouping.
A. $setcon
B. $group
C. $match
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$group
7. ____________ works similar to HAVING clause in SQL
A. $setcon
B. $group
C. $match
D. None of the mentioned
Show Correct Answer
Correct Answer is :
$match
8. COUNT function is provided by _________ in MongoDB.
A. $end
B. $sum
C. $max
D. All of the mentioned
Show Correct Answer
Correct Answer is :
$sum
9. MongoDB stores additional instance-local metadata in the _______ database.
A. Master
B. Model
C. Local
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Local
10. Point out the correct statement :
A. You can limit the number of incoming connections using the maxConnections run-time option
B. mongos instances maintain a connection pool to each shard so that the mongos can reuse connections
C. You can use the limit command at the system prompt to check system limits
D. All of the mentioned
Show Correct Answer
Correct Answer is :
mongos instances maintain a connection pool to each shard so that the mongos can reuse connections
11. The ___________ collection stores custom roles that administrators create and assign to users to provide access to specific resources.
A. admin.system.role
B. admin.system.roles
C. admin.system.roleasign
D. all of the mentioned
Show Correct Answer
Correct Answer is :
admin.system.roles
12. The ___________ collection stores the user’s authentication credentials as well as any roles assigned to the user
A. admin.system.auth
B. admin.system.users
C. admin.system.usersauth
D. all of the mentioned
Show Correct Answer
Correct Answer is :
admin.system.users
13. Point out the wrong statement :
A. The “hard” ulimit refers to the maximum number of processes that a user can have active at any time
B. The “soft” ulimit refers to the minimum number of processes that a user can have active at any time
C. ulimit will modify both “hard” and “soft” values unless the -H or -S modifiers are specified when modifying limit values
D. None of the mentioned
Show Correct Answer
Correct Answer is :
The “soft” ulimit refers to the minimum number of processes that a user can have active at any time
14. The .system.indexes collection lists all the _________ in the database
A. serverinfo
B. indexes
C. profiling
D. all of the mentioned
Show Correct Answer
Correct Answer is :
indexes
15. Which of the following The collection holds special JavaScript code for use in server side JavaScript ?
A.
.system.jserver
B.
.system.jscript
C.
.system.js
D. none of the mentioned
Show Correct Answer
Correct Answer is :
.system.js
16. Which of the following can store JavaScript functions for reuse ?
A. store.js
B. system.js
C. system.store.js
D. save.js
Show Correct Answer
Correct Answer is :
system.js
17. ______ is used to load all the scripts saved in the system.js collection for the current database.
A. db.loadServerScripts()
B. db.loadScripts()
C. db.loadServerScriptsjs()
D. none of the mentioned
Show Correct Answer
Correct Answer is :
db.loadServerScripts()
18. In replica sets, each ________ maintains a connection to all other members of the set.
A. serverInfo
B. mongod
C. mongos
D. none of the mentioned
Show Correct Answer
Correct Answer is :
mongod
19. When creating a text index on multiple fields, you can specify the individual fields or you can use wildcard specifier ______
A. ($*)
B. (**$**)
C. ($**)
D. None of the mentioned
Show Correct Answer
Correct Answer is :
($**)
20. When creating a text index on multiple fields, you can specify the individual fields or you can use wildcard specifier ______
A. ($*)
B. (**$**)
C. ($**)
D. None of the mentioned
Show Correct Answer
Correct Answer is :
($**)
Similar Interview Questions
Search for latest jobs
Find Jobs