Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
In this learning path, you’ll learn how Azure Cosmos DB uses partitioning to scale containers and how spending some time thinking about your data model helps to meet the performance needs of your applications.
This learning path helps prepare you for Exam DP-420: Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB.
Prerequisites:
Before starting this learning path, you should already have:
Identify an application’s key access patterns. Define the entities’ data model, along with containers to store the data with a partition key that will result in an efficient and scalable data store for the application.
Learning objectives:
In this module, you will:
Prerequisites:
Q1. Which of the following criteria would define a good candidate to embed two entities in a single document schema?
Many: Many relationships
Q2. Consider the following scenario: Your company has customers across four countries, with hundreds of thousands of customers for countries 1 and 2, and a few thousand customers for countries 3 and 4. Requests for each country total approximately 50,000 RU/s every hour of the day. Your application team proposes to use countryId
as the partition key for this container. Which of the following statements is true?
countryId
.Q3. Why is understanding the access pattern of your application and how to use this information in your data model design important?
Identify strategies for managing relationships between data entities, such as customers and sales data. Improve data-model performance and scaling by pre-aggregating and denormalizing your data. Use change-feed to maintain your data’s referential integrity.
Learning objectives:
At the completing this module we will learn:
Prerequisites:
Q1. In Azure Cosmos DB, what would be the most optimum way of managing referential integrity between different containers?
Q2. Consider the following Scenario: You are creating an application that will save the device metrics generated every minute by your different IOT devices. You have identified two entities that you would like to collect data for, the devices and the device metrics generated by each device. You were going to create two containers for these different entities but your data engineer suggests that you place both entities, in one single container. What should you do?
type
and give it the value device
. Create a document for each metrics data collected with the devicemetricsid property and all the metrics data, add a property called type
and give it the value devicemetrics
type
and give it the value device
‘. Create a document for each metrics data collected with the devicemetricsid and deviceid properties and all the metrics data, add a property called type
and give it the value devicemetrics
Q3. Consider the following Scenario: You are creating an application that will save the device metrics generated every minute by your different IOT devices. You have identified two entities that you would like to collect data for, the devices and the device metrics data generated by each device. You were going to create two containers for these different entities but your data engineer suggests that you place both entities, in one single container. You would like to be able to return the device’s general data and the number of metrics collections per device. How could we keep track of this inside the container?
GROUP BY
parameter in your query and use the aggregate count to return the number of device metrics collections per device.metricscollectioncount
and update it with the current number of metrics collection documents, when your app or Azure function adds a new metrics collection, also add 1 to the metricscollectioncount
property.metricscollectioncount
and update it with the current number of metrics collection documents, when your app or Azure function adds a new metrics collection, also add 1 to the metricscollectioncount
property inside a transactional batch.I hope this Implement a data modeling and partitioning strategy for Azure Cosmos DB SQL API Microsoft Quiz Answers would be useful for you to learn something new from this problem. If it helped you then don’t forget to bookmark our site for more Coding Solutions.
This Problem is intended for audiences of all experiences who are interested in learning about Data Science in a business context; there are no prerequisites.
Keep Learning!
More Coding Solutions >>