Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Cloud-Native Apps with Azure Cosmos DB: DP-420 Exam Prep, Exercises of Computer Networks

A set of practice questions and answers for the microsoft azure cosmos db dp-420 exam. It covers key concepts related to designing and implementing cloud-native applications using azure cosmos db, including indexing, change feed, authentication, and customer-managed keys. Designed to help individuals prepare for the dp-420 exam and gain a deeper understanding of azure cosmos db.

Typology: Exercises

2023/2024

Uploaded on 09/19/2024

beavers-kessler
beavers-kessler 🇺🇸

42 documents

1 / 15

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
https://www.leads4pass.com/dp-420.html
2024 Latest leads4pass DP-420 PDF and VCE dumps Download
DP-420Q&As
Designing and Implementing Cloud-Native Applications Using Microsoft
Azure Cosmos DB
Pass Microsoft DP-420 Exam with 100% Guarantee
Free Download Real Questions & Answers PDF and VCE file from:
https://www.leads4pass.com/dp-420.html
100% Passing Guarantee
100% Money Back Assurance
Following Questions and Answers are all new published by Microsoft
Official Exam Center
DP-420 PDF Dumps | DP-420 Exam Questions | DP-420 Braindumps 1 / 15
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff

Partial preview of the text

Download Cloud-Native Apps with Azure Cosmos DB: DP-420 Exam Prep and more Exercises Computer Networks in PDF only on Docsity!

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

DP-

Q&As

Designing and Implementing Cloud-Native Applications Using Microsoft

Azure Cosmos DB

Pass Microsoft DP-420 Exam with 100% Guarantee

Free Download Real Questions & Answers PDF and VCE file from:

https://www.leads4pass.com/dp-420.html

100% Passing Guarantee

100% Money Back Assurance

Following Questions and Answers are all new published by Microsoft

Official Exam Center

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

QUESTION 1

HOTSPOT

You have an Azure Cosmos DB Core (SQL) API account used by an application named App1. You open the Insights pane for the account and see the following chart.

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic. NOTE: Each correct selection is worth one point. Hot Area:

Correct Answer:

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

