MongoDB/MongoDB Mcq Question Set 4 Sample Test,Sample questions

Question:
 A query _______ consists of a combination of query, sort, and projection specifications.

1.plan

2.shape

3.stats

4.All of the Mentioned


Question:
 A _____ data model with embedded data combines all related data for a represented entity in a single document.

1.normalized

2.denormalized

3.non relational

4.relational


Question:
 Point out the correct statement.

1.An equality match on the unique _id field is less selective as it can match at most one document

2. The selectivity of regular expressions depends on the expressions themselves

3.Less selective queries can use indexes effectively or even at all

4. All of the mentioned


Question:
 The _________ References pattern stores each tree node in array the id(s) of the node’s children.

1.Child

2.Parent

3.Root

4. none of the mentioned


Question:
 Which of the following field allows efficient retrieval of chunks?

1.n

2.name

3.object

4.2n


Question:
 Which of the following is used to avoid the repetition of data in MongoDB schema?

1.DeReferences

2. References

3. Cursor

4.Collectors


Question:
A ________ query plan has returned a threshold number of matching results.

1.execution

2. unordered

3.ordered

4.None of the mentioned


Question:
Capped collections provide __________ management of inserted documents in MongoDB.

1.FIFO

2.LIFO

3.LRU

4.MRU


Question:
Each index in MongoDB requires at least _________ of data space.

1.8KB

2.28KB

3. 68KB

4.108KB


Question:
Embedded data model is used when you have _________ relationships between entities.

1.contains

2. isa

3.inheritance

4.All of the Mentioned


Question:
For the __________ storage engine, if the document size exceeds the allocated space for that document, MongoDB relocates the document on disk.

1.MAPv1

2.MAPv2

3.MAPv3

4. MAPv4


Question:
How many does collections GridFS use to store files?

1.1

2.2

3.3

4.4


Question:
If the address data is frequently retrieved with the name information, how will you modify the following schema representing one to one relationship with referencing?

{
   _id: "joe",
   name: "Joe Bookreader"
}

{
   patron_id: "joe",
   street: "123 Fake Street",
   city: "Faketon",
   state: "MA",
   zip: "12345"
}

