Pre-Winter Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Pearson C100DBA New Attempt

Page: 10 / 13
Total 172 questions

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

Question 37

Which of the following operator can be used to control the number of items of an array that a query returns?

Options:

A.

$ elemMatch

B.

$slice

C.

$

D.

MongoDB does not support partial retrieval of items from an array

Question 38

What is the output of the following program?

Options:

A.

60 s

B.

1s

C.

100 s

D.

100 ms

Question 39

A MongoDB database administrator needs to improve the performance of the following query:

db.employees.find(

{},

{ name: 1, department: 0, salary: 1 }

).sort({ department: 1, salary: -1 });

What index should the administrator use to achieve this goal?

Options:

A.

db.employees.createIndex({ department: 1, salary: 1, name: 1 });

B.

db.employees.createIndex({ department: 1, salary: -1 });

C.

db.employees.createIndex({ salary: 1, name: 1, department: 0 });

D.

db.employees.createIndex({ name: 1, department: 1, salary: -1 });

Question 40

What stage of the Winning Plan in an Explain Result identifies the Index Key for the query pattern?

Options:

A.

FETCH

B.

COLLSCAN

C.

IXSCAN

D.

GROUP

Page: 10 / 13
Total 172 questions