You have an Azure Cosmos DB Core (SQL) API account named account1 that has a single read-write region and one additional read region.Account1 uses the strong default consistency level.You have an application that uses the eventual consistency level when submitting requests to account1.How will writes from the application be handled?
Answer(s): C
Overriding the default consistency level only applies to reads within the SDK client. An account con gured for strong consistency by default will still write and replicate data synchronously to every region in the account. When the SDK client instance or request overrides this with Session or weaker consistency, reads will be performed using a single replica.
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
You have an Azure Cosmos DB Core (SQL) API account that uses a custom con ict resolution policy. The account has a registered merge procedure that throws a runtime exception.The runtime exception prevents con icts from being resolved.You need to use an Azure function to resolve the con icts.What should you use?
Answer(s): D
The Azure Cosmos DB Trigger uses the Azure Cosmos DB Change Feed to listen for inserts and updates across partitions. The change feed publishes inserts and updates, not deletions.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb
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?
Answer(s): B
You can facilitate aggregate data by using Change Feed and Azure Functions, and then use it for reporting.
https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed
HOTSPOT (Drag and Drop is not supported).You have three containers in an Azure Cosmos DB Core (SQL) API account as shown in the following table.You have the following Azure functions:A function named Fn1 that reads the change feed of cn1A function named Fn2 that reads the change feed of cn2A function named Fn3 that reads the change feed of cn3You perform the following actions:Delete an item named item1 from cn1.Update an item named item2 in cn2.For an item named item3 in cn3, update the item time to live to 3,600 seconds. For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: NoAzure Cosmos DB's change feed is a great choice as a central data store in event sourcing architectures where all data ingestion is modeled as writes (no updates or deletes).Note: The change feed does not capture deletes. If you delete an item from your container, it is also removed from the change feed. The most common method of handling this is adding a soft marker on the items that are being deleted. You can add a property called "deleted" and set it to "true" at the time of deletion. This document update will show up in the change feed. You can set a TTL on this item so that it can be automatically deleted later.Box 2: NoThe _etag format is internal and you should not take dependency on it, because it can change anytime.Box 3: YesChange feed support in Azure Cosmos DB works by listening to an Azure Cosmos container for any changes.
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/change-feed-design-patterns https://docs.microsoft.com/en-us/azure/cosmos- db/change-feed
HOTSPOT (Drag and Drop is not supported).You con gure Azure Cognitive Search to index a container in an Azure Cosmos DB Core (SQL) API account as shown in the following exhibit.Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: countryThe country eld is lterable.Note: lterable: Indicates whether to enable the eld to be referenced in $ lter queries. Filterable differs from searchable in how strings are handled. Fields of typeEdm.String or Collection(Edm.String) that are lterable do not undergo lexical analysis, so comparisons are for exact matches only.Box 2: nameThe name eld is not Retrievable.Retrievable: Indicates whether the eld can be returned in a search result. Set this attribute to false if you want to use a eld (for example, margin) as a lter, sorting, or scoring mechanism but do not want the eld to be visible to the end user. Note: searchable: Indicates whether the eld is full-text searchable and can be referenced in search queries.
https://docs.microsoft.com/en-us/rest/api/searchservice/create-index
Post your Comments and Discuss Microsoft DP-420 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the DP-420 content, but please register or login to continue.