Câu 14: C100DBA: MongoDB Associate Database Administrator
A MongoDB database administrator needs to improve the performance of the following query: What index should the administrator use to achieve this goal?
Nội dung câu hỏi
A MongoDB database administrator needs to improve the performance of the following query: What index should the administrator use to achieve this goal?
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.employees.createIndex({salary: 1, name: 1, department: 0 });
- B. db.employees.createIndex({ department: 1, salary: -1 }); — đáp án hiện tại
- C. db.employees.createIndex({department: 1, salary: 1, name: 1 });
- D. db.employees.createIndex({ name: 1, department: 1, salary: -1 });
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.