[May-2023] Microsoft DP-420 DUMPS WITH REAL EXAM QUESTIONS [Q19-Q39]

Share

[May-2023] Microsoft DP-420 DUMPS WITH REAL EXAM QUESTIONS

2023 New ITPassLeader DP-420 PDF Recently Updated Questions


Microsoft DP-420 Exam Syllabus Topics:

TopicDetails
Topic 1
  • Aggregate data by using Change Feed and Azure Functions, including reporting
  • Manage data plane access to Azure Cosmos DB by using Azure Active Directory
Topic 2
  • Define and implement an indexing strategy for an Azure Cosmos DB Core API
  • Implement backup and restore for an Azure Cosmos DB solution
Topic 3
  • Plan and implement sizing and scaling for a database created with Azure Cosmos DB
  • Implement queries that use arrays, nested objects, aggregation, and ordering
Topic 4
  • Manage the number of change feed instances by using the change feed estimator
  • Calculate and evaluate throughput distribution based on partition key selection
Topic 5
  • Calculate and evaluate data distribution based on partition key selection
  • Provision and manage Azure Cosmos DB resources by using Azure Resource Manager templates (ARM templates)
Topic 6
  • Configure throughput for Azure Cosmos DB by using the Azure portal
  • Define automatic failover policies for regional failure for Azure Cosmos DB Core API
Topic 7
  • Implement a custom conflict resolution policy for Azure Cosmos DB Core API
  • Evaluate the impact of consistency model choices on performance and latency


The resources that you can use to prepare yourself for taking the Microsoft DP-420 Certification Exam include the following

You should also try to solve the questions that you are not familiar with. You can also prepare yourself for the DP-420 Exam by using the resources like books, articles, videos, online courses, and free study guides. In addition to the above-mentioned resources, you should always keep yourself updated with the latest technologies. You should know the Microsoft DP-420 Certification Exam questions and answers in detail. You should also know the new technologies that are being introduced in the market. You should also compare your performance with other candidates. It will help you to get a clear idea about your preparation. In the end, you should practice the DP-420 Certification Exam by using the practice test software. It will help you to get a clear idea about your preparation.

You should also practice the questions and answers of the DP-420 Certification Exam. You should try to solve the questions as soon as you finish reading the question. The candidate can use the PDF files of the DP-420 Dumps of the ITPassLeader. The package will be providing valid, real, and complete training material to pass the DP-420 Certification Exam. You can download the latest Microsoft DP-420 Certification Exam sample exams. You can get a good collection of the DP-420 Certification Exam them from the internet. The collection of the DP-420 Certification Exam sample exams includes the DP-420 Certification Exam questions and answers. You should prepare the questions and answers of the DP-420 Certification Exam by referring to the latest prep materials. You should also prepare the questions and answers of the DP-420 Certification Exam by using the Microsoft DP-420 Certification Exam desktop practice exam simulations. The candidate should always take a mock test before the actual exam. It will help you to get a clear idea about your preparation. You should also take a mock test periodically.

 

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

  • A. the humidity
  • B. the temperature
  • C. the timestamp
  • D. the device ID

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

 

NEW QUESTION 20
You have an Azure Cosmos DB Core (SQL) API account named storage1 that uses provisioned throughput capacity mode.
The storage1 account contains the databases shown in the following table.

The databases contain the containers shown in the following table.

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

Answer:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/plan-manage-costs
https://azure.microsoft.com/en-us/pricing/details/cosmos-db/

 

NEW QUESTION 21
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have a container named container1 in an Azure Cosmos DB Core (SQL) API account.
You need to make the contents of container1 available as reference data for an Azure Stream Analytics job.
Solution: You create an Azure Data Factory pipeline that uses Azure Cosmos DB Core (SQL) API as the input and Azure Blob Storage as the output.
Does this meet the goal?

  • A. Yes
  • B. No

Answer: B

Explanation:
Instead create an Azure function that uses Azure Cosmos DB Core (SQL) API change feed as a trigger and Azure event hub as the output.
The Azure Cosmos DB change feed is a mechanism to get a continuous and incremental feed of records from an Azure Cosmos container as those records are being created or modified. Change feed support works by listening to container for any changes. It then outputs the sorted list of documents that were changed in the order in which they were modified.
The following diagram represents the data flow and components involved in the solution:

 

NEW QUESTION 22
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.

Answer:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/how-to-multi-master
https://docs.microsoft.com/en-us/azure/cosmos-db/optimize-cost-regions

 

NEW QUESTION 23
You have a container named container1 in an Azure Cosmos DB Core (SQL) API account.
You need to provide a user named User1 with the ability to insert items into container1 by using role-based access control (RBAC). The solution must use the principle of least privilege.
Which roles should you assign to User1?

  • A. DocumentDB Account Contributor only
  • B. Cosmos DB Built-in Data Contributor only
  • C. CosmosDB Operator only
  • D. DocumentDB Account Contributor and Cosmos DB Built-in Data Contributor

