Paper 16 · MongoDB DBA

59 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 reasons to use normalized data in documents instead o…
  2. 2.What information will be returned by rs.status() when it is run on a replica set…
  3. 3.Consider a collection called cities where the following updateMany is run: db.ci…
  4. 4.Consider a collection called numbers where the following updateOne is run: db.nu…
  5. 5.Which of the following below is true with regard to covering a query in MongoDB?…
  6. 6.Consider a collection called people where every document contains the following …
  7. 7.Consider the following query: db.teams.find({ "championships_won": { "$eq": 2 } …
  8. 8.The cached query plan is evicted from cache when: Check all that apply:
  9. 9.Consider the collection called travel that contains only the following 2 documen…
  10. 10.Consider the following index in the buildings collection: { height: 1 } Which of…
  11. 11.Compared with a single-field index, a compound index: Check all that apply:
  12. 12.When an index is created on the "name" field in the "friends" collection, which …
  13. 13.Which of the following index types are a valid index type in MongoDB? Check all …
  14. 14.Consider a collection called coll where you have built indexes with the followin…
  15. 15.Consider a collection called users where all documents contain the following fie…
  16. 16.Indexes are created to optimize the execution of certain operations, but they ca…
  17. 17.17,Here is the an example document in our comments collection: { _id: ObjectId("…
  18. 18.Consider a collection called coll which contains only the following documents: {…
  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.Which of the following factors have significant effects on query performance? Ch…
  22. 22.Consider the following mongod configuration file: storage: dbPath: /data/db syst…
  23. 23.Which of the following are valid configuration files for the WiredTiger storage …
  24. 24.Which of the following are examples of authentication? Check all that apply:
  25. 25.Which of the following are true of the MongoDB's built-in roles? Check all that …
  26. 26.Which of the following are true of the MongoDB's built-in role, dbAdmin? Check a…
  27. 27.With respect to system security, which of the following are authorization concer…
  28. 28.You have identified a potential vulnerability with MongoDB. What should you incl…
  29. 29.Which of the following are true of the MongoDB's built-in role, userAdmin? Check…
  30. 30.Which of the following commands are data definition language (DDL) operations? C…
  31. 31.Consider a mongod process configured to use auditing. The following set of comma…
  32. 32.Which of the following are supported client authentication mechanisms in MongoDB…
  33. 33.Which of the following are supported client authentication mechanisms? Check all…
  34. 34.When configuring a mongod process to use internal x.509 authentication, which of…
  35. 35.Consider the following role: use admin db.createRole({ "role": "customRole", "pr…
  36. 36.Consider a privilege with the following resource: { "db": "", "collection": "pro…
  37. 37.Which of the following statements about role-based access control are true? Chec…
  38. 38.You are tasked with creating a new user responsible for cluster administration. …
  39. 39.Which option verifies the identity of an incoming client connection on mongod? C…
  40. 40.Given the following commands that are run on the same machine and represent a re…
  41. 41.Consider the following db.serverStatus()['repl'] output: { topologyVersion: { pr…
  42. 42.Consider the following rs.status() output: members: [ { _id: 0, name: 'localhost…
  43. 43.Suppose you have a one node replica set with the following replication configura…
  44. 44.In the event of a server failure, how does MongoDB guarantee availability in a r…
  45. 45.Which replica set node member type requires the priority to be 0? Check all that…
  46. 46.Which of the following MongoDB features can help you to minimize downtime due to…
  47. 47.Which of the following MongoDB deployment types support using a write concern? C…
  48. 48.Which of the following read concerns return data committed to the majority of re…
  49. 49.Consider the following scenarios for reconfiguration of a replica set and indica…
  50. 50.Which of the following is true about Read Preferences in MongoDB? Check all that…
  51. 51.In MongoDB, the shard key: Check all that apply:
  52. 52.Which of the following are true for MongoDB's Config Database? Check all that ap…
  53. 53.Consider the following read commands that are sent to your sharded cluster: Quer…
  54. 54.Given the following query: find({"genre": "action"}).sort({"year": 1}).skip(100)…
  55. 55.Consider a sharded collection products that contains 4 total chunks. At some poi…
  56. 56.Hashed shard keys can be used to: Check all that apply:
  57. 57.Which of the following types of data are stored in the Config DB? Check all that…
  58. 58.Take the following into consideration: You currently have a replica set with thr…
  59. 59.In a sharded collection, which of the following is true of the primary shard? Ch…

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 ↗