Question 6 of 71

What mongosh function displays the indexes associated with the pets collection?
Answer

Suggested Answer

The suggested answer is A.

Question 7 of 71

Given the following sample documents in the inventory collection:
Exam c100dev: Image 1
What expression will remove only one document with “status”:“A” in the inventory collection?
Answer

Suggested Answer

The suggested answer is B.

Question 8 of 71

Given the following sample documents:
{ _id: 1, firstName: “Person1”, company: “CompanyA”, active: false }
{ _id: 2, firstName: “Person2”, company: “CompanyB”, active: false }
{ _id: 3, firstName: “Person3”, company: “CompanyC”, active: true }
{ _id: 4, firstName: “Person4”, company: “CompanyD”, active: true }
What code block should be used to delete the third document from a MongoDB collection in Java?
Answer

Suggested Answer

The suggested answer is D.

Question 9 of 71

An Atlas Sample Dataset of restaurants is loaded into a database deployment.
How is Data Explorer used to find all restaurants whose name is “The Rose Palace” in the Restaurants database?
Answer

Suggested Answer

The suggested answer is B.

Question 10 of 71

Assuming correct imports, properly instantiated MongoClient called client, and given the following Java code:
Exam c100dev: Image 1
What statement correctly updates a single document in MongoDB?
Answer

Suggested Answer

The suggested answer is D.