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

Câu 34: C100DBA: MongoDB Associate Database Administrator

A collection named users contains the following sample documents: A MongoDB administrator needs to identify all documents where the status field is either “active” or “pending”.What query using the $in operator meets this requirement?

Nội dung câu hỏi

A collection named users contains the following sample documents: A MongoDB administrator needs to identify all documents where the status field is either “active” or “pending”.What query using the $in operator meets this requirement?

Minh họa câu hỏi

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.users.find({ “status”: { “$in”: { “active”: true, “pending”: true } } })
  2. B. db.users.find({ “status”: { “$in”: [“active”, “pending”] } }) — đáp án hiện tại
  3. C. db.users.find({ “status”: { “$in”: “active pending” } })
  4. D. db.users.find({ “status”: { “$in”: “active”, “pending” } })

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ề