
[Feb-2024] 100% Guarantee Download C100DEV Exam Dumps PDF Q&A
Kickstart your Career with Real Updated Questions
NEW QUESTION # 35
Select all true statements about text search in MongoDB.
- A. To perform text searches on a collection we use $text operator.
- B. Text indexes cannot include any field whose value is an array of string elements.
- C. To perform text search queries, you must have a text index on your collection.
- D. Text indexes can include any field whose value is a string.
- E. A collection can only have one text search index, but that index can cover multiple fields.
- F. MongoDB provides text indexes to support text search queries on string content.
Answer: A,C,D,E,F
Explanation:
https://docs.mongodb.com/manual/text-search/
NEW QUESTION # 36
Select all true statements regarding to pipelines and the Aggregation Framework.
- A. Aggregation Framework does not have the group stage for grouping data.
- B. An aggregation pipeline consists of one or more stages that process documents.
- C. The aggregation pipeline cannot operate on a sharded collection.
- D. The Aggregation Framework provides us many stages to filter and transform data.
- E. An aggregation pipeline is an array of stages.
Answer: B,D,E
Explanation:
https://docs.mongodb.com/manual/aggregation/
NEW QUESTION # 37
Which of the following statements are true regarding MongoDB views?
- A. Write operations to views will raise an error.
- B. Views are write only.
- C. MongoDB views are created on demand and reflect the data in the source collection.
- D. MongoDB views themselves don't contain data.
- E. Views are read only.
Answer: A,C,D,E
Explanation:
https://docs.mongodb.com/manual/core/views/
NEW QUESTION # 38
Select all true statements about one-to-zillions relationships (a special case of the one-to-many relationship in MongoDB).
- A. This relationship is created to emphasize the fact that huge cardinalities can impact design choices.
- B. Representing this relationships with document embedding is not recommended.
- C. We need to be extremely careful when writing queries that retrieve data on the zillions side.
Answer: A,B,C
Explanation:
https://docs.mongodb.com/manual/tutorial/model-embedded-one-to-many-relationships-between-documents/
NEW QUESTION # 39
What is data modeling in MongoDB world?
- A. A way to show your database with graphs.
- B. A way to organize fields in a document to support your application performance and querying capabilities.
- C. A way to build your application based on how your data is stored.
- D. A way to decide whether to store your data in the cloud or locally.
Answer: B
Explanation:
https://docs.mongodb.com/manual/core/data-modeling-introduction/
NEW QUESTION # 40
You have a configuration file for mongod instance called mongod.conf in your working directory. How can you launch mongod instance with this configuration file?
- A. mongod --conf mongod.conf
- B. mongod -f mongod.conf
- C. mongod --use mongod.conf
- D. mongod --config mongod.conf
Answer: B,D
Explanation:
https://docs.mongodb.com/manual/reference/configuration-options/#use-the-configuration-file
NEW QUESTION # 41
A collection called players contains documents with the following structure: { _id: 1, user: 'Tom', scores: [ 23, 56, 3, 52, 62 ], bonus: 5 } { _id: 2, user: 'Jane', scores: [ 42, 50, 10 ], bonus: 3 } You have the following query: db.players.aggregate([{ $addFields: { total_score: { $sum: '$scores' }, avg_score: { $avg: '$scores' } } }, { $addFields: { total_score_with_bonus: { $add: ['$total_score', '$bonus'] } } }, { $match: { bonus: { $gt: 4 } } }]) How can you optimize this query?
- A. Moving the $match stage to the beginning of the pipeline. [{ $match: { bonus: { $gt: 4 } } }, { $addFields: { total_score: { $sum: '$scores' }, avg_score: { $avg: '$scores' } } }, { $addFields: { total_score_with_bonus: { $add: ['$total_score', '$bonus'] } } }]
- B. Moving the $match stage to the second stage of this pipeline. [{ $addFields: { total_score: { $sum: '$scores' }, avg_score: { $avg: '$scores' } } }, { $match: { bonus: { $gt: 4 } } }, { $addFields: { total_score_with_bonus: { $add: ['$total_score', '$bonus'] } } }]
- C. This query cannot be optimized.
Answer: A
Explanation:
https://docs.mongodb.com/manual/reference/operator/aggregation/match/ https://docs.mongodb.com/manual/core/aggregation-pipeline-optimization/
NEW QUESTION # 42
Select all true statements about covered queries.
- A. Covered queries don't use indexes.
- B. For a covered query, you service the operation entirely from the index, which is usually faster than checking each document.
- C. All fields returned in the result must be in the index used by the query.
- D. All fields used in a query filter must be in the index used by the query.
Answer: B,C,D
Explanation:
https://docs.mongodb.com/manual/core/query-optimization/#covered-query
NEW QUESTION # 43
Why is MongoDB using BSON instead of JSON to store data? Select all that apply.
- A. BSON format is not human readable (BSON is machine-readable only).
- B. BSON contains metadata to describe a document/object.
- C. BSON simply means 'Binary JSON'.
- D. BSON supports more data types than JSON.
Answer: A,B,C,D
Explanation:
https://www.mongodb.com/json-and-bson
NEW QUESTION # 44
Suppose you have a movies collection with the following document structure: { _id: ObjectId("573a1390f29313caabcd60e4"), title: 'The Immigrant', fullplot: "Charlie is on his way to the USA. He wins in a card game, puts the money in Edna's bag (she and her sick mother have been robbed of everything). When he retrieves a little for himself he is accused of being a thief. Edna clears his name. Later, broke, Charlie finds a coin and goes into a restaurant." } You want to sort result set by a relevance score computed by MongoDB in text search query and extract only three documents with the highest score. Which query do you need to use?
- A. db.movies.find( { $text: { $search: 'spaceship' } }, { score: { $meta: 'textScore' } }, ).sort( { score: { $meta: 'textScore' } } )
- B. db.movies.find( {}, { score: { $meta: 'textScore' } }, ).sort( { score: { $meta: 'textScore' } } ).limit(3)
- C. db.movies.find( { $text: { $search: 'spaceship' } }, { score: { $meta: 'textScore' } }, ).sort( { score: { $meta: 'textScore' } } ).limit(3)
Answer: C
Explanation:
https://docs.mongodb.com/manual/text-search/ https://docs.mongodb.com/manual/core/index-text/
NEW QUESTION # 45
How to shutdown the server? (Mongo shell)
- A. use admin
- B. use admin
- C. use admin
- D. db.shutdownServer()
- E. db.shutdown()
- F. db.disconnect()
Answer: D
Explanation:
https://docs.mongodb.com/manual/reference/method/db.shutdownServer/
NEW QUESTION # 46
Select true statements about the naming convention of collections in MongoDB.
- A. Collection names should not contain $ sign.
- B. Don't create collections that start with system.
- C. Empty string '' cannot be a collection name.
Answer: A,B,C
NEW QUESTION # 47
What is MongoDB Compass?
- A. Special data type in MongoDB to store geospatial data.
- B. A map-based chart type that is available with MongoDB Charts.
- C. It is a GUI for MongoDB.
Answer: C
Explanation:
https://docs.mongodb.com/compass/current/
NEW QUESTION # 48
Suppose we have a products collection with the following fields and values: _id (automatically created ObjectId) product_code (unique values for each product) color (as String values) size (this field is missing for some products) origin_country Which of these fields would be the best shard key?
- A. color
- B. size
- C. _id
- D. product_code
- E. origin_country
Answer: D
Explanation:
With color, size, and origin_country we run the risk of low cardinality. The _id wouldn't make a good shard key because it isn't something meaningful we could query the database. https://docs.mongodb.com/manual/core/sharding-shard-key/
NEW QUESTION # 49
In which of the following CRUD operations can you specify a write concern? Select all that apply.
- A. db.collection.update()
- B. db.collection.insert()
- C. db.collection.updateMany()
- D. db.collection.find()
- E. db.collection.insertOne()
Answer: A,B,C,E
Explanation:
https://docs.mongodb.com/manual/reference/write-concern/
NEW QUESTION # 50
......
MongoDB C100DEV certification exam is a great way for developers to showcase their skills and knowledge in MongoDB. Certification holders are recognized as experts in MongoDB development, which can increase their job opportunities and earning potential. In addition, certification holders gain access to exclusive MongoDB events, resources, and communities.
Earn Quick And Easy Success With C100DEV Dumps: https://www.vce4dumps.com/C100DEV-valid-torrent.html
Top-Class C100DEV Question Answers Study Guide: https://drive.google.com/open?id=1D0zYmrwzaQ6dc6zuQs2TvtdRBhWxswrC