
Best Way To Study For MongoDB C100DEV Exam Brilliant C100DEV Exam Questions PDF
Updated Verified Pass C100DEV Exam - Real Questions and Answers
NEW QUESTION # 86
Assign typical operational tasks to the Data Scientist.
- A. write data
- B. read data
- C. write data, read data
- D. create user, create index
Answer: B
NEW QUESTION # 87
Select true statements regarding to MongoDB. Check all that apply.
- A. MongoDB is a NoSQL database that uses documents to store data in an organized way.
- B. Documents in MongoDB are organized into collections.
- C. MongoDB database organizes documents in rows and columns.
Answer: A,B
Explanation:
https://www.mongodb.com/what-is-mongodb
NEW QUESTION # 88
Which of the following commands will add a collection that is stored in JSON file to a MongoDB cluster?
- A. mongodump
- B. mongoexport
- C. mongoimport
- D. mongostore
Answer: C
Explanation:
https://docs.mongodb.com/database-tools/mongoimport/
NEW QUESTION # 89
Use case: e-learning platform Which of the following scenarios is the best candidate to use the Computed Pattern?
- A. A course model needs to store references to image of the course that are kept in an external location outside the database.
- B. A course model needs to store a counter representing the number of times it was purchased.
- C. Our app needs to retrieve a course and its ten most recent reviews.
- D. Our app needs to retrieve a course and information about its instructor.
Answer: B
Explanation:
https://www.mongodb.com/blog/post/building-with-patterns-the-computed-pattern
NEW QUESTION # 90
We have the following indexes: { name: 1, founded_year: 1 } { tag_list: 1, is_active: 1 } And the following documents: { _id: ObjectId("52cdef7c4bab8bd675297daa"), name: "Sparter", founded_year: 2007, tag_list: ["gaming", "game", "wow"], is_active: true }, { _id: ObjectId("52cdef7c4bab8bd675297da3"), name: "Yahoo!", founded_year: 1994, tag_list: ["search", "webmail"], is_active: true } Select true statement.
- A. There would be a total of 2 index keys created across all of these documents and indexes.
- B. There would be a total of 7 index keys created across all of these documents and indexes.
- C. There would be a total of 4 index keys created across all of these documents and indexes.
Answer: B
Explanation:
https://docs.mongodb.com/manual/core/index-multikey/
NEW QUESTION # 91
Select all true statements regarding to the _id field in MongoDB documents. (select 4)
- A. The _id values must be unique for the collection.
- B. We can select a non ObjectId type value for _id field when inserting a new document.
- C. MongoDB adds an _id field to any inserted document if it doesn't have one.
- D. The _id can be an array data type.
- E. When inserting a document, the _id value is already generated as an ObjectId type, if not directly specified.
Answer: A,B,C,E
Explanation:
https://docs.mongodb.com/manual/core/document/ https://docs.mongodb.com/manual/reference/method/ObjectId/
NEW QUESTION # 92
Suppose you have a restaurants collection with the following document structure: { _id: ObjectId("5eb3d668b31de5d588f42931"), address: { building: '6409', coord: [ -74.00528899999999, 40.628886 ], street: '11 Avenue', zipcode: '11219' }, borough: 'Brooklyn', cuisine: 'American', grades: [ { date: ISODate("2014-07-18T00:00:00.000Z"), grade: 'A', score: 12 }, { date: ISODate("2013-07-30T00:00:00.000Z"), grade: 'A', score: 12 }, { date: ISODate("2013-02-13T00:00:00.000Z"), grade: 'A', score: 11 }, { date: ISODate("2012-08-16T00:00:00.000Z"), grade: 'A', score: 2 }, { date: ISODate("2011-08-17T00:00:00.000Z"), grade: 'A', score: 11 } ], name: 'Regina Caterers', restaurant_id: '40356649' } You have the following index: { "cuisine": 1, "borough": 1 } What will the query plan look like for the following query?
db.restaurants.find( { "cuisine": "American", "borough": { "$gt": "S" } } )
- A. FETCH -> SORT
- B. COLLSCAN -> SORT
- C. IXSCAN -> FETCH -> SORT
- D. SORT -> IXSCAN -> FETCH
Answer: C
Explanation:
https://docs.mongodb.com/manual/indexes/
NEW QUESTION # 93
Given the following example document from an artists collection: { _id: 5, last_name: 'Maurer', first_name: 'Alfred', year_born: 1868, year_died: 1932, nationality: 'USA' } and the following index: db.artists.createIndex( { "last_name": 1, "nationality": 1 } ) How MongoDB will handle the query below?
db.artists.find( { "last_name": /^O./ } )
- A. As an index scan.
- B. MongoDB will need to do a collection scan.
- C. None of these.
Answer: A
Explanation:
https://docs.mongodb.com/manual/indexes/
NEW QUESTION # 94
To ensure high availability in the event of a server failure, which of the following MongoDB features should you use?
- A. Replication.
- B. Properly defined indexes.
- C. Sharding.
- D. Properly defined views.
- E. Proper storage engine.
Answer: A
Explanation:
https://docs.mongodb.com/manual/replication/#replication
NEW QUESTION # 95
Which collection method do you need to use to drop a specific collection?
- A. db.collection.remove()
- B. db.collection.dropCollection()
- C. db.collection.dropIndex()
- D. db.collection.drop()
Answer: D
Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.drop/
NEW QUESTION # 96
What is the built-in database called admin in MongoDB for?
- A. The admin database plays an important role in the authentication and authorization process. Certain actions performed by administrators also require access to this database.
- B. The admin database is used to store information about shards in shared MongoDB cluster.
- C. The admin database stores data describing the MongoDB server. For replica sets, it also stores information about the replication process.
Answer: A
Explanation:
https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/
NEW QUESTION # 97
Which of the following statements are true about the mongo shell? Check all that apply.
- A. The mongo shell doesn't return documents in sorted order by default.
- B. Mongo shell allows us to interact with MongoDB instance without using GUI.
- C. You can get a sorted set of documents by using the sort() method.
- D. Mongo shell is a fully functioning JavaScript interpreter (which means that we can create things like JavaScript variables and functions in mongo shell).
Answer: A,B,C,D
Explanation:
https://docs.mongodb.com/manual/reference/mongo-shell/
NEW QUESTION # 98
You have to create a simple configuration file for mongod instance. Here are the requirements of your mongod instance: * run on port 27100 * authentication is enabled Which of the following configuration file meet these requirements?
- A. net:
port: 27100
security:
authorization: enabled - B. net:
port: 27100
security:
authorization: disabled - C. net:
port: 27000
processManagement:
fork: true
Answer: A
Explanation:
https://docs.mongodb.com/manual/reference/configuration-options/
NEW QUESTION # 99
Select true statements about capped collections.
- A. Capped collections automatically remove the oldest documents in the collection to make room for new documents.
- B. If the collection is full, the oldest document in the collection is removed when a new document is added to the collection.
- C. Capped collections are fixed-size collections.
- D. Capped collections guarantee preservation of the insertion order.
Answer: A,B,C,D
Explanation:
https://docs.mongodb.com/manual/core/capped-collections/
NEW QUESTION # 100
Which cursor method should you use to return the number of documents in the result set?
- A. cursor.count()
- B. cursor.sum()
- C. cursor.total()
- D. cursor.explain()
Answer: A
Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.count/
NEW QUESTION # 101
Assign typical operational tasks to the Database Administrator.
- A. write data
- B. write data, read data
- C. create index, create user
- D. read data
Answer: C
NEW QUESTION # 102
We have a movies collection with the following document structure: { _id: ObjectId("573a1390f29313caabcd6223"), genres: [ 'Comedy', 'Drama', 'Family' ], title: 'The Poor Little Rich Girl', released: ISODate("1917-03-05T00:00:00.000Z"), year: 1917, imdb: { rating: 6.9, votes: 884, id: 8443 } }, { _id: ObjectId("573a13e3f29313caabdc08a4"), genres: [ 'Horror', 'Thriller' ], title: 'Mary Loss of Soul', year: 2014, imdb: { rating: '', votes: '', id: 2904798 } } We need to use Aggregation Framework to calculate the following aggregates: -> average imdb rating -> minimum imdb rating -> maximum imdb rating Expected output: [ { _id: null, avg_rating: 6.6934040649367255, min_rating: 1.6, max_rating: 9.6 } ] Please note that some documents have "" (empty string) for the field "imdb.rating". Exclude these documents before aggregation. Which pipeline should you use?
- A. [{ $match: { "imdb.rating": { $ne: "" } } }, { $group: { _id: null, avg_rating: { $avg: "imdb.rating" }, min_rating: { $min: "imdb.rating" }, max_rating: { $max: "imdb.rating" } } }]
- B. [{ $match: { "imdb.rating": { $ne: "" } } }, { $group: { _id: null, avg_rating: { avg: "$imdb.rating" }, min_rating: { min: "$imdb.rating" }, max_rating: { max: "$imdb.rating" } } }]
- C. [{ $match: { "imdb.rating": { $ne: "" } } }, { $group: { _id: null, avg_rating: { $avg: "$imdb.rating" }, min_rating: { $min: "$imdb.rating" }, max_rating: { $max: "$imdb.rating" } } }]
- D. [{ $group: { _id: null, avg_rating: { $avg: "$imdb.rating" }, min_rating: { $min: "$imdb.rating" }, max_rating: { $max: "$imdb.rating" } } }]
Answer: C
Explanation:
https://docs.mongodb.com/manual/aggregation/
NEW QUESTION # 103
......
Updated PDF (New 2024) Actual MongoDB C100DEV Exam Questions: https://examboost.validdumps.top/C100DEV-exam-torrent.html