[Nov 21, 2023] Genuine C100DEV Exam Dumps New 2023 MongoDB Pratice Exam [Q101-Q118]

Share

[Nov 21, 2023] Genuine C100DEV Exam Dumps New 2023 MongoDB Pratice Exam

New 2023 Realistic C100DEV Dumps Test Engine Exam Questions in here

NEW QUESTION # 101
Which collection method can you use to build the index?

  • A. db.collection.createIndex()
  • B. db.collection.getIndexes()
  • C. db.collection.insert()
  • D. db.collection.create()

Answer: A

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


NEW QUESTION # 102
Which of the following statements are true about the mongo shell? Check all that apply.

  • A. You can get a sorted set of documents by using the sort() method.
  • B. The mongo shell doesn't return documents in sorted order by default.
  • C. Mongo shell is a fully functioning JavaScript interpreter (which means that we can create things like JavaScript variables and functions in mongo shell).
  • D. Mongo shell allows us to interact with MongoDB instance without using GUI.

Answer: A,B,C,D

Explanation:
https://docs.mongodb.com/manual/reference/mongo-shell/


NEW QUESTION # 103
Which of the following commands will delete a collection named restaurants?

  • A. db.restaurants.dropCollection()
  • B. db.restaurants.remove()
  • C. db.restaurants.delete()
  • D. db.restaurants.drop()

Answer: D

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


NEW QUESTION # 104
Suppose you have an accounts collection with the following document structure: { _id: ObjectId("61af47c6e29861661d063714"), account_id: 1010, type: 'investment', limit: 1000000 }, { _id: ObjectId("61af47c6e29861661d063715"), account_id: 4336, type: 'derivatives', limit: 100000 }, { _id: ObjectId("61af47c6e29861661d063716"), account_id: 4336, type: 'commodity', limit: 1000 } Which of the following documents would be modified by this update? db.accounts.updateMany( { "type": "investment" }, { "$set": { "limit": 2000000 } } )

  • A. { _id: ObjectId("61af47c6e29861661d063715"), account_id: 4336, type: 'derivatives', limit: 100000 }
  • B. { _id: ObjectId("61b1bde1ceb6f770f56b0cd9"), account_id: 4915, type: 'investment', limit: 1000000 }
  • C. { _id: ObjectId("61af47c6e29861661d067825"), account_id: 7355, type: 'commodity', limit: 500000 }
  • D. { _id: ObjectId("61af47c6e29861661d063714"), account_id: 1010, type: 'investment', limit: 1000000 }

Answer: B,D

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


NEW QUESTION # 105
Data modeling. You are considering the use of nesting or references in your data model. Documents can grow rapidly. Which option would be more appropriate?

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

Answer: A

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


NEW QUESTION # 106
You want to execute the following query quite often in your application: db.hotels.aggregate([ { "$match": { "stars": { "$gt": 4.5 } } }, { "$sort": { "stars": 1 } } ]) Your collection doesn't have any additional indexes. Which index should you create to support this query?

  • A. db.hotels.createIndex( { "stars": 1 } )
  • B. In this case, the index could not be created.
  • C. db.hotels.createIndex( { "match": 1 } )

Answer: A

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


NEW QUESTION # 107
Select true statements about sorting & indexing performance.

  • A. Index prefixes cannot be used in query predicates to increase index utilization.
  • B. Indexes can be traversed both forward and backward.
  • C. It's possible to have a sorted query use an index for both sorting and filtering.
  • D. Index prefixes can be used in sort predicates to prevent sort in memory.

Answer: B,C,D

Explanation:
https://docs.mongodb.com/manual/tutorial/sort-results-with-indexes/


NEW QUESTION # 108
Select all true statements regarding to scaling.

  • A. When scaling horizontally our scaling cost increases linearly.
  • B. Scaling horizontally is generally cheaper than scaling vertically.
  • C. When scaling vertically our scaling cost increases linearly.

Answer: A,B

Explanation:
https://www.mongodb.com/databases/scaling


