Paper 12 · MongoDB DBA

61 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.1Consider a collection called reviews which consists of documents with the follo…
  2. 2.Which of the following are reasons to use normalized data in documents instead o…
  3. 3.Which of the following statements are always true about shard keys? Check all th…
  4. 4.Consider the following chunk document: use config db.chunks.findOne() { "_id": "…
  5. 5.Which is a good method for reducing network latency from client application to d…
  6. 6.Hashed shard keys can be used to: Check all that apply:
  7. 7.Which of the following are true of a jumbo chunk in a MongoDB sharded cluster? C…
  8. 8.Which of the following is/are true when refining an existing shard key? Check al…
  9. 9.Which of the following are factors for fields that should influence a shard key …
  10. 10.Consider a sharded cluster where shards are limited by their heavy read workload…
  11. 11.Suppose you have a sharded collection called products with the following chunk r…
  12. 12.Consider the following write operation issued against a 3-node replica set: db.p…
  13. 13.Which of the following is/are true of the term field in a replica set configurat…
  14. 14.Consider a replica set with 5 healthy nodes and no arbiters. If the primary node…
  15. 15.Consider a replica set with 3 healthy data bearing nodes of equal priority and n…
  16. 16.Which command do you use to immediately add a member to a deployed replica set w…
  17. 17.Which of the following is/are true when configuring a voting member in a replica…
  18. 18.Which of the following collections can exist in a MongoDB's local DB when the no…
  19. 19.Which of the following MongoDB features can help you to minimize downtime due to…
  20. 20.Which of the following are true of using a write concern in MongoDB? Check all t…
  21. 21.Which of the following are the recommended settings when first adding a brand ne…
  22. 22.Given the following commands that are run on the same machine and represent a re…
  23. 23.Which of the following are supported methods of key management when using the en…
  24. 24.Consider the following role: use admin db.createRole({ "role": "customRole", "pr…
  25. 25.You are requested to create a database user that is able to perform the followin…
  26. 26.Which of the following commands will successfully create the user "dsj" and give…
  27. 27.Consider the following existing user definition: use admin db.getUser('yulia') {…
  28. 28.Your organization has decided that database users should authenticate using X509…
  29. 29.When configuring a replica set to use internal keyfile authentication, which of …
  30. 30.Which of the following are preferred configuration options in a sharded cluster?…
  31. 31.Why are CRUD operations not logged by default when auditing is enabled? Check al…
  32. 32.The following command line options were used to start a mongod process: mongod -…
  33. 33.Which of the following are examples of authentication? Check all that apply:
  34. 34.Which of the following are true of the MongoDB's built-in role, userAdmin? Check…
  35. 35.Which of the following applies to the localhost exception? Choose the best answe…
  36. 36.Which of the following are true of the MongoDB's built-in role, dbAdmin? Check a…
  37. 37.You have identified a potential vulnerability with MongoDB. What should you incl…
  38. 38.Which of the following are true of the MongoDB's built-in roles? Check all that …
  39. 39.To ensure that write operations are not lost in the event of a server failure, W…
  40. 40.Which of the following are valid logging levels for database application log fil…
  41. 41.Consider the following set of commands in the mongo shell: use admin db.setLogLe…
  42. 42.Which of the following statements are true about queries issued against a sharde…
  43. 43.Consider the following document from the system.profile collection: { "op": "ins…
  44. 44.Consider a collection students with the following index: { "firstname": 1, "last…
  45. 45.What happens to a document in a TTL index when it expires? Choose the best answe…
  46. 46.You have created the following index on the travel collection: db.travel.createI…
  47. 47.You have the following document in a collection: { "_id": ObjectId("570c04a4ad23…
  48. 48.What actions must you take on a secondary to use it as a dedicated analytical no…
  49. 49.Consider a collection called routes with the following index: { "dst_airport": 1…
  50. 50.Which of the following is/are true of single field indexes? Check all that apply…
  51. 51.Given the following query: db.clothes.find( { "price": { "$lt": 50.00 }, "catego…
  52. 52.Which of the following is/are true of unique indexes? Check all that apply:
  53. 53.You have a very large movies collection with the following indexes: > db.movies.…
  54. 54.Given the following query: db.people.find( {}, { "_id": 0, "country": 1, "city":…
  55. 55.Which of the following documents below from the sample collection will be return…
  56. 56.Consider the following example document: { "_id" : ObjectId("5bd761ddae323e45a93…
  57. 57.Consider the following query: db.movies.find( {"countries.0": "France", "genres.…
  58. 58.Which of the documents below from the people collection will be affected by the …
  59. 59.Which of the documents below from the people collection will be affected by the …
  60. 60.Consider a collection called coll which contains only the following documents: {…
  61. 61.What information will be returned by rs.status() when it is run on a replica set…

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 ↗