Difficulty: 4/10InsertOne/InsertMany, Error handling, Write concernsMongoDB provides the following methods to insert documents into a collection:1db.collection.insertOne()2db.collection.insertMany()db.collection.insertOne()Copydb.collection.insertMany()CopyScenario Questions0-2 years experience1We have a simple Express endpoint that receives a JSON payload and needs to store it in a MongoDB collection. Walk me through the code you'd write to insert the document using the Node.js driver.2If the insert fails because the database is down, how would you handle the error in your route handler?2-5 years experience1Our service now needs to insert multiple user activity logs at once. Which MongoDB driver method would you choose, and what considerations affect your choice?Follow-up QuestionsWhat default write concern does the driver use, and when would you change it?How does using insertMany affect atomicity compared to multiple insertOne calls?Can you show how you'd log insert latency for monitoring purposes?Suggest Improvement