Microsoft certification · Exam DP-420

DP-420 Mock Exam Page 2

Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB

Free DP-420 mock exam questions 11–14, each with the answer and an explanation.

14 questions · 23 minutes · free, no sign-up

Free DP-420 questions

11–14 of 14 free
Question 11 Choose 1

You have an Azure Cosmos DB Core (SQL) API account.
You configure the diagnostic settings to send all log information to a Log Analytics
workspace.
You need to identify when the provisioned request units per second (RU/s) for resources
within the account were modified.
You write the following query.
AzureDiagnostics
| where Category == "ControlPlaneRequests"
What should you include in the query?

Show answerHide answer

Correct answer: A

| where OperationName startswith "AccountUpdateStart"

Explanation

Explanation:
The following are the operation names in diagnostic logs for different operations:
RegionAddStart, RegionAddComplete
RegionRemoveStart, RegionRemoveComplete
AccountDeleteStart, AccountDeleteComplete
RegionFailoverStart, RegionFailoverComplete
AccountCreateStart, AccountCreateComplete
*AccountUpdateStart*, AccountUpdateComplete
VirtualNetworkDeleteStart, VirtualNetworkDeleteComplete
DiagnosticLogUpdateStart, DiagnosticLogUpdateComplete
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/audit-control-plane-logs

Question 12

You have a database in an Azure Cosmos DB SQL API Core (SQL) account that is used
for development.
The database is modified once per day in a batch process.
You need to ensure that you can restore the database if the last batch process fails. The
solution must minimize costs.
How should you configure the backup settings? To answer, select the appropriate options
in the answer area.
NOTE: Each correct selection is worth one point.

Show answerHide answer

Explanation

Question 13

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 application to use the change feed processor to read the
change feed and you configure the application to trigger the function.
Does this meet the goal?

Show answerHide answer

Correct answer: B

No

Explanation

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

Question 14 Choose 1

You are implementing an Azure Data Factory data flow that will use an Azure Cosmos DB
(SQL API) sink to write a dataset. The data flow will use 2,000 Apache Spark partitions.
You need to ensure that the ingestion from each Spark partition is balanced to optimize
throughput.
Which sink setting should you configure?

Show answerHide answer

Correct answer: C

Batch size

Explanation

Explanation:
Batch size: An integer that represents how many objects are being written to Cosmos DB
collection in each batch. Usually, starting with the default batch size is sufficient. To further
tune this value, note:
Cosmos DB limits single request's size to 2MB. The formula is "Request Size = Single
Document Size * Batch Size". If you hit error saying "Request size is too large", reduce the
batch size value.
The larger the batch size, the better throughput the service can achieve, while make sure
you allocate enough RUs to empower your workload.
Reference: https://docs.microsoft.com/en-us/azure/data-factory/connector-azure-cosmosdb

That's the last free question

You've seen the free 30% (14 of 51 questions). Full access unlocks every question and full-length DP-420 mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the DP-420 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real DP-420 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full DP-420 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 51questions in the bank
  • Newmock on every attempt