Topic · 13 of 46 questions freeTopic 2: Misc. Questions
Question 11Choose 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?
Correct answer:
A.
| where OperationName startswith "AccountUpdateStart"
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.
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?
Correct answer:
B.
No
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 14Choose 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?
Correct answer:
C.
Batch size
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% of every topic (14 of 51 questions). Get complete access for every question, explanation and the timed mock exam.
Get exam-ready with a timed DP 420 Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB mock exam designed to match the official exam's question format, question count, and time limit.