Uploaded by Sanwar LaL Modi

Lesson 1 Introduction to MongoDB Atlas, the Developer Data Platform

advertisement
Which of the following is something that you can do with MongoDB Atlas? (Select all that apply.)
a.
b.
c.
d.
e.
Store your data with MongoDB's multi-cloud, global service.
Add search functionality to your application, like a search bar.
Write and host a full application in a managed cloud environment.
Query across multiple Atlas clusters to get a holistic view of your data.
None of the above.
Which of the following statements are true about MongoDB Atlas Clusters? (Select all that apply.)
A. A
MongoDB Atlas Cluster is a group of servers that are
connected via a network that hold copies of your data.
B. Once
you set up and configure your MongoDB Atlas Cluster, you
cannot make any changes to cloud-provider, region, or cluster
tier.
C. MongoDB
Atlas Clusters can be deployed globally in a single
geographical region or across multiple geographical regions,
depending on the cluster tier.
D. Dedicated
clusters provide access to all Atlas features.
E. None of the above.
What is the default name assigned to your first Project in your Atlas
account? (Select one.)
a. Project 0
correct
b. I don't have a Project in my Atlas account.
What is the Data Size of your new Atlas cluster, Cluster0? (Select one.)
a. 0.0 correct
b. I don't see Cluster0 in my dashboard.
Select the sample_analytics database and the accounts collection. Copy the following
into your Filter Bar and select Apply:
{account_id: 674364}
Select the products array field of the document that appears in Data Explorer after this
filter is applied. Which of the following appears in the products array? (Select one.)
a.
b.
c.
d.
"Derivatives"
"InvestmentStock"
"CurrencyService"
"Commodity"
correct
What is the relationship between the MongoDB database and MongoDB Atlas?
(Select one.)
a. The MongoDB database is the locally deployed version of
MongoDB Atlas.
b. The MongoDB database is a core element of MongoDB Atlas,
which is a multi-cloud developer data platform. correct
c. The MongoDB database is the free version of MongoDB Atlas.
Jenni works at an e-commerce start-up that uses MongoDB for its customer data
managament, product catalog and payment processing. Her startup now wants to add
personalized recommendations for customers using real-time analytics. Jenni and her
team will need to move data to a separate analytics database to handle this new use
case.
a. True
b. False correct
Which of the following are data types that are supported by MongoDB by using
BSON? (Select all that apply.)
a.
b.
c.
d.
e.
f.
32-bit integer correct
Object correct
Array correct
ObjectId correct
_id
All of the above.
What is the basic unit of data in MongoDB? (Select one.)
a.
b.
c.
d.
Collection
Database
Document correct
Row
Which of the following are databases in your MongoDB Atlas cluster? (Select all that
apply.)
a.
b.
c.
d.
sample_supplies correct
sample_analytics correct
sales
sample_music
Which of the following are collections in the sample_analytics database? (Select all
that apply.)
a. accounts correct
b. companies
c. customers correct
d. Transactions correct
What is the current Documents Size of the library database? (Select one.)
a. 0B correct
b. 4KB
c. 8KB
How many collections now exist in the library database? (Select one.)
a. 0
b. 1
c. 2 correct
Which of the following statements are true about the _id field in MongoDB? (Select
all that apply.)
a. The user must specify the _id field for each inserted document.
b. The _id field is required for each document. correct
c. The _id field must be unique. correct
D. The _id field is automatically included and populated with an
ObjectId if the _id field is omitted in an inserted document.
Correct
Use the following documents labeled Document A and Document B to answer this
question.
Elena's company has been storing customer data in records that are structured like
Document A. Her company wants to add a new field to their customer records so that
they are structured like Document B. Before inserting records like Document B, Elena
and her team must update all older records to include the new field.
Document A
{
"username": "vreddy",
"name": "Vasanti Reddy",
"email": "vreddy1@gmail.com",
"location": {
"city": "Delhi",
"country": "India"
}
}
Document B
{
"username": "avasa",
"name": "Asad Vasa",
"email": "avasa1@yahoo.com",
"social_media": {
"Twitter": "avasa",
"Instagram": "Asad101",
"LinkedIn": "AsadVasa"
},
"location": {
"city": "Los Angeles",
"country": "United States"
}
}
a. True
b. False Correct
Which of the pre-formatted connection strings are available in the Atlas dashboard?
Select all that apply.
a.
b.
c.
d.
Connect
Connect
Connect
Connect
with the MongoDB Shell Correct
your application Correct
using MongoDB Compass Correct
with MongoDB Charts
Which REPL environment does the MongoDB Shell use? (Select one.)
a.
b.
c.
d.
Python
Node Correct
Bash
Perl
After you've installed mongosh, run mongosh -help in your terminal. Select all of the
options that appear in the terminal from the following list: (Select all that apply.)
a.
b.
c.
d.
--help Correct
--container
--host Correct
--file Correct
Open MongoDB Compass on your computer. From the following list, select all of the
tabs that appear in the Compass UI: (Select all that apply.)
a.
b.
c.
d.
Clusters
My Queries Correct
Performance Correct
Databases Correct
Which of the following describes MongoDB Compass? (Select one.)
a. A Node.js REPL environment that is used to interact with the
database
b. A data visualization tool that allows you to create and
embed visualizations in your application
c. A tool that allows you to query, transform, and move data
across Amazon S3 and Atlas clusters
d. A graphical user interface (GUI) for querying, aggregating,
and analyzing data in MongoDB Correct
What does a MongoDB driver do? (Select one.)
a. Executes an aggregation pipeline
b. Connects MongoDB to applications via programming languages
Correct
c. Controls replication and sharding across servers
d. Creates different types of charts of our data
Visit the official MongoDB driver documentation. Which of the following languages
have drivers that are supported by MongoDB? (Select all that apply.)
a. C# Correct
b. Go Correct
c. Node Correct
d. Pascal
How can you fix the following error? (Select one.)
MongoServerSelectionError: connection
34.239.188.169:27017 closed
<monitor> to
a. Update database access with the correct user credentials.
b. Add your IP address in the Network Access panel in Atlas.Correct
C. Create a new database on your Atlas cluster.
How can we fix the following error? (Select all that apply.)
MongoServerError: bad auth : Authentication failed.
a. Check that you are connecting to the correct database deployment.
b. Update your IP address in the Network Access panel.
c. Check that your username and password are spelled correctly in
your connection string.
Download