You have an Azure Cosmos DB for NoSQL account. The account hosts a container that has the change feed enabled.
You are building an app by using the Azure Cosmos DB SDK. The app will read items from the change feed by using a pull model.
You need to ensure that multiple threads can read the change feed in parallel.
What should you include?
A. the ChangeFeedStartFrom value
B. the pagesize value
C. the FeedRange value
D. a stream-based iterator
Show Answer
Correct Answer: C
Explanation: Use a FeedRange to divide the container’s partition-key ranges among readers, allowing multiple threads to read the change feed in parallel.
Question 17
HOTSPOT
You have an Azure Cosmos DB for NoSQL account named account1.
You plan to implement the integrated cache for account1.
You need to configure the connectivity mode and the consistency level for requests that target account1. The solution must maximize consistency while using the integrated cache.
What should you configure? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Connectivity mode: Gateway mode with a dedicated gateway
Consistency level: Session
Explanation: The integrated cache is accessed through a dedicated gateway. Session is the strongest consistency level that can use the cache; stronger levels bypass it.
Question 18
HOTSPOT
You have an Azure subscription.
You need to deploy the following resources to an Azure Cosmos DB for NoSQL account:
• A container
• A user-defined function (UDF)
The solution must minimize the possibility of the deployment failing.
How should you complete the template? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: First blank: "apiVersion":
Second blank: "dependsOn":
Explanation: The API version specifies how to deploy the UDF resource. The dependency ensures the container is deployed before the UDF, reducing the chance of failure.
Question 19
DRAG DROP
You have an Azure Cosmos DB for NoSQL account named account1 that has a periodic backup policy with a four-hour backup interval and an eight-hour retention period. The account1 account contains a single database named db1 and containers that have stored procedures.
An administrator deletes db1 accidentally.
You need to ensure that the contents of db1, including all of its items, is available as soon as possible.
How should you perform the procedure? To answer, drag the missing actions to the correct order. Each action may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Step 1: Increase the retention period of the account.
Step 2: Submit a request ticket.
Step 3: Recreate the stored procedures.
Explanation: Increasing retention helps preserve the available backup while support processes the restore. Periodic backups do not restore stored procedures, so they must be recreated.
Question 20
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 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 Stream Analytics can use data in Azure Blob Storage as reference data. A Synapse pipeline can copy the container contents from Azure Cosmos DB for NoSQL to Blob Storage, making them available to the job.
Question 21
You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account.
You need to write a SQL query that will return multiple items. The solution must meet the following requirements:
• For each item returned, include the current Coordinated Universal Time (UTC) date and time, formatted as an ISO 8601 string.
• Minimize development effort.
What should you use?
A. a user-defined function
B. GetCurrentTimestamp()
C. GetCurrentDateTime()
D. DateTimePart()
Show Answer
Correct Answer: C
Explanation: Use GetCurrentDateTime(). It returns the current UTC date and time as an ISO 8601 string, requiring no custom formatting or user-defined function.
Question 22
You are designing an Azure Cosmos DB for NoSQL data model that will contain authors, books the authors have written, and reviews of the books.
You need to maintain referential integrity between entities by using server-side transactional support.
What is the largest scope of the transactions you can use?
A. items in the same container
B. a single item
C. items in the same database
D. items in the same logical partition
Show Answer
Correct Answer: D
Explanation: Azure Cosmos DB for NoSQL transactions, including transactional batches and stored procedures, are scoped to items in the same logical partition. They cannot span logical partitions, even if those partitions are in the same container or database.
Question 23
You have an Azure subscription. The subscription contains an Azure Cosmos DB for NoSQL account named account1 that uses a default consistency level of Consistent Prefix.
You execute a SELECT query and specify the Consistent Prefix consistency level.
You need to execute a second SELECT query during the same session and specify a lower consistency level.
Which consistency level can be used for the second SELECT query?
A. Session
B. Strong
C. Bounded Staleness
D. Eventual
Show Answer
Correct Answer: D
Explanation: Eventual consistency is weaker than Consistent Prefix, so it can be specified for the second query. Session, Bounded Staleness, and Strong are stronger consistency levels.
Question 24
HOTSPOT
You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account.
You create a container and assign the following indexing policy.
You run the queries 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.
Explanation: The composite index matches Query 1’s sort order and also supports Query 2’s sort order because both directions are reversed. Query 3’s filtered properties are not first in the composite index, so it cannot use that composite index for the combined filter and sort.
Question 25
DRAG DROP
You have an Azure Cosmos DB for NoSQL account.
You need to implement Always Encrypted for all the data stored in the account. The solution must minimize administrative effort.
At which level should you define the encryption policy and set the data encryption key? To answer, drag the appropriate levels to the correct requirements. Each level may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Show Answer
Correct Answer: Define the encryption policy: Container
Set the data encryption key: Database
Explanation: An encryption policy is defined for a container and identifies the properties to encrypt. The data encryption key is created at the database level and can be referenced by container policies.
$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.