M102 WEEK 7 QUIZ

Question: To run MongoDB with encryption over the wire, you need to:
Choose the best answer:

  1. Run your mongod with –auth
  2. Run your mongod with –keyFiles
  3. Compile mongodb with –ssl (Ans)

Question: Which of the following do you need to run with –auth or –keyFile in order to run your system with authentication?
Check all that apply:

  1. mongod (Ans)
  2. mongos (Ans)
  3. mongo
  4. driver client

Question: Which are true?
Choose the best answer:

  1. When using –keyFile with a replica set, the keyFile’s content is sent over the network between mongod nodes unencrypted
  2. When using –keyFile with a replica set, database contents are sent over the network between mongod nodes unencrypted (Ans)

Question: For MongoDB 2.2 and 2.4, which are true?
Choose the best answer:

  1. You can give a user read-only access to one database and write access to another database. (Ans)
  2. The user’s password is sent over the network unencrypted.
  3. The user’s password is stored on disk unencrypted.

Question: Which process would you use to reload data after using mongodump?
Choose the best answer:

  1. mongoimport
  2. mongorestore (Ans)
  3. mongodump
  4. mongos
  5. mongod

Question: After stopping the balancer on your sharded cluster, you may need to wait for a live migration to finish before the balancer stops. Type the command you would use in the mongo shell in order to stop the balancer.

Hint: It starts with the “sh” helper command…

Answer: sh.stopBalancer()

Question: You can store videos in mongoDB.
Choose the best answer:

  • True (Ans)
  • False

Question: If a database is 100GB in size and has an equal amount of random read and write operations occurring, which hardware configuration is likely to perform better?
Choose the best answer:

  1. 128 GB RAM and a rotating disk storage
  2. 32 GB RAM and solid state disk storage (Ans)

 

Leave a Reply

Your email address will not be published. Required fields are marked *