Complete the code to check the maximum document size allowed in MongoDB.
maxSize = [1]The maximum BSON document size in MongoDB is 16 megabytes, which equals 16777216 bytes.
Complete the code to create a document with a nested structure in MongoDB.
document = {"name": "Alice", "address": [1]Nested documents in MongoDB are represented as embedded objects, like JSON objects.
Fix the error in the document structure to comply with MongoDB rules.
document = {"_id": ObjectId(), "name": "Bob", "age": [1]Age should be stored as a number, not as a string or array, to follow MongoDB best practices.
Fill both blanks to create a valid MongoDB document with an array and a nested document.
document = {"tags": [1], "profile": [2]Arrays are enclosed in square brackets, and nested documents use curly braces.
Fill all three blanks to define a MongoDB document with a nested document, an array, and a numeric field.
document = {"user": [1], "roles": [2], "score": [3]The user field is a nested document, roles is an array, and score is a number.