MongoDB
The Collections screen displays for each collection in the selected database (select two)
1. Collection name 2. Number of documents in the collection
Which of the following statements are true about the mongo shell? (Multiple)
1. It is a fully functioning JavaScript interpreter 2. It allows you to interact with your MongoDB instance without using a Graphical User Interface
Which of the following format is supported by MongoDB? :(select two):
1. JSON 2.BSON
Point out the wrong statement. (select two)
1. MongoDB does not represent queries as BSON objects 2. Client libraries provide a convenient, injection free, process to build these objects
Point out the wrong statement. (select two)
1. MongoDB does not represent queries as BSON objects 2.Client libraries provide a convenient, injection free, process to build these objects
Select the statements that together help build the most complete definition of the MongoDB database: Check all answers that apply.
1. The MongoDB database is an organized way to store and access data 2. MongoDB is a NoSQL database that uses documents to store data in an organized way.
A collection and a document in MongoDB is equivalent to concepts respectively, (select two):
1. row 2.table
Which port does MongoDB use?:
27017
MongoDB documents of a similar type are grouped into .....
A collection
Which use case would be a poor choice for a document type NoSQL database?
Aggregate-oriented design
Working with MongoDB is easy because ......
It allows you to focus on what data you are writing and how you are going to read it
Working with MongoDB is easy because
It allows you to focus on what data you are writing and how you are going to read it.
What does "it" do in the mongo shell?
Iterates through the cursor results
Which category of NoSQL databases is it recommended not to shard data on?
Key-Value NoSQL databases
What are the four main categories of NoSQL databases?
Key-Value, Document, Column, Graph
The "Many Sources One View" use case of MongoDB suggests that .....
MongoDB can ingest different types of data from different sources and consolidate it into one view for all data.
MongoDB is schemaless. What does that mean?
MongoDB does not require that you create the schema and the table structures before writing the data.
Which of the following commands will add a collection that is stored in animals.json to an Atlas cluster?
Mongoimport
MongoDB uses...
NOSQL
Database names can contain any of the following characters: "$*<>:?
No
'NoSQL' stands for ....
Not only SQL
A query may include a .... that specifies the fields from matching documents to return (choose multiple or one)
Projection
What is a characteristic of column-based NoSQL databases?
Rows in column families can share all, a subset, or none of the columns
What may be the most common reason to use a NoSQL database?
Scalability
To run MongoDB, you need to run..?:
The Compass program
What does it mean when we say that MongoDB follows a code-first approach?
There are no complex table definitions so you can start writing your first data as soon as you connect to your MongoDB
What is the most common trait among all NoSQL databases?
They are all document-based
What makes Key-Value NoSQL databases powerful for basic CRUD operations?
They are represented as a hashmap
What makes Key-Value NoSQL databases powerful for basic CRUD operations?
They are represented as a hashmap.
Where is the database created correctly?:
Use db_name
MongoDb stores all document in
collections
Write a command to add a new entry to the "articles" collection. The record should consist of the following properties: Name: "New entry", Author: "Admin", views: 50, anons: "Announcement text" PS: Do not change the order of adding data.
db.articles.insertOne({ Name: "New entry", Author: "Admin", Views: 50, Anons: "Announcement text" })
Write command to delete all data from "rest" collection
db.rest.deleteMany({})
The MongoDB collection consists of ....
documents
True or False: MongoDB follows a code-first approach, which means you can start writing your data as soon as you connect to the database.
false
True or False: MongoDB can ingest multiple shapes and formats of data from different sources.
true
What method is used to select a database in MongoDB?:
use
In MongoDB how does a document relate to a collection?
Collections consist of one or many documents
In MongoDB how does a document relate to a collection?
Collections consist of one or many documents.
How is data stored in a MongoDB database?
Data is stored in documents
What is the name of the fully managed service model that many NoSQL databases now leverage?
Database-as-a-service (DBaaS)
Write the command to delete the "items" collection.
Db.items.drop()
Where is the collection deleted correctly?:
Db.some.drop()
What is the document?
Document is the equivalent to rows in RDBMS
Which category of NoSQL databases is it recommended not to shard data on?
Document-based NoSQL databases
In a MongoDB Document what is the role of fields and values? Check all answers that apply.
Each field has a value associated with it
How is MongoDB Atlas related to MongoDB the Database?
Atlas has many tools and services within it that are built specifically for the MongoDB Database
How is MongoDB Atlas related to MongoDB the Database?
Atlas has many tools and services within it that are built specifically for the MongoDB Database.
What is the BSON?
BSON is a binary representation of JSON documents
What is the collection?
Collection is a grouping of documents in MongoDb.
In MongoDB how does a document relate to a collection?
Collections are tables of documents and other collections