Halloween Sales Special - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: coponace

An employees collection contains documents with fields such as _id, name, age, department, and salary.

An employees collection contains documents with fields such as _id, name, age, department, and salary.

A database administrator needs to run a query that will return ONLY the name and age fields for all employees.

Which query meets this requirement?

A.

db.employees.find({ name: 1, age: 1 }, { })

B.

db.employees.find({ name: 1, age: 1, _id: 0 }, { })

C.

db.employees.find({ }, { name: 1, age: 1, _id: 0 })

D.

db.employees.find({ }, { name: 1, age: 1 })

C100DBA PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now C100DBA pdf
Get 70% Discount on All Products, Use Coupon: "coponace"