Q1. A MongoDB aggregation pipeline joins 'users' (100,000 docs) and 'orders' (1,000,000 docs) collections using $lookup on 'userId'. The query runs slowly. Which optimization will most improve performance?
π
Save and resume this exam later
Email optional
Tap Create resume link to save this exact attempt (answers + timer). You can: β’ Leave email blank and we'll give you a link to copy, or β’ Enter your email (optional) and we'll email you the same link.