Exam4Training

Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?

Given a collection posts as shown below having a document array comments, which of the following command will create an index on the comment author descending?

A . db.posts.createIndex({commerits.$.author":-l});
B . db.posts.createIndex({comments.$.author": {$desc:l>});
C . db.posts.createIndex({comments.author":-l});

Answer: C

Latest C100DBA Dumps Valid Version with 132 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version