DumpsFree provides high-quality dumps PDF & dumps VCE for candidates who are willing to pass exams and get certifications soon. We provide dumps free download before purchasing dumps VCE. 100% pass exam!

Online Questions - Valid Practice To your C100DEV Exam (Updated 253 Questions) [Q104-Q124]

Share

Online Questions - Valid Practice To your C100DEV Exam (Updated 253 Questions)

Practice To C100DEV - Remarkable Practice On your MongoDB Certified Developer Associate Exam Exam

NEW QUESTION # 104
Why is MongoDB using BSON instead of JSON to store data? Select all that apply.

  • A. BSON contains metadata to describe a document/object.
  • B. BSON simply means 'Binary JSON'.
  • C. BSON format is not human readable (BSON is machine-readable only).
  • D. BSON supports more data types than JSON.

Answer: A,B,C,D

Explanation:
https://www.mongodb.com/json-and-bson


NEW QUESTION # 105
Select all true statements about text search in MongoDB.

  • A. To perform text search queries, you must have a text index on your collection.
  • B. Text indexes can include any field whose value is a string.
  • C. MongoDB provides text indexes to support text search queries on string content.
  • D. Text indexes cannot include any field whose value is an array of string elements.
  • E. To perform text searches on a collection we use $text operator.
  • F. A collection can only have one text search index, but that index can cover multiple fields.

Answer: A,B,C,E,F

Explanation:
https://docs.mongodb.com/manual/text-search/


NEW QUESTION # 106
Select all true statements about the $facet stage.

  • A. The output of the $facet stage is subject to the 16 MB document size limit. If the results of the $facet stage exceed this limit, the aggregation produces an error.
  • B. The output of the $facet stage is subject to the 32 MB document size limit. If the results of the $facet stage exceed this limit, the aggregation produces an error.
  • C. The $facet stage processes multiple aggregation pipelines within a single stage on the same set of input documents.

Answer: A,C

Explanation:
https://docs.mongodb.com/manual/reference/operator/aggregation/facet/


NEW QUESTION # 107
Given a companies collection where each document has the following structure: { _id: ObjectId("52cdef7c4bab8bd675297efd"), name: 'ZoomInfo', homepage_url: 'http://www.zoominfo.com', blog_url: 'http://zoominfoblogger.wordpress.com/', twitter_username: 'ZoomInfo', founded_year: 2000, email_address: '' } Extract all companies from this collection that have the same Twitter username as the company name. Which query should you use?

  • A. db.companies.find( { $expr: { $eq: ['name', 'twitter_username'] } } )
  • B. db.companies.find( { $expr: { $eq: ['$name', '$twitter_username'] } } )
  • C. db.companies.find( { $expr: { $ne: ['$name', '$twitter_username'] } } )
  • D. db.companies.find( { $expr: { $eq: ['$name', 'twitter_username'] } } )

Answer: B

Explanation:
db.companies.find( { $expr: { $eq: ['$name', 'twitter_username'] } } ) You have to use $ sign to evaluate twitter_username field. db.companies.find( { $expr: { $eq: ['name', 'twitter_username'] } } ) You have to use $ sign to evaluate name and twitter_username fields. https://docs.mongodb.com/manual/reference/operator/query/expr/


NEW QUESTION # 108
In your database there is a movies collection with the following document structure: { _id: ObjectId("573a1390f29313caabcd42e8"), genres: [ 'Short', 'Western' ], title: 'The Great Train Robbery', rated: 'TV-G', year: 1903, imdb: { rating: 7.4, votes: 9847, id: 439 }, countries: [ 'USA' ] }, { _id: ObjectId("573a1390f29313caabcd4323"), genres: [ 'Short', 'Drama', 'Fantasy' ], rated: 'UNRATED', title: 'The Land Beyond the Sunset', year: 1912, imdb: { rating: 7.1, votes: 448, id: 488 }, countries: [ 'USA' ] }, { _id: ObjectId("573a1390f29313caabcd446f"), genres: [ 'Short', 'Drama' ], title: 'A Corner in Wheat', rated: 'G', year: 1909, imdb: { rating: 6.6, votes: 1375, id: 832 }, countries: [ 'USA' ] } How can you group these documents to extract the distribution of rated field?

  • A. db.movies.aggregate( { $group: { _id: '$rated', $count: { $sum: 1 } } } )
  • B. db.movies.aggregate( { $group: { _id: '$rated', count: { $sum: 1 } } } )
  • C. db.movies.aggregate( { $group: { _id: 'rated', count: { $sum: 1 } } } )
  • D. db.movies.aggregate( { $group: { _id: '$rated', count: { $avg: 1 } } } )

Answer: B

Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.aggregate/


NEW QUESTION # 109
Which of the following roles provides the same read-only privileges as read role on all databases except local and config?

  • A. readAnyDatabase
  • B. userAdminAnyDatabase
  • C. readWriteAnyDatabase

Answer: A

Explanation:
https://docs.mongodb.com/manual/reference/built-in-roles/#mongodb-authrole-readAnyDatabase


NEW QUESTION # 110
What is the built-in database called admin in MongoDB for?

  • A. The admin database is used to store information about shards in shared MongoDB cluster.
  • B. The admin database stores data describing the MongoDB server. For replica sets, it also stores information about the replication process.
  • C. The admin database plays an important role in the authentication and authorization process. Certain actions performed by administrators also require access to this database.

Answer: C

Explanation:
https://docs.mongodb.com/manual/tutorial/manage-users-and-roles/


