Test Online Free MongoDB C100DEV Exam Questions and Answers
Practice a live sample before buying full access. This page keeps the free C100DEV question set organized by page so visitors and search engines can reach the canonical -questions.html URL directly.
Use case: e-learning platform
Which of the following scenarios is the best candidate to use the Extended Reference Pattern to avoid additional reads by joins/lookups?
Given a movies collection where each document has the following structure:
{
_id: ObjectId("573a1390f29313caabcd60e4"),
genres: [ 'Short', 'Comedy', 'Drama' ],
title: 'The Immigrant',
year: 1917,
imdb: { rating: 7.8, votes: 4680, id: 8133 },
countries: [ 'USA' ]
}
Which of the following queries will find all movies that do not contain the Comedy and Romance genres?
Given a movies collection where each document has the following structure:
{
_id: ObjectId('573a1390f29313caabcd60e4'),
genres: [ 'Short', 'Comedy', 'Drama' ],
title: 'The Immigrant',
year: 1917,
imdb: { rating: 7.8, votes: 4680, id: 8133 },
countries: [ 'USA' ]
}
Which of the following queries will find all movies that were made in 2000 or 2010?
Assign typical operational tasks to the Data Scientist.
Answer:
Question 44Selectable Answer
Suppose we have a shipwrecks collection with the following document structure:
{
_id: ObjectId("578f6fa2df35c7fbdbaed8ce"),
feature_type: 'Wrecks - Visible',
watlev: 'always dry',
coordinates: [ -79.9469681, 9.3729954 ]
}
You ran the command below:
db.shipwrecks.getIndexes()
And you got the following output:
[
{ v: 2, key: { _id: 1 }, name: '_id_' },
{
v: 2,
key: { coordinates: '2dsphere' },
name: 'coordinates_2dsphere',
'2dsphereIndexVersion': 3
}
]
How can you remove the geospatial index on the coordinates field?
Given a movies collection where each document has the following structure:
{
_id: ObjectId('573a1390f29313caabcd60e4'),
genres: [ 'Short', 'Comedy', 'Drama' ],
title: 'The Immigrant',
year: 1917,
imdb: { rating: 7.8, votes: 4680, id: 8133 },
countries: [ 'USA' ]
}
Which of the following queries will find all the movies that have more votes than the year in which they were released?