New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

MongoDB C100DBA - MongoDB Certified DBA Associate Exam (Based on MongoDB 4.4)

Page: 4 / 4
Total 132 questions

Which of the following is true of the mechanics of replication in MongoDB? Check all that apply.

A.

Members of a replica set may replicate data from any other data-bearing member of the set by default

B.

Clients read from the nearest member of a replica ser by default

C.

Operations on the primary are recorded in a capped collection called the oplog

What is the defau size of a GridFS chunk?

A.

255 K

B.

1 MB

C.

16 MB

D.

2 MB

Which mongodb tools allow us to work with our data in a human readable format?

A.

mongodump

B.

mongostat

C.

mongoimport

D.

mongoexport

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.

secondaryPreferred

B.

Secondary

C.

nearest

D.

primary

E.

primaryPreferred

Which of the following is incorrect statement about find and findOne operations in MongoDB?

A.

findQ returns all the documents in a collection while findOne() retrieves only the first one.

B.

find.limit(l) is not the same query as findOne()

C.

findOneQ returns the actual first document retrieved from a collection

D.

findQ and findOneQ returns cursors to the collection documents

Update If Correct is an approach for which of the following concepts in MongoDB:

A.

Concurrency Control

B.

Atomicity

C.

Performance Management

D.

Transaction Management

Consider the following document:

> db.c.find()

{ "_id" : 12, b : [ 3, 5, 7, 2, 1, -4, 3, 12 ] }

Which of the following queries on the "c" collection will return only the first five elements of the array in the "b"

field? E.g.,

Document you want returned by your query:

{ "_id" : 12, "b" : [ 3, 5, 7, 2, 1 ] >

A.

db.c.find( { > , { b : { $slice : [ 0 , 5 ] } } )

B.

db.c.find( { b : [ 0 , 5 ] > )

C.

db.c.find( { > , { b : { $substr[ 0 , 5 ] > > )

D.

db.c.find( { > , { b : [ 0, 1, 2, 3, 4, 5 ] > )

E.

db.c.find( { > , { b : [ 0 , 5 ] > )

What is the maximum size of Index Key Limit and Number of Indexes per collection?

A.

1024 bytes and 64 indexes

B.

12 mega bytes and 64 indexes

C.

64 bytes and 1024 indexes

D.

1024 bytes and unlimited indexes

Which of the following needs to be performed prior to initiate backup on a sharded cluster?

A.

db.stopBalancer( )

B.

sh.stopServer( )

C.

db.stopServer( )

D.

sh.stopBalancer( )