C100DEV Exam Question 11

You have a developers collection with the following document structure: { _id: 1, fname: 'John', lname: 'Smith', tech_stack: ['sql', 'git', 'python', 'linux', 'django', 'aws'] }, { _id: 2, fname: 'Michael', lname: 'Doe', tech_stack: [ 'git', 'python', 'sqlite', 'linux', 'flask' ] } Which of the following queries will return only the first three elements of the array in the tech_stack field?
  • C100DEV Exam Question 12

    Select all true statements regarding to unique indexes in MongoDB.
  • C100DEV Exam Question 13

    In which of the following CRUD operations can you specify a write concern? Select all that apply.
  • C100DEV Exam Question 14

    Select all true statements regarding to Aggregation Framework.
  • C100DEV Exam Question 15

    Suppose you are connected to mongod instance that is already running on port 27000 as admin user. You have to create a new user for an application that has the readWrite role. Use the db.createUser() command to create a user for a CRUD application. The requirements for this user are: -> role: readWrite on esmartdata database -> username: esmart -> password: esmart123 Which command should you use?