R4RIN
Articles
Java 8
MCQS
MongoDB MCQ Quiz Hub
MongoDB Mcq Question Set 5
Choose a topic to test your knowledge and improve your MongoDB skills
1. _____ store the relationships between data by including links or references from one document to another.
Capped
Embedded
External
References
2. Point out the correct statement.
In practice, the documents in a collection share a different structure
Data in MongoDB has a flexible schema
The key challenge in data modeling is balancing the needs of the application, the performance characteristics of the database engine, and the data retrieval patterns
None of the mentioned
3. _________ documents capture relationships between data by storing related data in a single document structure.
Capped
Embedded
External
Internal
4. Point out the wrong statement.
he key decision in designing data models for MongoDB applications revolves around the structure of documents and how the application represents relationships between data
There are two tools that allow applications to represent these relationships: references and embedded documents
When designing data models, always consider the application usage of the data (i.e. queries, updates, and processing of the data) as well as the inherent structure of the data itself
All of the Mentioned
5. A ____________ data model with embedded data combines all related data for a represented entity in a single document.
normalized
denormalized
non relational
relational
6. _____ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.
FSpec
GridFS
Grid
None of the mentioned
7. Point out the correct statement.
GridFS uses two collections to store files
You cannot perform range queries on files stored through GridFS
Applications that handle temporal and spatial data often require capturing fractional units of currency
All of the mentioned
8. By default GridFS limits chunk size to ______ k.
225
255
256
None of the mentioned
9. When you query a GridFS store for a file, the _______ will reassemble the chunks as needed.
client
Server
Agent
None of the mentioned
10. Point out the wrong statement.
Chunks in the context of GridFS is related to the use of the term chunks in the context of sharding
The default chunk size changed from 256k to 255k
If you need to query the database for exact, mathematically valid matches, use Ambiguity Precision
None of the mentioned
11. MongoDB represents queries as ___________ objects.
BSON
JSON
GSON
none of the mentioned
12. Each document in the __________ collection represents a distinct chunk of a file as represented in the GridFS store.
chunks
files
bson
none of the mentioned
13. GridFS uses a _________ index on the chunks collection for the files_id and n fields.
unique
single
non unique
None of the mentioned
14. The ___ field contains the sequence number of the chunk.
x
array
field
none of the above
15. The GridFS index allows efficient retrieval of __________ using the files_id and n values.
chunks
files
bson
None of the mentioned
16. ____ is a binary serialization format used to store documents and make remote procedure calls in MongoDB.
BSON
GridFS
JSON
None of the mentioned
17. Point out the correct statement.
ObjectIds are small, likely unique, fast to generate, and ordered
ObjectIds are large, likely unique, and ordered
ObjectIds values consists of 18-byte
All of the Mentioned
18. Which of the following data type is depreciated?
Double
String
Object
Undefined
19. Each data type has a corresponding number that can be used with the _______ operator to query documents by BSON type.
$type
$server
$agent
None of the mentioned
20. Point out the wrong statement.
BSON Date is a 32-bit integer that represents the number of milliseconds
The BSON timestamp type is for internal MongoDB use
If you need to query the database for exact, mathematically valid matches, use Ambiguity Precision
None of the mentioned
21. There is _________ byte counter in BSON, starting with a random value.
2
3
4
None of the mentioned
22. In the mongo shell, you can access the creation time of the ObjectId, using the ______ method.
getTime()
getTimestamp()
Timestamp()
None of the mentioned
23. Object_Id is similar to _________ key in Relational Databases.
primary
secondary
composite
All of the Mentioned
24. Which of the field is reserved for use as a primary key?
_id
_uid
_uuid
All of the Mentioned
25. Point out the wrong statement.
The field names cannot start with the dollar sign ($) character
The field names cannot contain the dot (.) character
The field names cannot contain the null character
None of the mentioned
26. To ensure functioning replication, do not store values that are of the _______ regular expression type in the _id field.
JSON
XML
JScript
None of the mentioned
27. The ______ field is always the first field in the document.
_id
id
Ob_id
None of the mentioned
28. ____ returns the JavaScript representation in the form of a string literal.
toStringJava()
toString()
String()
none of the mentioned
29. Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument?
x = ObjectIdAdd()
x = addObjectId()
x = ObjectId()
None of the mentioned
30. The __________ JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.
mongod
mongo
iscript
none of the mentioned
31. Point out the correct statement.
MongoDB stores chunks on disk in the XML serialization format
MongoDB stores documents on disk in the BSON serialization format
MongoDB stores documents on RAM in the JSON serialization format
All of the Mentioned
32. BSON is a binary representation of ________ documents.
JSON
XML
JScript
All of the Mentioned
33. MongoDB documents are composed of field-and-value pairs and have the following structure?
field1:; value1
Field1: value1;
field1: value1
None of the mentioned
34. Point out the wrong statement.
Some documents created by internal MongoDB processes may have duplicate fields
no MongoDB process will ever add duplicate fields to an existing user document
The maximum BSON document size is 16 megabytes
None of the mentioned
35. To store documents larger than the maximum size, MongoDB provides the _______ API.
Grid
MMS
GridFS
none of the mentioned
36. Index keys that are of the _______ type are more efficiently stored in the index.
Materialized Paths
BinData
String
None of the mentioned
37. MongoDB uses the ________ notation to access the elements of an array and to access the fields of an embedded document.
Dot
Array
Nested Sets
None of the mentioned
38. Which of the following data structures are documents in MongoDB?
All database records
Query selectors
Update definitions
All of the mentioned
39. Point out the correct statement.
Update definitions define what fields to modify during an update
Query specifications, which define what fields to index
Index selectors, which define what records to select for read, update, and delete operations
All of the mentioned
40. An application communicates with MongoDB by way of a client library, called ____
Driver
Parent
Rank
None of the mentioned
41. User-defined indexes on multiple fields is called ______
composite index
secondary index
compound index
None of the mentioned
42. If your driver has a version number of 2.9.1, What is the major version?
1
2
9
None of the mentioned
43. Updates that include _________ of field names may result in the reordering of fields in the document.
Renaming
Joining
Nesting
None of the mentioned
44. The $rename operator logically performs a _______ of both the old name and the new name.
$unset
$set
$Nested
None of the mentioned
45. To get a correct snapshot of a running mongod process, you must have _________ enabled.
journaling
replication
MMS
All of the Mentioned
46. Point out the correct statement.
Journal must reside on the same logical volume as the other MongoDB data files
To get a consistent snapshot of a sharded system, you must disable the balancer
Backups produced by copying the underlying data do not support point in time recovery
All of the Mentioned
47. The _______ tool reads data from a MongoDB database and creates high fidelity BSON files.
mdump
mongodump
mongod
All of the Mentioned
48. If your storage system does not support snapshots, you can copy the files directly using _____
cp
copy
snap
None of the mentioned
49. Point out the wrong statement.
MongoDB Cloud Manager Backup offers point in time recovery of MongoDB replica sets
MongoDB Cloud Manager continually backs up MongoDB replica sets
MMS achieves point in time recovery by storing oplog data
none of the mentioned
50. The _________ tool can populate a MongoDB database with the data from these BSON files.
mongostore
mongorestore
mongod
None of the mentioned
Submit