Answer: C

Explanation:
Cosmos DB Operator: Can provision Azure Cosmos accounts, databases, and containers. Cannot access any data or use Data Explorer.
Incorrect Answers:
B: DocumentDB Account Contributor can manage Azure Cosmos DB accounts. Azure Cosmos DB is formerly known as DocumentDB.
C: DocumentDB Account Contributor: Can manage Azure Cosmos DB accounts.

 

NEW QUESTION 24
You need to configure an Apache Kafka instance to ingest data from an Azure Cosmos DB Core (SQL) API account. The data from a container named telemetry must be added to a Kafka topic named iot. The solution must store the data in a compact binary format.
Which three configuration items should you include in the solution? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. "connector.class": "com.azure.cosmos.kafka.connect.source.CosmosDBSourceConnector"
  • B. "connector.class": "com.azure.cosmos.kafka.connect.source.CosmosDBSinkConnector"
  • C. "key.converter": "org.apache.kafka.connect.json.JsonConverter"
  • D. "key.converter": "io.confluent.connect.avro.AvroConverter"
  • E. "connect.cosmos.containers.topicmap": "iot"
  • F. "connect.cosmos.containers.topicmap": "iot#telemetry"

Answer: B,D,F

Explanation:
C: Avro is binary format, while JSON is text.
F: Kafka Connect for Azure Cosmos DB is a connector to read from and write data to Azure Cosmos DB. The Azure Cosmos DB sink connector allows you to export data from Apache Kafka topics to an Azure Cosmos DB database. The connector polls data from Kafka to write to containers in the database based on the topics subscription.
D: Create the Azure Cosmos DB sink connector in Kafka Connect. The following JSON body defines config for the sink connector.
Extract:
"connector.class": "com.azure.cosmos.kafka.connect.sink.CosmosDBSinkConnector",
"key.converter": "org.apache.kafka.connect.json.AvroConverter"
"connect.cosmos.containers.topicmap": "hotels#kafka"
Incorrect Answers:
B: JSON is plain text.
Note, full example:
{
"name": "cosmosdb-sink-connector",
"config": {
"connector.class": "com.azure.cosmos.kafka.connect.sink.CosmosDBSinkConnector",
"tasks.max": "1",
"topics": [
"hotels"
],
"value.converter": "org.apache.kafka.connect.json.AvroConverter",
"value.converter.schemas.enable": "false",
"key.converter": "org.apache.kafka.connect.json.AvroConverter",
"key.converter.schemas.enable": "false",
"connect.cosmos.connection.endpoint": "Error! Hyperlink reference not valid.",
"connect.cosmos.master.key": "<cosmosdbprimarykey>",
"connect.cosmos.databasename": "kafkaconnect",
"connect.cosmos.containers.topicmap": "hotels#kafka"
}
}
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/kafka-connector-sink
https://www.confluent.io/blog/kafka-connect-deep-dive-converters-serialization-explained/

 

NEW QUESTION 25
You have a database in an Azure Cosmos DB Core (SQL) API account. The database is backed up every two hours.
You need to implement a solution that supports point-in-time restore.
What should you do first?

  • A. Configure the Point In Time Restore settings for the account.
  • B. Create a new account that has a periodic backup policy.
  • C. Enable Continuous Backup for the account.
  • D. Configure the Backup & Restore settings for the account.

Answer: C

 

NEW QUESTION 26
The following is a sample of a document in orders.

The orders container uses customerId as 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 a new aggregate container. Populate the aggregates by using SQL queries that run daily.
  • D. Configure the report to query orders by using a SQL query through a dedicated gateway.

Answer: B

Explanation:
You can facilitate aggregate data by using Change Feed and Azure Functions, and then use it for reporting.

 

NEW QUESTION 27
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?

  • A. Increase the number of request units per second (RU/s) allocated to the con-product and con-productVendor containers.
  • B. Modify the connection policy of App1.
  • C. Set the default consistency level of accountl to bounded staleness.
  • D. Create a private endpoint connection.

Answer: A

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.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels

 

NEW QUESTION 28
You maintain a relational database for a book publisher. The database contains the following tables.

The most common query lists the books for a given authorId.
You need to develop a non-relational data model for Azure Cosmos DB Core (SQL) API that will replace the relational database. The solution must minimize latency and read operation costs.
What should you include in the solution?

  • A. Create Author, Book, and Bookauthorlnk documents in the same container.
  • B. Create a container for Author and a container for Book. In each Author document and Book document embed the data from Bookauthorlnk.
  • C. Create a container that contains a document for each Author and a document for each Book. In each Book document, embed authorId.
  • D. Create a container for Author and a container for Book. In each Author document, embed bookId for each book by the author. In each Book document embed authorId of each author.

Answer: D

Explanation:
Store multiple entity types in the same container.

 

NEW QUESTION 29
You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. The container1 container has 120 GB of data.
The following is a sample of a document in container1.

The orderId property is used as the partition key.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

Answer:

Explanation:

 

NEW QUESTION 30
The settings for a container in an Azure Cosmos DB Core (SQL) API account are configured as shown in the following exhibit.

Which statement describes the configuration of the container?

  • A. Items stored in the collection will expire only if the item has a time to live value.
  • B. All items will be deleted after one year.
  • C. All items will be deleted after one hour.
  • D. Items stored in the collection will be retained always, regardless of the items time to live value.

Answer: A

Explanation:
When DefaultTimeToLive is -1 then your Time to Live setting is On (No default) Time to Live on a container, if present and the value is set to "-1", it is equal to infinity, and items don't expire by default.
Time to Live on an item:
This Property is applicable only if DefaultTimeToLive is present and it is not set to null for the parent container.
If present, it overrides the DefaultTimeToLive value of the parent container.

 

NEW QUESTION 31
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?

  • A. the connectivity mode of the App1 CosmosClient
  • B. the indexing policy of the Azure Cosmos DB container
  • C. the default consistency level of the Azure Cosmos DB account
  • D. the consistency level of the requests from App1

Answer: A

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.

 

NEW QUESTION 32
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.

Answer:

Explanation:

 

NEW QUESTION 33
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput.
You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value.
Solution: You configure the function to have an Azure CosmosDB trigger.
Does this meet the goal?

  • A. Yes
  • B. No

Answer: B

Explanation:
Instead configure an Azure Monitor alert to trigger the function.
You can set up alerts from the Azure Cosmos DB pane or the Azure Monitor service in the Azure portal.

 

NEW QUESTION 34
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You have an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput.
You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value.
Solution: You configure an Azure Monitor alert to trigger the function.
Does this meet the goal?

  • A. No
  • B. Yes

Answer: B

Explanation:
You can set up alerts from the Azure Cosmos DB pane or the Azure Monitor service in the Azure portal.
Note: Alerts are used to set up recurring tests to monitor the availability and responsiveness of your Azure Cosmos DB resources. Alerts can send you a notification in the form of an email, or execute an Azure Function when one of your metrics reaches the threshold or if a specific event is logged in the activity log.

 

NEW QUESTION 35
You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. Upserts of items in container1 occur every three seconds.
You have an Azure Functions app named function1 that is supposed to run whenever items are inserted or replaced in container1.
You discover that function1 runs, but not on every upsert.
You need to ensure that function1 processes each upsert within one second of the upsert.
Which property should you change in the Function.json file of function1?

  • A. feedPollDelay
  • B. leaseCollectionsThroughput
  • C. checkpointInterval
  • D. maxItemsPerInvocation

Answer: A

Explanation:
With an upsert operation we can either insert or update an existing record at the same time.
FeedPollDelay: The time (in milliseconds) for the delay between polling a partition for new changes on the feed, after all current changes are drained. Default is 5,000 milliseconds, or 5 seconds.
Incorrect Answers:
A: checkpointInterval: When set, it defines, in milliseconds, the interval between lease checkpoints. Default is always after each Function call.
C: maxItemsPerInvocation: When set, this property sets the maximum number of items received per Function call. If operations in the monitored collection are performed through stored procedures, transaction scope is preserved when reading items from the change feed. As a result, the number of items received could be higher than the specified value so that the items changed by the same transaction are returned as part of one atomic batch.

 

NEW QUESTION 36
You have a container in an Azure Cosmos DB Core (SQL) API account.
You need to use the Azure Cosmos DB SDK to replace a document by using optimistic concurrency.
What should you include in the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Answer:

Explanation:

Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.itemrequestoptions
https://cosmosdb.github.io/labs/dotnet/labs/10-concurrency-control.html

 

NEW QUESTION 37
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.

Answer:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/secure-access-to-data
https://docs.microsoft.com/en-us/rest/api/resources/

 

NEW QUESTION 38
You plan to deploy two Azure Cosmos DB Core (SQL) API accounts that will each contain a single database. The accounts will be configured as shown in the following table.

How should you provision the containers within each account to minimize costs? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Answer:

Explanation:

Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/serverless
https://docs.microsoft.com/en-us/azure/cosmos-db/provision-throughput-autoscale#use-cases-of-autoscale

 

NEW QUESTION 39
......


What are the objectives of the Microsoft DP-420 Certification Exam?

As per the guidance of the DP-420 Dumps, there are 02 main objectives of the Microsoft DP-420 Certification Exam. The first is to understand Azure Cosmos DB architecture & components, and the second is to understand the design and implementation of cloud-native applications using Microsoft Azure Cosmos DB. Assessment of the candidate's technical knowledge and skills in the field of Azure SQL Database Administration.

 

Latest DP-420 Pass Guaranteed Exam Dumps Certification Sample Questions: https://troytec.itpassleader.com/Microsoft/DP-420-dumps-pass-exam.html

0
0
0
0