HOTSPOT
You have an Azure subscription. The subscription contains an Azure Cosmos DB for NoSQL account named account1 that hosts a container named Customers. Multi-region writes are allowed.
You execute the following C# code.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Yes
No
Yes
Explanation: The resolution path names the stored procedure whose ID is `conflict`. Custom conflict resolution does not put the last writer’s session token in an item’s `id`. Changing the container’s conflict resolution policy to LastWriterWins requires recreating the container.
Question 39
You have an Azure Cosmos DB for NoSQL container.
All queries to the container use the Bounded Staleness consistency level.
You discover that when many queries are executed against the container, an HTTP 429 error is returned.
What are two ways to reduce the number of HTTP 429 errors? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
A. Use a query request option to change the consistency level to Strong.
B. Add a post-trigger to the container.
C. Add a pre-trigger to the container.
D. Add query retry logic to the client application.
E. Increase the maximum throughput.
Show Answer
Correct Answer: D, E
Explanation: HTTP 429 indicates that requests are being rate-limited because the container’s available throughput is insufficient. Increasing the maximum throughput gives the container more capacity, and client-side retry logic lets throttled queries retry after the server’s suggested delay. Changing consistency to Strong or adding triggers does not address the throughput limit.
Question 40
HOTSPOT
You have an Azure Cosmos DB for NoSQL account named Account1 that uses provisioned throughput capacity mode.
Account1 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.
Show Answer
Correct Answer: No
No
Yes
Explanation: db1’s autoscale billing minimum is below 4,000 RU/s. cn11 shares db2’s throughput, so it is not capped at 400 RU/s. db2 can have another container that uses its shared throughput.
Question 41
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 for NoSQL account.
You need to make the contents of container1 available as reference data for an Azure Stream Analytics job.
Solution: You create an Azure Synapse pipeline that uses Azure Cosmos DB for NoSQL change feed as a trigger and an Azure event hub as the output.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation: No. An Azure Event Hubs output is not a supported reference data source for an Azure Stream Analytics job, so sending Cosmos DB change-feed events there does not make the container’s contents available as reference data.
Question 42
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 for NoSQL as the input and Azure Blob Storage as the output.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: A
Explanation: Yes. Azure Data Factory can copy data from the Cosmos DB for NoSQL container to Azure Blob Storage, which Azure Stream Analytics can use as reference data.
Question 43
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 for NoSQL account.
You need to make the contents of container1 available as reference data for an Azure Stream Analytics job.
Solution: You create an Azure function to copy data to another Azure Cosmos DB for NoSQL container.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation: No. Copying the data to another Azure Cosmos DB container does not make it available as reference data for an Azure Stream Analytics job. Reference data must be provided through a supported reference-data source, such as Azure Blob Storage or Azure Data Lake Storage Gen2.
Question 44
You have an Azure Cosmos DB database that hosts a container named container1.
You need to ensure that the items stored in container1 will NOT expire unless their TTL value is set explicitly.
What should you do?
A. Set the DefaultTimeToLive property to 0.
B. Remove the DefaultTimeToLive property.
C. Set the DefaultTimeToLive property to null.
D. Set the DefaultTimeToLive property to –1.
Show Answer
Correct Answer: D
Explanation: Set DefaultTimeToLive to -1. This enables TTL for the container but gives items no expiration by default; an item expires only when its TTL is set explicitly.
Question 46
You have an Azure Cosmos DB for NoSQL account that uses the default consistency level.
How can the consistency level be modified as part of a query request?
A. stronger consistency for write operations
B. weaker consistency for write operations
C. stronger consistency for read operations
D. weaker consistency for read operations
Show Answer
Correct Answer: D
Explanation: A query request can override the account’s default consistency only for read operations, and only to a weaker consistency level. Write consistency cannot be changed per request.
Question 47
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 database in an Azure Cosmos DB for NoSQL account that is configured for multi-region writes.
You need to use the Azure Cosmos DB SDK to implement the conflict resolution policy for a container. The solution must ensure that any conflicts are sent to the conflicts feed.
Solution: You set ConflictResolutionMode to Custom. You set ResolutionProcedure to a custom stored procedure. You configure the custom stored procedure to use the isTombstone parameter to resolve conflicts.
Does this meet the goal?
A. Yes
B. No
Show Answer
Correct Answer: B
Explanation: A registered custom stored procedure resolves conflicts rather than ensuring they are sent to the conflicts feed. With custom resolution, conflicts go to the feed when no resolution procedure is registered or the procedure fails. Using isTombstone does not change that.
Question 48
You have an Azure Cosmos DB for NoSQL account that has multiple write regions.
You need to receive an alert when requests that target the database exceed the available request units per second (RU/s).
Which Azure Monitor signal should you use?
A. Region Removed
B. Metadata Requests
C. Provisioned Throughput
D. Data Usage
Show Answer
Correct Answer: C
Explanation: Use the Provisioned Throughput signal to monitor RU/s consumption against the throughput available to the database and alert when it is exceeded.
$19
Get all 134 questions with detailed answers and explanations
Instant download HTML + PDF delivered the moment payment clears.
Secure Stripe checkout we never see or store your card details.
7-day refund if files are defective see our refund policy.