NEW QUESTION # 111
What is a MongoDB view?

  • A. MongoDB does not support views.
  • B. It is a different name for collection.
  • C. A MongoDB view is a queryable object whose contents are defined by an aggregation pipeline on other collections or views.

Answer: C

Explanation:
https://docs.mongodb.com/manual/core/views/


NEW QUESTION # 112
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' } } ).limit(3)
  • 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' } } )

Answer: A

Explanation:
https://docs.mongodb.com/manual/text-search/ https://docs.mongodb.com/manual/core/index-text/


NEW QUESTION # 113
Select all true statements regarding to unique indexes in MongoDB.

  • A. db.products.createIndex( { manufacturer_id: 1 }, { unique: true } )
  • B. When creating a unique index, we need to pass an additional unique option set to true. For example:
  • C. A unique index ensures that the indexed fields don't store duplicate values.
  • D. In MongoDB we cannot enforce a unique constraint on compound indexes.
  • E. By default, MongoDB creates a unique index on the _id field.

Answer: A,C,E

Explanation:
https://docs.mongodb.com/manual/core/index-unique/


NEW QUESTION # 114
Select all true statements about MongoDB documents.

  • A. MongoDB documents must have the same fields in the collection.
  • B. MongoDB documents are stored as BSON documents.
  • C. MongoDB documents have a flexible schema.
  • D. MongoDB documents are stored as JSON documents.

Answer: B,C

Explanation:
https://docs.mongodb.com/manual/core/document/


NEW QUESTION # 115
You have the following index in a movies collection: { "title": 1, "imdb.rating": -1, "imdb.votes": -1, "type": 1 } Can the following query use the given index for both filtering and sorting?
db.movies.find( { "imdb.rating": 8, "title": "James Bond" } ).sort( { "imdb.votes": -1 } )

  • A. Yes
  • B. No

Answer: A

Explanation:
Yes, this query can use the index prefix. The order of the fields in the query predicate does not matter. Since both "imdb.rating" and "title" are part of an index prefix, this query can use the index for an equality condition. https://docs.mongodb.com/manual/indexes/


NEW QUESTION # 116
Data modeling. You are considering the use of nesting or the references in your data model. Data read operations must be fast. Which option would be more appropriate?

  • A. Use of nesting.
  • B. Use of reference.

Answer: A

Explanation:
https://docs.mongodb.com/manual/core/data-modeling-introduction/


NEW QUESTION # 117
You have the following configuration file: storage: dbPath: /var/mongodb/db net: bindIp: localhost port: 27000 security: authorization: enabled You have to update this file such that: * mongod sends logs to /var/mongodb/logs/mongod.log * mongod is forked and run as a daemon Select correct Answer.

  • A. storage: dbPath: /var/mongodb/db net: bindIp: localhost port: 27000 security: authorization: enabled systemLog: destination: file path: "/var/mongodb/logs/mongod.log"
  • B. storage: dbPath: /var/mongodb/db net: bindIp: localhost port: 27000 security: authorization: enabled processManagement: fork: true
  • C. storage: dbPath: /var/mongodb/db net: bindIp: localhost port: 27000 security: authorization: enabled systemLog: destination: file path: "/var/mongodb/logs/mongod.log" processManagement: fork: true

Answer: C

Explanation:
https://docs.mongodb.com/manual/reference/configuration-options/


NEW QUESTION # 118
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 --config mongod.conf
  • C. mongod -f mongod.conf
  • D. mongod --use mongod.conf

Answer: B,C

Explanation:
https://docs.mongodb.com/manual/reference/configuration-options/#use-the-configuration-file


NEW QUESTION # 119
Select all true statements regarding to replica sets in MongoDB.

  • A. Replica set members have a fixed role assigned.
  • B. Replica sets use failover to provide high availability to client applications.
  • C. We can have up to 50 replica set members, but only 7 of those will be voting members.

Answer: B,C

Explanation:
Replica set members have a fixed role assigned. -> False The availability of the system will be ensured by failing over the role of primary to an available secondary node through an election. https://docs.mongodb.com/manual/replication/


NEW QUESTION # 120
Which command do you use to display all indexes in routes collection?

  • A. db.routes.getIndexes()
  • B. db.routes.indexes()
  • C. db.routes.dropIndex()
  • D. db.routes.dropIndex()

Answer: A

Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.getIndexes/


NEW QUESTION # 121
Select all true statements regarding to Aggregation Framework.

  • A. The query in a $match stage can not be entirely covered by an index.
  • B. The Aggregation Framework will automatically reorder stages in a certain conditions (for optimization).

Answer: B

Explanation:
https://docs.mongodb.com/manual/aggregation/


NEW QUESTION # 122
Select the method that forces MongoDB to use a specific index.

  • A. index()
  • B. force()
  • C. explain()
  • D. hint()

Answer: D

Explanation:
https://docs.mongodb.com/manual/reference/method/cursor.hint/


NEW QUESTION # 123
Select all true statements regarding to the insert operation.

  • A. MongoDB will automatically add an _id field when inserting document without specified _id field into a collection.
  • B. If you insert a document with no _id value specified, it will result in a write error.
  • C. If you insert document with a _id field value that already exists, an error will be raised.

Answer: A,C

Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.insert/


NEW QUESTION # 124
......

True C100DEV Exam Extraordinary Practice For the Exam: https://www.dumpsfree.com/C100DEV-valid-exam.html

Get 100% Passing Success With True C100DEV Exam: https://drive.google.com/open?id=1ia9nRoDoNl5MntlSIzMWbuxiMUyLQSex