C100DEV MongoDB Overview and Document Model • Set 2
C100DEV MongoDB Overview and Document Model Practice Test 2 — 15 questions with explanations. Free, no signup.
A developer is building a MongoDB application that stores social media posts. Each post document includes an array of comments, and each comment is a subdocument with fields such as author, text, and timestamp. The developer later needs to update a specific comment's text. Which update operation should they use to modify only the targeted comment's text without replacing the entire comments array?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.