Weekend Sale Special - 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 75epass

Exact2Pass Menu

MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+)

Last Update 3 hours ago Total Questions : 172

The MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) content is now fully updated, with all current exam questions added 3 hours ago. Deciding to include C100DBA practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our C100DBA exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these C100DBA sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any MongoDB Associate Database Administrator(Based on MongoDB 6.0 and 7.0+) practice test comfortably within the allotted time.

Question # 11

What command set removes node-1.cluster1.mycompany.local:27017 and node-2.cluster1.mycompany.local:27017 from the replica set, then adds node-1.cluster1.mycompany.local:27017 back to the replica set?

A.

rs.removeNode( " node-1.cluster1.mycompany.local:27017 " )rs.removeNode( " node-2.cluster1.mycompany.local:27017 " )rs.add({ host: " node-1.cluster1.mycompany.local:27017 " })

B.

rs.removeNode( " node-1.cluster1.mycompany.local:27017 " )rs.removeNode( " node-2.cluster1.mycompany.local:27017 " )rs.addNode({ host: " node-1.cluster1.mycompany.local:27017 " })

C.

rs.remove( " node-1.cluster1.mycompany.local:27017 " )rs.remove( " node-2.cluster1.mycompany.local:27017 " )rs.add({ host: " node-1.cluster1.mycompany.local:27017 " })

D.

rs.remove( " node-1.cluster1.mycompany.local:27017 " )rs.remove( " node-2.cluster1.mycompany.local:27017 " )rs.addNode({ host: " node-1.cluster1.mycompany.local:27017 " })

Question # 12

What command is used to check the value that " logLevel " is set to?

A.

db.runCommand({ getParameter: 1, " logLevel " : 1 })

B.

db.getParameter( " logLevel " )

C.

db.getParameter({ " logLevel " : 1})

D.

db.adminCommand({ getParameter: 1, " logLevel " : 1 })

Question # 13

You are in a sharded cluster. What will you do prior to initiating backup in sharded cluster?

A.

db.stopBalancer()

B.

db.stopserver()

C.

sh.stopBalancer()

D.

sh.stopserverQ

Question # 14

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.

200, more

B.

No limit, none

C.

20, it

D.

50, it

Question # 15

What command is used to grant a role " customRole1 " to an existing user called " user1 " ?

A.

db.grantRoles( " user1 " , [ " customRole1 " ])

B.

db.createUser({ user: " user1 " , pwd: " pwd1 " , roles: [{ role: " customRole1 " , db: " admin " }] })

C.

db.addRoleToUser( " user1 " , [ " customRole1 " ])

D.

db.grantRolesToUser( " user1 " , [ " customRole1 " ])

Question # 16

What encoded format does MongoDB store documents in?

A.

Base 64

B.

JSON

C.

BSON

D.

XML

Question # 17

Which of the following is supported by MongoDB?

A.

Transaction Management

B.

ACID Transactions

C.

Journaling

D.

Relationships between Collections (Primary Key Foreign Key)

Question # 18

A MongoDB administrator is managing a database for a hospital system.

The patients collection contains:

- Carlos Martinez, diagnosis Hypertension, room 203

- Maria Lopez, diagnosis Hypertension, room 207

- Juan Perez, diagnosis Arrhythmia, room 207

The administrator runs:

db.patients.updateMany(

{ diagnosis: " Hypertension " },

{ $set: { room: 207 } }

)

What output should the administrator expect?

A.

acknowledged: true, matchedCount: 1, modifiedCount: 1

B.

acknowledged: true, matchedCount: 3, modifiedCount: 1

C.

acknowledged: true, matchedCount: 1, modifiedCount: 2

D.

acknowledged: true, matchedCount: 2, modifiedCount: 1

Question # 19

In order to ensure that you can maintain high availability in the face of server failure, you should implement which of the following?

A.

Sharding

B.

Properly defined user roles

C.

Replication

D.

Put indexes on all of your documents

E.

The proper storage engine

Question # 20

A MongoDB database administrator is asked to add the privilege find to a role named myRole.

What is the correct syntax for adding this privilege to the role in MongoDB?

A.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: [{ resource: { db: " testDB " , collection: " " }, actions: [ " find " ] }] ,writeConcern: { w: " majority " },comment: " Granting find action " })

B.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: [{ db: " testDB " , collection: " " , actions: [ " find " ] }] ,writeConcern: { w: " majority " },comment: " Granting find action " })

C.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: {resource: { db: " testDB " , collection: " " }, actions: [ " find " ]},writeConcern: { w: " majority " },comment: " Granting find action " })

D.

db.runCommand({grantPrivilegesToRole: " myRole " ,privileges: [{ resource: { db: " testDB " , collection: " " }, actions: " find " }],writeConcern: { w: " majority " },comment: " Granting find action " })

Go to page: