Download Microsoft.DP-420.VCEplus.2022-03-13.51q.vcex

Download Exam

File Info

Exam Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB (beta)
Number DP-420
File Name Microsoft.DP-420.VCEplus.2022-03-13.51q.vcex
Size 12 MB
Posted Mar 13, 2022
Download Microsoft.DP-420.VCEplus.2022-03-13.51q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

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?


  1. Enable time to live for the con-product container.
  2. Set the default consistency level of account1 to strong.
  3. Set the default consistency level of account1 to bounded staleness.
  4. Add a custom indexing policy to the con-product container.
Correct answer: C
Explanation:
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 discoverthat 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
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 discoverthat 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



Question 2

You need to select the partition key for con-iot1. The solution must meet the IoT telemetry requirements.  
What should you select?


  1. the timestamp
  2. the humidity
  3. the temperature
  4. the device ID
Correct answer: D
Explanation:
The partition key is what will determine how data is routed in the various partitions by Cosmos DB and needs to make sense in the context of your specific scenario. The IoT Device ID is generally the "natural" partition key for IoT applications.  Scenario: The iotdb database will contain two containers named con-iot1 and con-iot2. Ensure that Azure Cosmos DB costs for IoT-related processing are predictable. Reference:   https://docs.microsoft.com/en-us/azure/architecture/solution-ideas/articles/iot-using-cosmos-db
The partition key is what will determine how data is routed in the various partitions by Cosmos DB and needs to make sense in the context of your specific scenario. The IoT Device ID is generally the "natural" partition key for IoT applications.  
Scenario: The iotdb database will contain two containers named con-iot1 and con-iot2. Ensure that Azure Cosmos DB costs for IoT-related processing are predictable. 
Reference:  
https://docs.microsoft.com/en-us/azure/architecture/solution-ideas/articles/iot-using-cosmos-db



Question 3

You configure multi-region writes for account1.  
You need to ensure that App1 supports the new configuration for account1. The solution must meet the business requirements and the product catalog requirements.  
What should you do?


  1. Set the default consistency level of account1 to bounded staleness.
  2. Create a private endpoint connection.
  3. Modify the connection policy of App1.
  4. Increase the number of request units per second (RU/s) allocated to the con-product and con-productVendor containers.
Correct answer: D
Explanation:
App1 queries the con-product and con-productVendor containers.  Note: Request unit is a performance currency abstracting the system resources such as CPU, IOPS, and memory that are required to perform the database operations supported by Azure Cosmos DB.   Scenario: Develop an app named App1 that will run from all locations and query the data in account1.  Once multi-region writes are configured, maximize the performance of App1 queries against the data in account1.  Whenever there are multiple solutions for a requirement, select the solution that provides the best performance, as long as there are no additional costs associated.  Incorrect Answers: A: Bounded staleness relates to writes. App1 only do reads.  Note: 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.  Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
App1 queries the con-product and con-productVendor containers.  
Note: Request unit is a performance currency abstracting the system resources such as CPU, IOPS, and memory that are required to perform the database operations supported by Azure Cosmos DB.  
Scenario: 
Develop an app named App1 that will run from all locations and query the data in account1.  
Once multi-region writes are configured, maximize the performance of App1 queries against the data in account1.  
Whenever there are multiple solutions for a requirement, select the solution that provides the best performance, as long as there are no additional costs associated.  
Incorrect Answers: 
A: 
Bounded staleness relates to writes. App1 only do reads.  
Note: 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.  
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels



Question 4

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.


  1. Configure the trigger for each function to use a different leaseCollectionPrefix
  2. Configure the trigger for each function to use the same leaseCollectionName 
  3. Configure the trigger for each function to use a different leaseCollectionName
  4. Configure the trigger for each function to use the same leaseCollectionPrefix
Correct answer: AB
Explanation:
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
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 5

You have a database in an Azure Cosmos DB Core (SQL) API account.  
You plan to create a container that will store employee data for 5,000 small businesses. Each business will have up to 25 employees. Each employee item will have an emailAddress value.  
You need to ensure that the emailAddress value for each employee within the same company is unique.  
To what should you set the partition key and the unique key? To answer, select the appropriate options in the answer area.  
NOTE: Each correct selection is worth one point. 


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
Box 1: CompanyID   After you create a container with a unique key policy, the creation of a new or an update of an existing item resulting in a duplicate within a logical partition is prevented, as specified by the unique key constraint. The partition key  combined with the unique key guarantees the uniqueness of an item within the scope of the container.  For example, consider an Azure Cosmos container with Email address as the unique key constraint and CompanyID as the partition key. When you configure the user's email address with a unique key, each item has a unique email  address within a given CompanyID. Two items can't be created with duplicate email addresses and with the same partition key value. Box 2: emailAddress Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/unique-keys
Box 1: CompanyID  
After you create a container with a unique key policy, the creation of a new or an update of an existing item resulting in a duplicate within a logical partition is prevented, as specified by the unique key constraint. The partition key  
combined with the unique key guarantees the uniqueness of an item within the scope of the container.  
For example, consider an Azure Cosmos container with Email address as the unique key constraint and CompanyID as the partition key. When you configure the user's email address with a unique key, each item has a unique email  
address within a given CompanyID. Two items can't be created with duplicate email addresses and with the same partition key value. Box 2: emailAddress 
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/unique-keys



Question 6

You have an application named App1 that reads the data in an Azure Cosmos DB Core (SQL) API account. App1 runs the same read queries every minute. The default consistency level for the account is set to eventual.  
You discover that every query consumes request units (RUs) instead of using the cache.  
You verify the IntegratedCacheiteItemHitRate metric and the IntegratedCacheQueryHitRate metric. Both metrics have values of 0.  
You verify that the dedicated gateway cluster is provisioned and used in the connection string.  
You need to ensure that App1 uses the Azure Cosmos DB integrated cache.   
What should you configure?


  1. the indexing policy of the Azure Cosmos DB container
  2. the consistency level of the requests from App1
  3. the connectivity mode of the App1 CosmosClient
  4. the default consistency level of the Azure Cosmos DB account
Correct answer: C
Explanation:
Because the integrated cache is specific to your Azure Cosmos DB account and requires significant CPU and memory, it requires a dedicated gateway node. Connect to Azure Cosmos DB using gateway mode.  Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/integrated-cache-faq
Because the integrated cache is specific to your Azure Cosmos DB account and requires significant CPU and memory, it requires a dedicated gateway node. Connect to Azure Cosmos DB using gateway mode.  
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/integrated-cache-faq



Question 7

You provision Azure resources by using the following Azure Resource Manager (ARM) template.  
  
  
For each of the following statements, select Yes if the statement is true. Otherwise, select No.  
NOTE: Each correct selection is worth one point. 


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
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
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 8

You have an Azure Cosmos DB Core (SQL) API account named account1 that has the disableKeyBasedMetadataWriteAccess property enabled.  
You are developing an app named App1 that will be used by a user named DevUser1 to create containers in account1.  
DevUser1 has a non-privileged user account in the Azure Active Directory (Azure AD) tenant.  
You need to ensure that DevUser1 can use App1 to create containers in account1.  
What should you do? To answer, select the appropriate options in the answer area.  
NOTE: Each correct selection is worth one point. 


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
Box 1: Resource tokens Resource tokens provide access to the application resources within a database. Resource tokens: Provide access to specific containers, partition keys, documents, attachments, stored procedures, triggers, and UDFs.  Box 2: Azure Resource Manager API You can use Azure Resource Manager to help deploy and manage your Azure Cosmos DB accounts, databases, and containers.  Incorrect Answers: The Microsoft Graph API is a RESTful web API that enables you to access Microsoft Cloud service resources.  Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/secure-access-to-data https://docs.microsoft.com/enus/rest/api/resources/
Box 1: Resource tokens 
Resource tokens provide access to the application resources within a database. Resource tokens: 
Provide access to specific containers, partition keys, documents, attachments, stored procedures, triggers, and UDFs.  
Box 2: Azure Resource Manager API 
You can use Azure Resource Manager to help deploy and manage your Azure Cosmos DB accounts, databases, and containers.  
Incorrect Answers: 
The Microsoft Graph API is a RESTful web API that enables you to access Microsoft Cloud service resources.  
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/secure-access-to-data https://docs.microsoft.com/enus/rest/api/resources/



Question 9

You have an Azure Cosmos DB Core (SQL) account that has a single write region in West Europe.  
You run the following Azure CLI script.  
  
For each of the following statements, select Yes if the statement is true. Otherwise, select No.  
NOTE: Each correct selection is worth one point. 


Correct answer: To work with this question, an Exam Simulator is required.
Explanation:
Box 1: Yes The Automatic failover option allows Azure Cosmos DB to failover to the region with the highest failover priority with no user action should a region become unavailable.  Box 2: No West Europe is used for failover. Only North Europe is writable.  To Configure multi-region set UseMultipleWriteLocations to true.  Box 3: Yes Provisioned throughput with single write region costs $0.008/hour per 100 RU/s and provisioned throughput with multiple writable regions costs $0.016/per hour per 100 RU/s.  Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/how-to-multi-master https://docs.microsoft.com/en-us/azure/cosmosdb/optimize-cost-regions 
Box 1: Yes 
The Automatic failover option allows Azure Cosmos DB to failover to the region with the highest failover priority with no user action should a region become unavailable.  
Box 2: No 
West Europe is used for failover. Only North Europe is writable.  
To Configure multi-region set UseMultipleWriteLocations to true.  
Box 3: Yes 
Provisioned throughput with single write region costs $0.008/hour per 100 RU/s and provisioned throughput with multiple writable regions costs $0.016/per hour per 100 RU/s.  
Reference: 
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/how-to-multi-master https://docs.microsoft.com/en-us/azure/cosmosdb/optimize-cost-regions 



Question 10

You are developing an application that will use an Azure Cosmos DB Core (SQL) API account as a data source.  
You need to create a report that displays the top five most ordered fruits as shown in the following table.  
  
  
A collection that contains aggregated data already exists. The following is a sample document: 
{  
"name": "apple", 
"type": ["fruit", "exotic"],  
"orders": 10000 } 
Which two queries can you use to retrieve data for the report? Each correct answer presents a complete solution.  
NOTE: Each correct selection is worth one point.  


Correct answer: BD
Explanation:
ARRAY_CONTAINS returns a Boolean indicating whether the array contains the specified value. You can check for a partial or full match of an object by using a boolean expression within the command.  Incorrect Answers: A: Default sorting ordering is Ascending. Must use Descending order. C: Order on Orders not on Type. Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-query-array-contains
ARRAY_CONTAINS returns a Boolean indicating whether the array contains the specified value. You can check for a partial or full match of an object by using a boolean expression within the command.  
Incorrect Answers: 
A: Default sorting ordering is Ascending. Must use Descending order. C: Order on Orders not on Type. 
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-query-array-contains









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files