C100DBA無料試験問題と解答PDF最新問題2023年10月 [Q51-Q74]

Share

C100DBA無料試験問題と解答PDF最新問題2023年10月

最新C100DBA試験問題集で最近更新された123問題

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

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

正解:A


質問 # 52
The difference between $push and $addToSet is:

  • A. $addToSet adds the item to the field only if it does not exist already; while $push pushes the item to the field irrespective of whether it was present or not
  • B. $addToSet adds the item to the field only if the new item is of the same datatype
  • C. There is no major difference between them. $addToSet is a deprecated version of $push.
  • D. $addToSet needs the fields to be already present while $push will work even if the field is not present

正解:A


質問 # 53
In a replica set, a_________number of members ensures that the replica set is always able to select a primary.

  • A. Odd
  • B. 0
  • C. Even
  • D. Depends on the application architecture

正解:A


質問 # 54
What is the output of the following program?

  • A. 100 s
  • B. 100 ms
  • C. 60 s
  • D. 1s

正解:C


質問 # 55
What is the replication factor for a replicated cluster with 1 primary, 3 secondaries with one of them hidden.
The set also has an arbiter?

  • A. 0
  • B. 1
  • C. None of the above
  • D. 2

正解:B


質問 # 56
Consider the following example document from the sample collection. All documents in this collection have the same schema.

