Final: Question 6 Solution M101JS: MongoDB for Node.js Developers

Final: Question 6

Suppose you have a collection of students of the following form:

{
	"_id" : ObjectId("50c598f582094fb5f92efb96"),
	"first_name" : "John",
	"last_name" : "Doe",
	"date_of_admission" : ISODate("2010-02-21T05:00:00Z"),
	"residence_hall" : "Fairweather",
	"has_car" : true,
	"student_id" : "2348023902",
	"current_classes" : [
		"His343",
		"Math234",
		"Phy123",
		"Art232"
	]
}

Now suppose that basic inserts into the collection, which only include the last name, first name, and student_id, are too slow (we can’t do enough of them per second from our program). What could potentially improve the speed of inserts? Check all that apply.

Solution: I selected as in the image, please let me know if there are any correct answer.

final_exam_question_6
Previous articleFinal: Question 4 Solution M101JS: MongoDB for Node.js Developers
Next articleThe solution to HOMEWORK 4.1 M101JS: MongoDB for Node.js Developers

1 COMMENT

LEAVE A REPLY

Please enter your comment!
Please enter your name here