1. { _id: "joe", name: "Joe Bookreader", address: { street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345"

2. { _id: "joe", name: "Joe Bookreader", address-> { street: "123 Fake Street", city: "Faketon", state: &quo

3. { _id: "joe", name: "Joe Bookreader", address:: { street: "123 Fake Street", city: "Faketon", state: "M

4.All of the Mentioned


Question:
In MongoDB, write operations are atomic at the __________ level.

1.collection

2.document

3.row

4. All of the mentioned


Question:
MongoDB using the mmapv1 storage engine has limits on the number of ____

1.namespaces

2.collections

3.documents

4.None of the mentioned


Question:
Normalized data models describe relationships using ___________ between documents.

1.relativeness

2. references

3. evaluation

4.None of the mentioned


Question:
Point out the correct statement.

1.One-to-One Relationships with embedded documents presents a data model that uses embedded documents to describe one-to-one relationships between connected data

2.One-to-One Relationships with document references presents a data model that uses embedded documents to describe one-to-one relationships between connected data

3.One-to-Many Relationships with embedded documents presents a data model that uses embedded documents to describe one-to-one relationships between connected data

4. All of the mentioned


Question:
Point out the correct statement.

1.The query to retrieve the parent of a node is fast and straightforward

2.The query to retrieve the parent of a node is slow and straightforward

3.The query to retrieve the parent of a node is slow and complex

4.All of the Mentioned


Question:
Point out the correct statement.

1. In practice, the documents in a collection share a different structure

2. Data in MongoDB has a flexible schema

3.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

4.None of the mentioned


Question:
Point out the correct statement.

1.With MongoDB, you cannot embed related data in a single structure or document

2.The key consideration for the structure of your documents is the decision to embed or to use references

3. Reference schema is generally known as “denormalized” models

4.None of the mentioned


Question:
Point out the wrong statement.

1.Client libraries provide a convenient, injection free, process to build these objects

2.MongoDB represents queries as BSON objects

3. Field names in MongoDB’s query language have semantic meaning

4.All of the Mentioned


Question:
Point out the wrong statement.

1.Decisions that affect how you model data can affect application performance and database capacity

2.Collections do enforce document structure

3.Data in MongoDB has a flexible schema

4.None of the mentioned


Question:
Point out the wrong statement.

1.You cannot query for a node in the children field to find its parent node only

2.You can query for a node in the children field to find its parent node as well as its siblings

3.You can query for a node in the children field to find its siblings only

4.None of the mentioned


Question:
Point out the wrong statement.

1.The key decision in designing data models for MongoDB applications revolves around the structure of documents and how the application represents relationships between data

2.There are two tools that allow applications to represent these relationships: references and embedded documents

3.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

4.All of the Mentioned


Question:
Point out the wrong statement.

1.Embedded data models make it possible to update related data in a single atomic write operation

2. Embedding related data in documents may lead to situations where documents grow after creation

3. With the MMAPv1 storage engine, document growth can impact write performance and lead to data fragmentation

4.All of the Mentioned


Question:
Point out the wrong statement.

1.By default GridFS limits chunk size to 255k

2.GridFS is useful only for storing files that exceed 16MB

3.When you query a GridFS store for a file, the driver or client will reassemble the chunks as needed

4.All of the Mentioned


Question:
The default chunk size is changed from 256k to 255k in which version?

1. 3.0

2. 2.4.9

3.2.4.10

4. none of the mentioned


Question:
The files_id field contains the _id of the chunk’s __________ document.

1.parent

2.child

3.top

4.None of the mentioned


Question:
The update() method uses the _______ command, which uses the default write concern.

1.find

2.read

3. update

4.modify


Question:
The ________ Links pattern provides a simple solution to tree storage but requires multiple queries to retrieve subtrees.

1.Child

2. Parent

3.Root

4.All of the Mentioned


Question:
The ________ message is used to update a document in a collection.

1. UPDATE

2. OP_UPDATE

3.OP_UPDATES

4.All of the Mentioned


Question:
The ________ References pattern stores each tree node in a document; in addition to the tree node, the document stores the id of the node’s parent.

1. Child

2. Parent

3.Root

4.None of the mentioned


Question:
The __________ feature of collections expires documents after a period of time.

1.TEL

2.TTL

3.TPL

4.None of the mentioned


Question:
The ___________ JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.

1.mongod

2.mongo

3. json

4. none of the mentioned


Question:
To get the current number of namespaces in the mongo shell, use ______

1.db.system.namespaces.countc()

2.db.system.namespaces.count(*)

3. db.system.namespaces.count()

4.All of the Mentioned


Question:
To interact with embedded documents, use ___________ notation to “reach into” embedded documents.

1.period

2.dot

3.comma

4.colon


Question:
Which of the collection in GridFS stores the binary chunks?

1.chunks

2.files

3.data

4. log


Question:
Which of the following checks and repairs errors and inconsistencies in data storage?

1.repairDatabase

2.repairedDatabase

3.recoverDatabase

4.All of the Mentioned


Question:
Which of the following relationship uses references to describe documents between connected data?

1. One-to-One Relationships with Embedded Documents

2.One-to-Many Relationships with Embedded Documents

3.One-to-Many Relationships with Document References

4.None of the mentioned


Question:
Which of the following statement is incorrect about documents in MongoDB?

1.The field names cannot start with the dollar sign ($) character

2.The field names cannot contain the dot (.) character

3.The field names cannot contain the null character

4.None of the mentioned


Question:
With MongoDB 3.0.0, the default use of the Power of _________ Allocations minimizes the occurrences of re-allocations as well as allows for the effective reuse of the freed record space.

1.2 Sized

2.3 Sized

3. 4 Sized

4.5 Sized


Question:
___ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.

1.modify()

2.update()

3.find()

4.None of the mentioned


Question:
____ define what records to select for read, update, and delete operations.

1.Query optimizer

2. Query selector

3.Update definitions

4. All of the mentioned


Question:
____ is used to view statistics about the query plan for a given query.

1.db.explain()

2.cursor.explain()

3. cursor.explainstats()

4.All of the Mentioned


Question:
____ store the relationships between data by including links or references from one document to another.

1.Capped

2. Embedded

3. External

4.References


Question:
_____ is the _id is of the data type chosen for the original document in files collections.

1.files._id

2. file._id

3.fileobj._id

4. none of the mentioned


Question:
______ data models allow applications to store related pieces of information in the same database record.

1.Reference

2.Embedded

3. External

4.None of the mentioned


Question:
______ documents capture relationships between data by storing related data in a single document structure.

1.Capped

2. Embedded

3.External

4.Internal


Question:
______ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.

1.DataFS

2.GridFS

3.ReadFS

4.None of the mentioned


Question:
______ strategy is used to explicitly avoid document growth.

1.deallocation

2.allocation

3.pre-allocation

4. none of the mentioned


More MCQS

  1. MongoDB Mcq Question Set 1
  2. MongoDB Mcq Question Set 2
  3. MongoDB Mcq Question Set 3
  4. MongoDB Mcq Question Set 4
  5. MongoDB Mcq Question Set 5
  6. MongoDB Mcq Question Set 6
  7. MongoDB Mcq Question Set 7
  8. MongoDB Mcq Question Set 8
  9. MongoDB Mcq Question Set 9
  10. MongoDB Mcq Question Set 10
  11. MongoDB Mcq Question Set 11
  12. MongoDB Mcq Question Set 12
  13. MongoDB Mcq Question Set 13
  14. MongoDB Mcq Question Set 14
  15. MongoDB Mcq Question Set 15
  16. MongoDB Mcq Question Set 16
  17. MongoDB Mcq Question Set 17
  18. MongoDB Mcq Question Set 18
  19. MongoDB Mcq Question Set 19
  20. MongoDB Mcq Question Set 20
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!