Which of the following command is used to get all the indexes on a collection?
A. db.collection.showIndexes()Which mongodb tools allow us to work with our data in a human readable format?
A. mongodumpA collection and a document in MongoDB is equivalent to which of the SQL concepts respectively?
A. Column and RowWhich option can be used with update command so that a new document gets created if no matching document is found based on the query condition?
A. upsert command instead of update commandConsider a collection posts which has fields: Jd, post_text, post_author, post_timestamp, post_tags etc. Which of the following query retrieves ONLY the key named post_text from the first document retrieved?
A. db.posts.finOne({},{_id:0, post_text:1})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. ORS1Which 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. $arrayLimitConsider the following example document:
{
"_id": Objectld("5360c0a0a655a60674680bbe"),
"user"
"login": "irOn"
"description": "Made of steel"
"date": ISODate("2014-04-30T09:16:45.836Z"),
}
>
and index creation command:
db.users.createlndex( { "user.login": 1, "user.date": -1 }, "mylndex" )
When performing the following query:
db.users.find( { "user.login": /Air.*/ },
{ "user":1, "_id":0 > ).sort( { "user.date":1 > )
which of the following statements correctly describe how MongoDB will handle the query? Check all that apply.
A. As an optimized sort query (scanAndOrder = false) using "mylndex" because we are sorting on an indexed fieldIn a replica set, a_________number of members ensures that the replica set is always able to select a primary.
A. EvenWhat 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. secondaryPreferredNowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only MongoDB exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your C100DBA exam preparations and MongoDB certification application, do not hesitate to visit our Vcedump.com to find your solutions here.