CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 15: C100DEV: MongoDB Associate Developer

Given the following schema sample in the inventory collection (with 1 million documents):{ “_id” : 1, “item” : “Apple”, “type” : “fruit”, “quantity” : 500 }What operations may become slower if the index {“item”: 1, “quantity”: 1} is created on this collection?

Nội dung câu hỏi

Given the following schema sample in the inventory collection (with 1 million documents):{ “_id” : 1, “item” : “Apple”, “type” : “fruit”, “quantity” : 500 }What operations may become slower if the index {“item”: 1, “quantity”: 1} is created on this collection?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. db.inventory.find({“quantity”: {$gte: 250, $lte: 400}})
  2. B. db.inventory.updateMany({{“type”: “food” }, {$set: {“status” : “BackOrder”}}})
  3. C. db.inventory.updateMany({{“type”: “fruit” }, {$inc: {“quantity” : 100}}}) — đáp án hiện tại
  4. D. db.inventory.find({“item”: “Apple”})

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề