MongoDB Test 1

0%

What type of database is MongoDB?

Correct! Wrong!

Explanation:
MongoDB, for example, is a document-oriented database that may be used on a variety of systems. According to its classification, MongoDB is a NoSQL database application that employs JSON-like documents with optional schemas.

_____ is the default query document for find().

Correct! Wrong!

Explanation:
For find(), the default query document is {}

The command to get a backup of a point-in-time data view is ____.

Correct! Wrong!

Explanation:
fsync
Forces the mongod process to flush all pending writes from the storage layer to disk and locks the whole mongod instance until the user releases the lock with a fsyncUnlock. If you want to capture backups, you can use fsync to lock the mongod instance and halt write operations.

MongoDB adds a specific key to each document in a collection called _____ .

Correct! Wrong!

Explanation:
The main key for the collection in MongoDB is the _id field, which allows each document in the collection to be uniquely identified. A unique ObjectID value is stored in the _id field.

In a wrapped query, ______ is a useful option that sets the maximum number of documents to verify for a given query.

Correct! Wrong!

Explanation:
The maxScan option is specified via the maxScan() method. When the MongoDB server conducts a scan operation, this option instructs it to specify a maximum limit for scanning documents.

______ is the mongo shell command that lists database names.

Correct! Wrong!

Explanation:
To see a list of databases that are already in MongoDB, use the show dbs command

MongoDB's default listening port is _____ .

Correct! Wrong!

Explanation:
A MongoDB Server instance must start listening on a port when it is started on a system. The port number 27017 is used by default for mongod and mongos instances.

In MongoDB, a collection and a document are identical to which of the SQL concepts?

Correct! Wrong!

Explanation:
In MongoDB, a collection and a document are comparable to Table and Row concepts

In JavaScript, the data structure representation of a document is ____ .

Correct! Wrong!

Explanation:
The Document Object Model (DOM) is the data representation of the objects that compose the structure and content of a document on the web.