MCQs > IT & Programming > MongoDB > For a collection that represents type A { 'field1' : 'val1', 'field2' : 'val2' } Choose the best way to optimize the collection for updates if field2 is an Enumeration.

MongoDB MCQs

For a collection that represents type A { “field1” : “val1”, “field2” : “val2” } Choose the best way to optimize the collection for updates if field2 is an Enumeration.

Answer

Correct Answer: { “field1” : “val1”, field2 : [“val2”] }

Explanation:

Note: This Question is unanswered, help us to find answer for this one

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

MongoDB Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it