1.

You may not specify a unique constraint on a ______ index.(a) Hashed(b) Unique(c) Sparse(d) CompoundI have been asked this question by my college director while I was bunking the class.The origin of the question is Index Properties topic in portion Index/Indexing Concepts of MongoDB

Answer»

The CORRECT option is (a) Hashed

The EXPLANATION is: Because of the UNIQUE constraint, MongoDB will only PERMIT ONE document that lacks the indexed field.



Discussion

No Comment Found

Related InterviewSolutions