JOBSEEKERS
Login
Sign Up
Jobseeker
Employer
Staffing Firm
Direct Client
MongoDB interview questions part 1
MongoDB interview questions part 1
Back
Take as many assements as you can to improve your validate your skill rating
Total Questions: 20
1. MongoDB is a__ type of database
A. SQL database
B. NoSQL database
C. Column database
D. Row database
Show Correct Answer
Correct Answer is :
NoSQL database
2. mongoimport command is used to:
A. import all the data from one database to another
B. import all the data from one collection to another
C. imports content from an Extended JSON, CSV, or TSV export created by mongoexport
D. import all the MongoDB data from one format to another
Show Correct Answer
Correct Answer is :
imports content from an Extended JSON, CSV, or TSV export created by mongoexport
3. Which of the following is the most important consideration while designing the schema for MongoDB?
A. The schema should match the data access and query patterns
B. The schema should be kept in 3NF similar to SQL schemas
C. The schema should focus on creating possible embedded documents
D. The schema should contain maximum indexes
Show Correct Answer
Correct Answer is :
The schema should match the data access and query patterns
4. Which option should be used to update all the documents with the specified condition in the MongoDB query?
A. updateAll instead of update
B. specify {multi : true} as the third parameter of update command
C. specify {all: true} as the third parameter of update command
D. specify {updateAll: true} as the third parameter of update command
Show Correct Answer
Correct Answer is :
specify {multi : true} as the third parameter of update command
5. You can implement a multi-document transaction in MongoDB using which of the following concept?
A. Tailable Cursor
B. Two Phase Commits
C. Compound Indexing
D. Multi Document Transaction is not supported by MongoDB
Show Correct Answer
Correct Answer is :
Two Phase Commits
6. If you create the user administrator before enabling access control, MongoDB disables the ________ exception.
A. localhost
B. server
C. runtime
D. none of the mentioned
Show Correct Answer
Correct Answer is :
localhost
7. Point out the correct statement :
A. After you create the user administrator, the localhost exception is no longer available
B. Enabling access control on a MongoDB instance restricts access to the instance by requiring that users identify themselves when connecting
C. The mongo shell executes a number of commands at start up
D. All of the mentioned
Show Correct Answer
Correct Answer is :
All of the mentioned
8. If you use the localhost exception when deploying a new MongoDB system, the first user you create must be in the ________ database.
A. head
B. local
C. admin
D. all of the mentioned
Show Correct Answer
Correct Answer is :
admin
9. If you need to disable access control for any reason, restart the process with ______ setting.
A. KeyFile
B. Authentication
C. Authorization
D. All of the mentioned
Show Correct Answer
Correct Answer is :
KeyFile
10. Point out the wrong statement :
A. Authentication does not require an authentication mechanism
B. To enable authentication on a sharded cluster, you must enable authentication individually on each component of the cluster
C. The content of the key file must be the same on all cluster members
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Authentication does not require an authentication mechanism
11. The ________ client authentication allows clients to authenticate to servers with certificates rather than with a username and password.
A. x.209
B. x.509
C. x.709
D. None of the mentioned
Show Correct Answer
Correct Answer is :
x.509
12. Which of the following allows user to view the information of any user in the given database?
A. createUser
B. viewUser
C. killCursors
D. all of the mentioned
Show Correct Answer
Correct Answer is :
viewUser
13. enableLocalhostAuthBypass is not available using _________ database command.
A. setParameter
B. enableParameter
C. removeParameter
D. none of the mentioned
Show Correct Answer
Correct Answer is :
setParameter
14. MongoDB’s _______ is a database profiling system that can help identify inefficient queries and operations.
A. Reporter
B. Executer
C. Profiler
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Profiler
15. ______________ enables a set of internal commands useful for internal testing operations.
A. enableTestAll
B. enableTest
C. enableTestCommands
D. all of the mentioned
Show Correct Answer
Correct Answer is :
enableTestCommands
16. ____________ are operations that process data records and return computed results.
A. ReplicaAgg
B. SumCalculation
C. Aggregations
D. None of the mentioned
Show Correct Answer
Correct Answer is :
Aggregations
17. Point out the wrong statement :
A. Map-reduce cannot have a finalize stage to make final modifications to the result
B. Map-reduce is less efficient and more complex than the aggregation pipeline
C. Specifically, a user with the userAdmin role can grant itself any privilege in the database
D. All of the mentioned
Show Correct Answer
Correct Answer is :
Map-reduce cannot have a finalize stage to make final modifications to the result
18. Running data aggregation on the ________ instance simplifies application code and limits resource requirements.
A. document
B. mongod
C. mongos
D. all of the mentioned
Show Correct Answer
Correct Answer is :
mongod
19. Documents enter a multi-stage __________ that transforms the documents into an aggregated result.
A. pipeline
B. pipelineView
C. pipelineUser
D. all of the mentioned
Show Correct Answer
Correct Answer is :
pipeline
20. The most basic pipeline stages provide __________ that operate like queries.
A. methods
B. filters
C. stored procedure
D. none of the mentioned
Show Correct Answer
Correct Answer is :
filters
Similar Interview Questions
Search for latest jobs
Find Jobs