Câu 32: C100DBA: MongoDB Associate Database Administrator
A database administrator is responsible for maintaining a MongoDB database that stores scientific papers. There is a scientific paper that is no longer relevant and needs to be removed from the database. Given the following sample collection within the database: What query should the administrator use to delete the pa…
Nội dung câu hỏi
A database administrator is responsible for maintaining a MongoDB database that stores scientific papers. There is a scientific paper that is no longer relevant and needs to be removed from the database. Given the following sample collection within the database: What query should the administrator use to delete the paper with the doi equals 10.1000/xyz123?
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.
- A. db.scientificPapers.deleteOne({ doi: “10.1000/xyz123” }) — đáp án hiện tại
- B. db.scientificPapers.drop({ doi: “10.1000/xyz123” })
- C. db.scientificPapers.deleteOne({ scientificPapers: “orders”},{ doi: “10.1000/xyz123” })
- D. db.scientificPapers.findOneAndDelete({ scientificPapers: “orders”,doi: “10.1000/xyz123” })
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.