🔥 3-day streak
Microsoft Azure Cosmos DB Developer Specialty (DP-420)75 / 104
Question 75 of 104
A blog platform stores each Post document and separate Comment documents, all partitioned by postId in the same container. Product wants each Post to display a commentCount without running an aggregate query on every page load. You need the commentCount on the Post to stay accurate whenever a comment is inserted, and the update must occur within the same logical operation. Which approach best satisfies this requirement?
Reviewed for accuracy · Report an issueNext question