最新の2024年04月21日試験エンジン練習問題C100DBA最新の有効問題集を提供中です [Q77-Q96]

Share

最新の2024年04月21日試験エンジン練習問題C100DBA最新の有効問題集を提供中です

試験解答はC100DBA最新版テストエンジンをタダで提供します

質問 # 77
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ { $group: { _id; "$author", x: { $sum: $likes } } } ] )

  • A. Number of posts by an author
  • B. Average of likes on all the posts of an author, grouped by author
  • C. Sum of likes on all the posts by all the authors
  • D. Sum of likes on all the posts by an author, grouped by author

正解:D


質問 # 78
Which of the following are common uses of the mongo shell? Check all that apply

  • A. Perform administrative tasks
  • B. Perform queries against MongoDB collections
  • C. Use as a JavaScript framework for your production system

正解:A、B


質問 # 79
Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.

正解:

解説:
sh.enableSharding("testdb") & sh.shardCollection("testdb.testCollection", {_id : 1 }, true )


質問 # 80
Write the command(s) are correct to enable sharding on a database "testdb" and shard a collection "testCollection" with _id as shard key.

正解:

解説:
sh.enableSharding("testdb") & sh.shardCollection("testdb.testCollection", {_id : 1 }, true )


質問 # 81
Which of the following operator can be used to limit the number of documents in an array field of a document after an update is performed?

  • A. $removeFromSet
  • B. $push along with $each, $sort and $slice
  • C. None of the above
  • D. $arrayLimit

正解:B


質問 # 82
What read preference should your application use if you want to read from the primary under normal circumstances but allow reads from secondaries when a primary is unavailable?

  • A. nearest
  • B. secondaryPreferred
  • C. primary
  • D. primaryPreferred
  • E. Secondary

正解:D


質問 # 83
Which are the ONLY ways to project portions of an array?

  • A. All of the above
  • B. $slice
  • C. $ elemMatch
  • D. $

正解:A


質問 # 84
What is the on-premise solution having functionality equivalent to cloud manager?

  • A. Journaling
  • B. Replica Manager
  • C. Ops Manager
  • D. Service Manager

正解:C


質問 # 85
Which command can be used to rebuild the indexes on a collection in MongoDB?

  • A. db.collection.createIndex({author:l}).reIndex()
  • B. db.collection.relndexQ
  • C. db.collection.reIndex({author:l})
  • D. db.collection.createlndex({relndex:l})

正解:B


質問 # 86
Below is a sample document in a given collection test.
{ a : 5, b : 3, c: 2, d : 1 }
Given a compound index { a: 1, b:l, c:l, d:l}, Which of the below query will not use in-memory sorting? Select all valid.

  • A. db.test.find( { a: 5, b: 3 } ).sort( { a: 1, b: 1, c: 1 } )
  • B. db.test.find( { a: 5, b: 3 } ).sort( { a: 1} )
  • C. db.test.find( { a: 5, b: 3 } ).sort( {c: 1 } )
  • D. db.test.find( { a: 5, b: 3 } ).sort( { c: 1, d : 1 } )

正解:C、D


質問 # 87
In which of the following scenarios is sharding not the correct option. Select all that apply.

  • A. The write operations on the collection are low
  • B. The collection is a read intensive collection with less working set
  • C. The working set in the collection is expected to grow very large in size
  • D. The write operations on the collection are very high

正解:A、B


質問 # 88
Mongodb does provide high availability via which option?

  • A. Journaling
  • B. Sharding
  • C. Replication
  • D. Indexing

正解:C


質問 # 89
You have a replicated cluster with 1 primary, 3 secondary, 1 arbiter. One of the secondary is hidden. What is the replication factor of this replicated cluster?

  • A. 04
  • B. 03
  • C. 0
  • D. 06

正解:A


質問 # 90
Below is a sample document of "orders" collection

  • A. $project

正解:A


質問 # 91
What does the output x of the following MongoDB aggregation query result into; db.posts.aggregate( [ {
$group: { _id; "$author", x: { $sum: $likes } } } ] )

  • A. Number of posts by an author
  • B. Average of likes on all the posts of an author, grouped by author
  • C. Sum of likes on all the posts by all the authors
  • D. Sum of likes on all the posts by an author, grouped by author

正解:D


質問 # 92
Which of the following command inside aggregate command is used in MongoDB aggregation to filter the documents to pass only the documents that match the specified condition(s) to the next pipeline stage.

  • A. $aggregate
  • B. $sum
  • C. $group
  • D. $match

正解:D


質問 # 93
In a sharded cluster, from which node does one stop the balancer process before initiating backup?

  • A. replicaset primary node
  • B. mongos node
  • C. config server node
  • D. Any node

正解:B


質問 # 94
We can insert multiple documents in bulk using which of the following operations:

  • A. initializeBulk
  • B. initializeUnorderedBulk
  • C. initializeBulkOp
  • D. initializeUnorderedBulkOp

正解:D


質問 # 95
'mongoimport' command is used for

  • A. Multiple command import
  • B. Multiple command insertion
  • C. None of the above
  • D. Batch data insertion

正解:D


質問 # 96
......

C100DBA試験問題集で無料サンプルは365日更新されます:https://www.goshiken.com/MongoDB/C100DBA-mondaishu.html

合格させるC100DBA試験問題と最新のC100DBAテスト問題集PDF:https://drive.google.com/open?id=1FRs6oi5YJZGTyC5DyZ2vtyOw1PW_dqeF