Which path will be indexed? A. /product/brand B. /product/category C. /product/[ ]/category D. /product/brand/tailspin Correct Answer: A The indexing policy has an includedPaths array that contains only one path: /product/brand/. This means that only the properties under /product/brand will be indexed. The symbol indicates that only scalar values will be indexed, not arrays or objects1. The excludedPaths array contains a single path: /*. This means that all other properties will be excluded from indexing. The * symbol indicates a wildcard that matches any property name1.

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

Therefore, the paths /product/category , /product/[ ]/category , and /product/brand/tailspin will not be indexed.

QUESTION 3 You need to provide a solution for the Azure Functions notifications following updates to con-product. The solution must meet the business requirements and the product catalog requirements. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point. A. Configure the trigger for each function to use a different leaseCollectionPrefix B. Configure the trigger for each function to use the same leaseCollectionName C. Configure the trigger for each function to use a different leaseCollectionName D. Configure the trigger for each function to use the same leaseCollectionPrefix Correct Answer: AB leaseCollectionPrefix: when set, the value is added as a prefix to the leases created in the Lease collection for this Function. Using a prefix allows two separate Azure Functions to share the same Lease collection by using different prefixes. Scenario: Use Azure Functions to send notifications about product updates to different recipients. Trigger the execution of two Azure functions following every update to any document in the con-product container. Reference: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger

QUESTION 4 You have an Azure Cosmos DB account named account1. You have several apps that connect to account1 by using the account\'s secondary key. You then configure the apps to authenticate by using service principals. You need to ensure that account1 will only allow apps to connect by using an Azure AD identity. Which account property should you modify? A. disableKeyBasedMetadataWriteAccess , B. disableLocalAuth C. userAssignedldentatxe D. allowedOrxgins Correct Answer: B The disableLocalAuth property is a boolean flag that indicates whether local authentication methods such as

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

Correct Answer:

Box 1: No An alert is triggered when the DB key is regenerated, not when it is used. Note: The az cosmosdb keys regenerate command regenerates an access key for a Azure Cosmos DB database account. Box 2: No Only an SMS action will be taken. Emailreceivers is empty so no email action is taken. Box 3: Yes Yes, an alert is triggered when the DB key is regenerated. Reference: https://docs.microsoft.com/en-us/cli/azure/cosmosdb/keys

QUESTION 7 You plan to create an Azure Cosmos DB Core (SQL) API account that will use customer-managed keys stored in Azure Key Vault.

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-setup-cmk

QUESTION 8 You have a database in an Azure Cosmos DB for NoSQL account. The database contains a container named container1. The indexing mode container1 is set to none. You configure Azure Cognitive Search to extract data from container1 and make the data searchable. You discover that the Cognitive Search index is missing all the data from the Azure Cosmos DB index. What should you do to resolve the issue? A. Modify The index attributes in Cognitive Search to searchable. B. Modify the index attributes in Cognitive Search to Retrievable. C. Change the indexing mode of container 1 to consistent- D. Modify the indexing policy of container 1 to exclude the / * path Correct Answer: C

QUESTION 9

You have a container named container1 in an Azure Cosmos DB for NoSQL account named account1 that is set to the session default consistency level. The average size of an item in container1 is 20 KB. You have an application named App1 that uses the Azure Cosmos DB SDK and performs a point read on the same set of items in container1 every minute.

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

You need to minimize the consumption of the request units (RUs) associated to the reads by App1. What should you do? A. In account1, change the default consistency level to bounded staleness. B. In App1, change the consistency level of read requests to consistent prefix. C. In account1, provision a dedicated gateway and integrated cache D. In App1, modify the connection policy settings. Correct Answer: B The cost of a point read for a 1 KB item is 1 RU. The cost of other operations depends on factors such as item size, indexing policy, consistency level, and query complexity1. To minimize the consumption of RUs, you can optimize these factors according to your application needs. For your scenario, one possible way to minimize the consumption of RUs associated to the reads by App1 is to change the consistency level of read requests to consistent prefix. Consistent prefix is a lower consistency level than session, which is the default consistency level for Azure Cosmos DB. Lower consistency levels consume fewer RUs than higher consistency levels2. Consistent prefix guarantees that reads never see out-of-order writes and that monotonic reads are preserved1. This may be suitable for your application if you can tolerate some eventual consistency.

QUESTION 10 You are troubleshooting the current issues caused by the application updates. Which action can address the application updates issue without affecting the functionality of the application? A. Enable time to live for the con-product container. B. Set the default consistency level of account1 to strong. C. Set the default consistency level of account1 to bounded staleness. D. Add a custom indexing policy to the con-product container. Correct Answer: C Bounded staleness is frequently chosen by globally distributed applications that expect low write latencies but require total global order guarantee. Bounded staleness is great for applications featuring group collaboration and sharing, stock ticker, publish-subscribe/queueing etc. Scenario: Application updates in con-product frequently cause HTTP status code 429 "Too many requests". You discover that the 429 status code relates to excessive request unit (RU) consumption during the updates. Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

The orders container uses customerIdas the partition key. You need to provide a report of the total items ordered per month by item type. The solution must meet the following requirements:

Ensure that the report can run as quickly as possible.

Minimize the consumption of request units (RUs). What should you do? A. Configure the report to query orders by using a SQL query. B. Configure the report to query a new aggregate container. Populate the aggregates by using the change feed. C. Configure the report to query orders by using a SQL query through a dedicated gateway. D. Configure the report to query a new aggregate container. Populate the aggregates by using SQL queries that run daily. Correct Answer: B You can facilitate aggregate data by using Change Feed and Azure Functions, and then use it for reporting. Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed

QUESTION 13 HOTSPOT You have a database named telemetry in an Azure Cosmos DB Core (SQL) API account that stores IoT data. The database contains two containers named readings and devices. Documents in readings have the following structure.

id

deviceid

timestamp

ownerid

2024 Latest leads4pass DP-420 PDF and VCE dumps Download

measures (array) -type -value -metricid Documents in devices have the following structure. id deviceid owner

  • ownerid -emailaddress -name brand model For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:

Correct Answer:

Box 1: Yes Need to join readings and devices.