What is the role of profiler in MongoDB?
MongoDB includes a database profiler which shows performance characteristics of each operation against the database. With this profiler you can find queries (and write operations) which are slower than they should be and use this information for determining when an index is needed.
🔗Reference : stackoverflow.com
🔗Source: Azure Interview Questions and Answers