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?
I'm a bit unsure on this one. I know the "advertise-label ipv4" command is related to distributing labeled IPv4 routes, but I'm not 100% sure of the exact placement in an inter-AS VPRN setup. I'll have to think it through carefully.
The question is asking about the customer environment, so I'm thinking SAN performance, storage capacity, and network performance would be the best choices to assist with that.
I'm going with B. db.posts.createIndex({\'comments.author\':1}). It's the only one that looks like it actually creates an index on the 'comments' subdocument. The others seem a bit... creative.
I think the answer is A. db.posts.createIndex({\'^comments.$.author\':-1}). It seems to create an index on the 'author' field of the 'comments' subdocument in descending order.
The correct answer is B. db.posts.createIndex({\'comments.author\':1}). The command creates an index on the 'author' field of the 'comments' subdocument in the 'posts' collection, in ascending order.
Michael
4 months agoAdell
4 months agoVeronika
4 months agoMargurite
4 months agoLang
4 months agoLorita
5 months agoYoulanda
5 months agoNan
5 months agoDallas
5 months agoOretha
5 months agoMarlon
5 months agoHelga
5 months agoCora
9 months agoGerardo
9 months agoLashawn
9 months agoQuentin
8 months agoNieves
8 months agoElmira
8 months agoLamar
8 months agoChandra
8 months agoGennie
9 months agoIsaiah
9 months agoRosalyn
10 months agoMonroe
10 months agoTricia
10 months agoSusana
11 months agoDelisa
11 months agoOdelia
9 months agoMaira
9 months agoBrittni
9 months agoKassandra
10 months agoMarshall
11 months agoChara
11 months ago