Complete the code to create a capped collection named 'logs' with a maximum size of 1MB.
db.createCollection('logs', { [1]: true, size: 1048576 })
The capped option must be set to true to create a capped collection.
Complete the code to create a capped collection with a maximum of 1000 documents.
db.createCollection('events', { capped: true, size: 5242880, [1]: 1000 })
The maxDocuments option limits the number of documents in a capped collection.
Fix the error in the command to create a capped collection named 'cache' with size 2MB.
db.createCollection('cache', { capped: [1], size: 2097152 })
The capped option must be set to the boolean true, not a string.
Fill both blanks to create a capped collection named 'messages' with size 5MB and max 5000 documents.
db.createCollection('messages', { [1]: true, size: [2], maxDocuments: 5000 })
Use capped: true to enable capped collection and set size to 5242880 bytes (5MB).
Fill all three blanks to create a capped collection named 'audit' with size 10MB, max 10000 documents, and enable autoIndexId.
db.createCollection('audit', { [1]: true, size: [2], [3]: true })
Set capped: true to enable capped collection, size to 10485760 bytes (10MB), and autoIndexId: true to create an index on _id.