Paper 13 · MongoDB DBA

60 questions in their original order. Browse short previews and selected public explanations, or start learning to answer every question and review its explanation.

Questions and explanations

  1. 1.Which of the following are advantages of embedded data in documents when compare…
  2. 2.What information will be returned by rs.status() when it is run on a replica set…
  3. 3.Which documents from the buildings collection would be modified by the following…
  4. 4.Which documents will be returned by the following query? db.cars.find({ "miles":…
  5. 5.Consider a collection called coll which contains only the following documents: {…
  6. 6.How would the following query change if we set { upsert: true } as the third par…
  7. 7.Consider a collection called stuff which only contains the following documents: …
  8. 8.You have a very large movies collection with the following indexes: db.movies.ge…
  9. 9.Consider the collection called travel that contains only the following 2 documen…
  10. 10.Consider a collection called routes with the following index: { "dst_airport": 1…
  11. 11.Consider a collection called travel with the following index: { "name": 1,"age":…
  12. 12.Compared with a single-field index, a compound index: Check all that apply:
  13. 13.Given a collection with this document in it: { "_id": 1, "name": "Selina Kyle", …
  14. 14.Consider a collection students with the following index: { "firstname": 1, "last…
  15. 15.What happens to a document in a TTL index when it expires? Choose the best answe…
  16. 16.What actions must you take on a secondary to use it as a dedicated analytical no…
  17. 17.Consider a collection called users where all documents contain the following fie…
  18. 18.You have created the following index on a collection called people: db.people.cr…
  19. 19.Consider the following document from the system.profile collection: { "op": "ins…
  20. 20.Which of the following choices is the preferred method for stopping a running mo…
  21. 21.Consider the following mongod configuration file: storage: dbPath: /data/db syst…
  22. 22.What information will be returned by the following command line tool? mongostat …
  23. 23.Which of the following mongod command line arguments will impact how data and in…
  24. 24.Which of the following are best practices that system administrators should enfo…
  25. 25.Which of the following are examples of authentication? Check all that apply:
  26. 26.Which of the following applies to the localhost exception? Choose the best answe…
  27. 27.Which of the following are true of the first user created for an Atlas cluster? …
  28. 28.Which of the following are true of the MongoDB's built-in role, dbAdmin? Check a…
  29. 29.With respect to system security, which of the following are authorization concer…
  30. 30.Consider the following audit log message: { "atype" : "createUser", "ts" : { "$d…
  31. 31.Why are CRUD operations not logged by default when auditing is enabled? Check al…
  32. 32.Which of the following are preferred configuration options in a sharded cluster?…
  33. 33.Your organization has decided that database users should authenticate using X509…
  34. 34.When configuring a replica set to use internal keyfile authentication, which of …
  35. 35.You are tasked with creating a new user responsible for cluster administration. …
  36. 36.Which of the following methods can be used to add additional privileges to an ex…
  37. 37.When should you create a user-defined role? Check all that apply:
  38. 38.Which of the following statements about role-based access control are true? Chec…
  39. 39.Which of the following are supported methods of key management when using the en…
  40. 40.The following diagram defines a system with a replica set cluster and two client…
  41. 41.Which of the following read concerns return data committed to the majority of re…
  42. 42.Which of the following statements are true about the oplog.rs collection? Check …
  43. 43.Which replica set node member type requires the priority to be 0? Check all that…
  44. 44.Consider the following replication configuration: rs.config() { "_id" : "rs0", "…
  45. 45.Consider the output of the db.isMaster() command: db.isMaster() { "hosts": [ "no…
  46. 46.Which of the following collections can exist in a MongoDB's local DB when the no…
  47. 47.Which command do you use to immediately add a member to a deployed replica set w…
  48. 48.Which of the following are valid purposes for a hidden node in your replica set?…
  49. 49.Consider a replica set with 5 healthy nodes and no arbiters. If the primary node…
  50. 50.Consider a replica set with 3 healthy data bearing nodes of equal priority and n…
  51. 51.In MongoDB, the shard key: Check all that apply:
  52. 52.In order to route requests to the correct shards, mongos must know where each of…
  53. 53.Consider a collection called reviews which consists of documents with the follow…
  54. 54.Consider a collection students that has been sharded using the following key: { …
  55. 55.When querying a sharded cluster, which component of the cluster routes the query…
  56. 56.Consider a sharded collection products that contains 4 total chunks. At some poi…
  57. 57.Consider the following aggregation pipeline: use services db.restaurants.aggrega…
  58. 58.Consider a sharded collection that uses a hashed shard key. Which of the followi…
  59. 59.Consider the following query: db.movies.aggregate([ { $lookup: { from: "cinemas"…
  60. 60.Consider the following read commands that are sent to your sharded cluster: Quer…

AUTHOR · PROJECTS · OPEN SOURCE

Author & MongoDB projects

Building data platforms, MongoDB migration and sync tools, and cloud operations products.

Contact the author for any MongoDB needs.

Contact the author ↗mlhp123@outlook.com

Support the author

If this question bank helps you, optional donations are welcome.

Scan with Alipay to support the authorOpen full-size donation image ↗