In an employee collection, each document represents an employee of the company.What data model is the most effective for tracking the relationship between an employee and their manager?
Reference array to employee documents in each manager document
Embed manager document into each employee document
Embed employee documents as an array into each manager document
Reference to manager document in each employee document
Question 4
Given the following query:db.coll.find({}).sort({“timestamp”: -1, “status”: 1})Which two indexes will most improve the performance of this query? (Choose two.)
{“timestamp”: -1, “status”: -1}
{“timestamp”: 1, “status”: -1}
{“timestamp”: -1, “status”: 1}
{“timestamp”: 1, “status”: 1}
Question 5
What Java code is a valid aggregation projection that can be used with collection.aggregate(pipeline)?
We are moving to a new platform
CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.