NEW QUESTION # 109
Which collection method do you need to use to drop a specific collection?

  • A. db.collection.dropCollection()
  • B. db.collection.remove()
  • C. db.collection.drop()
  • D. db.collection.dropIndex()

Answer: C

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


NEW QUESTION # 110
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 # 111
We have the following index in a movies collection: { title: 1, genres: 1 } We want to insert the following document: { "title": "The Immigrant", "year": 1917, "genres": [ "Short", "Comedy", "Drama" ] } Select proper index entries.

  • A. "Drama", "The Immigrant"
  • B. "Short", "The Immigrant"
  • C. "The Immigrant", "Comedy"
  • D. "The Immigrant", "Short"
  • E. "The Immigrant", "Drama"
  • F. "The Immigrant", "Short", "Comedy", "Drama"
  • G. "Comedy", "The Immigrant"

Answer: E

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


NEW QUESTION # 112
Select all true statements about replication in MongoDB.

  • A. Replication is also used to prevent downtime in the event of a failure in a data center.
  • B. It's a good practice to have replicas in different geographical regions. If one region becomes unavailable due to a major failure in a data center or the network connection to it, the applications will continue to run without downtime.

Answer: A,B

Explanation:
https://docs.mongodb.com/manual/replication/#replication


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

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

Answer: D

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


NEW QUESTION # 114
Consider a one-to-one relationship observed between users and the users details. Basic information about application users is separated from detailed information. Which of the following are true about modeling this one-to-one relationship with the document model in MongoDB?

  • A. We can embed fields with detailed information as a subdocument in the users collection.
  • B. We can link to a single document with detailed information in another collection.
  • C. We can embed fields with detailed information in the users collection.

Answer: A,B,C

Explanation:
https://docs.mongodb.com/manual/tutorial/model-embedded-one-to-one-relationships-between-documents/


NEW QUESTION # 115
Select true statements about the selection of the shard key.

  • A. High cardinality provides more shard key values, which determines the maximum number of chunks the balancer can create.
  • B. Non-monotonic data is a good choice for shard key.
  • C. Monotonically changing shard keys result in write operations going to a single shard. This is inefficient.
  • D. High frequency - most documents fall within a particular range. This can lead to bottleneck problems within the cluster.

Answer: A,B,C,D

Explanation:
https://docs.mongodb.com/manual/core/sharding-shard-key/


NEW QUESTION # 116
Select all true statements about the differences between mongoexport and mongodump.

  • A. mongodump is typically faster than mongoexport
  • B. mongoexport outputs JSON file, but mongodump outputs BSON file.
  • C. mongodump can create a data file and a metadata file, but mongoexport just creates a data file.
  • D. By default, mongodump sends output to stdout, but mongoexport writes to a file.
  • E. mongoexport outputs BSON file, but mongodump outputs JSON file.

Answer: A,B,C

Explanation:
https://docs.mongodb.com/database-tools/mongoexport/ https://docs.mongodb.com/database-tools/mongodump/


NEW QUESTION # 117
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 Comedy movies that were made in 2000? (select 2)

  • A. db.movies.find( { year: 2000, genres: "Comedy" } )
  • B. db.movies.find( { year: 2000 }, { genres: "Comedy" } )
  • C. db.movies.find( { $or: [ { year: 2000 }, { genres: "Comedy" } ] } )
  • D. db.movies.find( { $and: [ { year: 2000 }, { genres: "Comedy" } ] } )

Answer: A,D

Explanation:
https://docs.mongodb.com/manual/reference/method/db.collection.find/ https://docs.mongodb.com/manual/reference/operator/query/and/


NEW QUESTION # 118
......

Grab latest Amazon C100DEV Dumps as PDF Updated: https://www.pass4surequiz.com/C100DEV-exam-quiz.html

Updated Official licence for C100DEV Certified by C100DEV Dumps PDF: https://drive.google.com/open?id=1KgzcIwSm2oh-J9qS1r-Ea1EGXzXrhhss