BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft DP-420 Exam - Topic 5 Question 55 Discussion

Posted by Alison on Dec 10, 2024 at 01:49 PM

You have an Azure subscription.

You plan to create an Azure Cosmos DB for NoSQL database named DB1 that will store author and book data for authors that have each published up to ten books. Typical and frequent queries of the data will include:

* All books written by an individual author

* The synopsis of individual books

You need to recommend a data model for DB1. The solution must meet the following requirements:

* Support transactional updates of the author and book data.

* Minimize read operation costs.

What should you recommend?

Suggested Answer: D

Get Premium DP-420 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
39 comments · newest first
KA
Kaycee 12 months ago
Embedding books in author items sounds smart, but what about updates?
YA
Yan 12 months ago
Wait, can Cosmos DB really handle that many transactions efficiently?
RE
Ressie 1 year ago
Three containers in option B seem excessive for this use case.
WI
Wilson 1 year ago
I disagree, option A would be more efficient for queries.
EV
Evangelina 1 year ago
I think option C is the best choice for embedding books with authors.
DE
Delbert 1 year ago
I recall that embedding data can help with performance, but I’m uncertain if option C or D is better for transactional updates. They both seem viable.
EL
Elin 1 year ago
I practiced a similar question where we had to balance transactional updates and read costs. I feel like option A might be too complex with multiple relationships.
EL
Ellsworth 1 year ago
I'm not entirely sure, but I think having a single container for both authors and books could simplify things. That might be option D?
ES
Essie 1 year ago
I remember discussing the importance of minimizing read operation costs, so maybe option C is a good choice since it embeds books within the author items.
GE
German 1 year ago
This is a tough one. I'm not sure if embedding the book list is the best approach - what if an author publishes a new book? That would require updating the author item, which could get expensive. Maybe option B with a separate container for the author-book relationship is a safer bet.
AR
Arlene 1 year ago
Okay, I think I've got it. We want to minimize read costs, so embedding the book list in the author item makes the most sense. That way we can quickly fetch all the books for a given author. Option C is the way to go here.
SO
Sommer 1 year ago
Hmm, I'm a bit confused on the relationship between authors and books. Do we need a separate container to store that, or can we embed it in the author or book items? I'll have to think through the tradeoffs carefully.
MI
Mira 1 year ago
This looks like a classic Cosmos DB data modeling question. I'd start by considering the requirements - we need to support transactional updates and minimize read costs. That points me towards option C or D.
JE
Jennifer 2 years ago
Option C is the way to go! Embedding the book list in the author item is like putting all your books on the same shelf - easy to find what you need.
RI
Ricarda 2 years ago
↳ replying to Jennifer
I think I'll go with option C for my Azure Cosmos DB data model. Thanks for the recommendation!
DI
Dino 2 years ago
↳ replying to Jennifer
It definitely simplifies the data structure and makes querying for author and book data more straightforward.
RA
Rachael 2 years ago
↳ replying to Jennifer
I agree, having two containers and embedding the book list in the author item makes sense for efficient queries.
HA
Hayley 2 years ago
↳ replying to Jennifer
Option C is the way to go! Embedding the book list in the author item is like putting all your books on the same shelf - easy to find what you need.
CA
Carin 2 years ago
I don't know, man. Option D sounds like a recipe for a hot mess. Why would you want to cram both author and book data into a single container? That's just asking for trouble.
DA
Danica 2 years ago
↳ replying to Carin
C) Create two containers, one that stores author items and another that stores book items. Embed a list of each author's books in the corresponding author item.
RY
Ryan 2 years ago
↳ replying to Carin
B) Create three containers, one that stores author items, a second that stores book items, and a third that stores items that represent the relationship between the authors and their books.
MA
Maryln 2 years ago
↳ replying to Carin
A) Create a single container that stores author items and book items, and then items that represent the relationship between the authors and their books.
RO
Rosendo 2 years ago
That's a good point, Lenita. Option C could definitely help minimize read operation costs.
LE
Lenita 2 years ago
I see your point, Gerry, but I think option C is the most efficient as it embeds the list of books directly in the author item.
VE
Velda 2 years ago
Definitely going with option C. It's a simple and efficient data model that meets all the requirements. Plus, it keeps the author and book data nicely organized.
KE
Kerry 2 years ago
↳ replying to Velda
Embedding the list of books in the author item does sound like a clean solution.
SK
Skye 2 years ago
↳ replying to Velda
I agree, option C seems like the best choice for this scenario.
GE
Gerry 2 years ago
I disagree, I believe option B is better as it separates the data into different containers for better organization.
AL
Altha 2 years ago
Option B seems overcomplicated for this use case. The extra container for the author-book relationship is unnecessary if we can just embed the book list in the author item.
RO
Rosendo 2 years ago
I think option A is the best choice because it keeps all the data in one container.
ER
Eric 2 years ago
I'd recommend option C. Embedding the book list in the author item makes sense for the given query patterns, and it also supports transactional updates.
CR
Cristal 2 years ago
↳ replying to Eric
Option C definitely seems like the most suitable choice for this database setup.
AL
Aleisha 2 years ago
↳ replying to Eric
Creating two containers seems like the best approach for this scenario.
SA
Samira 2 years ago
↳ replying to Eric
Embedding the book list in the author item will definitely help minimize read operation costs.
MA
Mariann 2 years ago
↳ replying to Eric
Option C seems like the most logical solution for this scenario.
FE
Fernanda 2 years ago
↳ replying to Eric
I agree, embedding the book list in the author item will minimize read operation costs.
SH
Sherly 2 years ago
↳ replying to Eric
I agree, embedding the book list in the author item will make the queries more efficient.
KE
Kerry 2 years ago
↳ replying to Eric
Option C is the way to go. It's efficient and meets all the requirements.
CL
Clemencia 2 years ago
↳ replying to Eric
I think option C is the best choice. It keeps the data organized and supports transactional updates.
0/2000 characters

Save Cancel