Which of the following queries will replace this with the document.

  • A. db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > )
  • B. db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 , { "$unset" : [ "a" , "b" ] } } )
  • C. db.sample.update( { "_id" : 3 } , { "$set" : { "_id" : 7 , "c" : 4 > > )
  • D. db.sample.update( { "_id" : 3 > , { "_id" : 7 , "c" : 4 > , { "justOne" : true > ) / This operation cannot be done with a single query.

正解:B


質問 # 57
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 )


質問 # 58
Aggregation Pipelines have a limit of:

  • A. No limit on document and 100 MB RAM
  • B. 2 MB document and 100 MB RAM
  • C. 16 MB document and 100 MB RAM
  • D. 2 MB document and no limit on RAM

正解:C


質問 # 59
Given a replica set with five data-bearing members, suppose the primary goes down with operations in its oplog that have been copied from the primary to only one secondary. Assuming no other problems occur, which of the following describes what is most likely to happen?

  • A. missing operations will need to be manually re-performed
  • B. reads will be stale until the primary comes back up
  • C. the primary may roll back the operations once it recovers
  • D. the most current secondary will roll back the operations following the election
  • E. the secondary with the most current oplog will be elected primary

正解:E


質問 # 60
Consider that our posts collection contains an array field called tags that contains tags that the user enters. {

Which of the following commands will find all the posts that have been tagged as tutorial.

  • A. db.posts.find( { tags : "tutorial" } );
  • B. db.posts.find( { $array : {tags: "tutorial") > );
  • C. db.posts.findInArray( { tags : "tutorial" > );
  • D. db.posts.find( { tags : ["tutorial"] } );

正解:A


質問 # 61
The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases. All the replica set members contain a copy of the oplog in the following collection:

  • A. local.oplog.rs
  • B. <database>..oplog.rs
  • C. <replicasetid>.oplog.rs
  • D. oplog.rs

正解:A


質問 # 62
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. 0
  • B. 03
  • C. 06
  • D. 04

正解:D


質問 # 63
Which of the following about Capped Collections is correct?

  • A. Fixed Size
  • B. High-throughput operations that insert and retrieve documents based on insertion order
  • C. If the allocated space for a capped collection exceeds, it stops inserting new documents
  • D. Only "Fixed Size" and "High-throughput operations that insert and retrieve documents based on insertion order"

正解:D


質問 # 64
By default, the MongoDB cursor in mongo shell is configured to return how many documents? To get the next set of documents, which command is used?

  • A. No limit, none
  • B. 20, it
  • C. 200, more
  • D. 50, it

正解:B


質問 # 65
Which of the following is a valid Replica Set configuration if you want:
1-Have 3 copies of everything
2- That RS3 is never primary
2- That RSI and RS2 can be primary?
You had to see the different configurations, RS3 could be hidden or priority 0 (But not a referee because we need
3 replicas), while RSI and RS2 could NOT have priority 0 or be hidden or anything like that In a 4-member RS RSO , RSI, RS2 and RS3 + Referee, RSO (primary) falls after some write operations that have replicated RSI and RS2 (but NOT RS3), who can get up as the new primary?
The configuration comes and in it we see that RS2 has a hidden: true (or a priority: 0, (I don't remember)

  • A. ORS3
  • B. ORS1
  • C. O arbiter
  • D. ORS2
  • E. RSO

正解:B


質問 # 66
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. $push along with $each, $sort and $slice
  • B. $arrayLimit
  • C. None of the above
  • D. $removeFromSet

正解:A


質問 # 67
Which of the following are valid json documents? Select all that apply.

  • A. {"city":"New York", "population", 7999034, boros:{"queens", "manhattan", "staten island", "the bronx", u "brooklyn"}}
  • B. {"a":l, "b":{"b":l, "c":"foo", "d":"bar", "e":[l,2,4]}}
  • C. {"name":"Fred Flintstone";"occupation":"Miner";"wife":"Wilma"}
  • D. { }

正解:B、D


質問 # 68
Which of the documents below will be retrieved by the following query? Assume the documents are stored in a collection called "sample". Check all that apply.
db.sample.find( { "$or" : [ { "a" : { "$in" : [ 3, 10] > }, { "b" : { "$lt" : 2 > > ] > )

  • A. {".Jd" :: 1, "a": 0, "c" :: 0, "b": 2}
  • B. {''__id" :3, "a": 4, "c" :0, "b" :14}
  • C. {".Jd" :: 5, "a": 3, "c" :: 0, "b": 12}
  • D. {''_Jd" :7, "a": 8, "c" :1, "b" :7}
  • E. {".Jd" :: 2, "a": 2, "c" :: 0, "b": 1}
  • F. { ''\Jd" :9, "a": 17, "c": 1, "b": 1}
  • G. {".Jd" :: 4, "a": 5, "c" :: 0, "b": 17}
  • H. {".Jd" :: 8, "a": 11, "c": 1, "b": 0}
  • I. {".Jd" :6, "a": 1, "c" :1, "b" :5}
  • J. { \Jd" :10,"a": 3, "c": 1, "b": 1}

正解:C、E、F、H、J


質問 # 69
A collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?

  • A. Database and Table
  • B. Column and Row
  • C. Table and Row
  • D. Table and Column

正解:C


質問 # 70
What is the maximum size of a MongoDB document

  • A. There is no maximum size. It depends on the RAM.
  • B. 12 MB
  • C. 2 MB
  • D. 16 MB

正解:D


質問 # 71
You perform the following operation in the shell: db.foo.insert( { } ); What gets inserted?

  • A. A document that matches the collection's existing schema, but with null fields
  • B. An empty document
  • C. A document will be inserted with the same _id as the last document inserted
  • D. A document with an _id assigned to be an Objectld
  • E. No document will be inserted; an error will be raised

正解:D


質問 # 72
JSON stands for

  • A. JavaScript Object Notice
  • B. None of the above
  • C. JavaScript Object Notation
  • D. JavaScript Object Naming

正解:C


質問 # 73
In a replicated cluster, which of the following node would only be used during an election?

  • A. secondary
  • B. arbiter
  • C. primary
  • D. hidden

正解:B


質問 # 74
......

MongoDB C100DBAリアル2023年最新のブレーン問題集で模擬試験問題集:https://www.passtest.jp/MongoDB/C100DBA-shiken.html

C100DBA試験問題リアルC100DBA練習問題集:https://drive.google.com/open?id=1pAQxTp0h7hoEnRINcAQL7ljUB7dN65-L