Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

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

Design and implement cloud-native applications using Azure Cosmos DB.

4.8★★★★★(177 ratings)
17,679 studentsIntermediate
Learn to build applications around Azure Cosmos DB for globally distributed, scalable data solutions. The exam focuses on data modeling, querying, partitioning, and performance in cloud-native architectures. This certification is useful for developers working with modern distributed applications. It helps you design data layers that support responsiveness, scale, and multi-region growth.

What you'll learn

  • Model data for Cosmos DB- Query distributed data- Optimize partitioning- Improve performance- Build cloud-native apps

DP-420

Lectures2
Questions78
Duration30 week
Students17,679

$20.00

Full Free Question Bank (78 Questions)

Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB (DP-420) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1Maintain an Azure Cosmos DB solution

You have a container in an Azure Cosmos DB for NoSQL account. You need to create an alert using a custom Log Analytics query. Which signal type should you use?

ALog
BMetrics
CActivity Log
DResource Health
Question #2Part 1Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB database that contains a container named container1. You need to make sure items stored in container1 do **not** expire unless their TTL value is explicitly configured. What should you do?

ASet the DefaultTimeToLive property to 0.
BRemove the DefaultTimeToLive property.
CSet the DefaultTimeToLive property to null.
DSet the DefaultTimeToLive property to –1.
Question #3Part 1Integrate an Azure Cosmos DB solution

You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. Item upserts in container1 occur every three seconds. You have an Azure Functions app named function1 that is intended to run whenever items are inserted or replaced in container1. You find that function1 runs, but it does not run for every upsert. You need to ensure that function1 processes each upsert within one second after the upsert. Which property in the Function.json file for function1 should you change?

AcheckpointInterval
BleaseCollectionsThroughput
CmaxItemsPerInvocation
DfeedPollDelay
Question #4Part 1Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB for NoSQL account. You configure diagnostic settings to send all log data to a Log Analytics workspace. You need to determine when the provisioned request units per second (RU/s) for resources in the account were changed. You write the following query: ``kusto AzureDiagnostics - | where Category == "ControlPlaneRequests" `` What should you add to the query? AzureDiagnostics - | where Category == "ControlPlaneRequests"

A| where OperationName startswith "SqlContainersCreate"
B| where OperationName startswith "SqlContainersDelete"
C| where OperationName startswith "SqlDatabasesThroughputUpdate"
D| where OperationName startswith "AccountUpdateStart"
Question #5Part 1Maintain an Azure Cosmos DB solutionSelect 3

You have an Azure Cosmos DB for NoSQL account that contains a database named DB1 and a container named Container1. You need to manage the account by using the Azure Cosmos DB SDK. What should you do?

ACreate a container in DB1.
BList the physical partitions of Container1.
CRead a stored procedure in Container1.
DCreate a user defined function (UDF) in Container1.
Question #6Part 1Optimize an Azure Cosmos DB solutionSelect 3

You plan to build an operational system that stores data in an Azure Cosmos DB Core (SQL) API account. You need to configure the account to meet these requirements: - Support Spark queries. - Support analysis of data from the previous six months. - Pay for analytical compute only when queries run. Which three actions should you take? Each correct answer represents part of the solution. NOTE: Each correct selection is worth one point.

AEnable Azure Synapse Link for the account.
BCreate a container and set the analyticalTTL property to six months.
CCreate an Azure Databricks notebook.
DCreate an Azure Synapse linked service.
ECreate a container and set the time to live to six months.
Question #7Part 1Design and implement data models

You need to create a data store for a directory of small and medium-sized businesses (SMBs). The data store must satisfy these requirements: - Store companies and the users who work for them. Each company will have fewer than 1,000 users. - Some users have data larger than 2 KB. - Associate each user with only one company. - Provide the capability to browse by company. - Provide the capability to browse users by company. - Whenever a company or user profile is selected, display a details page for the company and all related users. - Be optimized for data reads. Which design should you implement to optimize the data store for reading data?

AIn a directory container, create a document for each company and a document for each user. Use the company ID as the partition key.
BCreate a user container that uses the user ID as the partition key and a company container that uses the company ID as the partition key. Add the company ID to each user document.
CIn a user container, create a document for each user. Embed the company into each user document. Use the user ID as the partition key.
DIn a company container, create a document for each company. Embed the users into company documents. Use the company ID as the partition key.
Question #8Part 1Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB for NoSQL account with multiple write regions. You need to receive an alert when requests directed to the database exceed the available request units per second (RU/s). Which Azure Monitor signal should you use?

ARegion Removed
BMetadata Requests
CProvisioned Throughput
DData Usage
Question #9Part 1Integrate an Azure Cosmos DB solution

You have an Azure Cosmos DB account called account1. You need to access account1 from an on-premises environment by using a Site-to-Site VPN. What should you use?

Aa private endpoint
Ba dedicated gateway
CAzure Synapse Link
Question #10Part 1Optimize an Azure Cosmos DB solution

The following is an example document in orders. ![Question Image](https://cdn.examcademy.com/images/questions/1783895702574-8ysvb4gl.png) The orders container uses customerId as its partition key. You need to produce a report of the total items ordered per month, by item type. The solution must meet these requirements: - Ensure that the report runs as quickly as possible. - Minimize request unit (RU) consumption. What should you do?

AConfigure the report to query orders by using a SQL query.
BConfigure the report to query a new materialized view. Populate the view by using the change feed.
CConfigure the report to query orders by using a SQL query through a dedicated gateway.
DConfigure the report to query a new materialized view. Populate the view by using SQL queries that run daily.
Question #11Part 1Integrate an Azure Cosmos DB solution

You need to determine which connectivity mode to use when implementing App2. The solution must support the planned changes and satisfy the business requirements. Which connectivity mode should you identify?

ADirect mode over HTTPS
BGateway mode (using HTTPS)
CDirect mode over TCP
Question #12Part 1Design and implement data models

You have an app named App1 that uses an Azure Cosmos DB for NoSQL database. App1 uses the spatial columns shown in the following table. ![Question Image](https://cdn.examcademy.com/images/questions/1784216031849-y69v84qu.png) You need to design an indexing strategy for App1. Which columns can be indexed using spatial indexes?

ACol1 only
BCol1 and Col2 only
CCol1, Col2, and Col3 only
DCol1, Col2, and Col4 only
Question #13Part 1Design and implement data distributionSelect 2

You have an Azure Cosmos DB for NoSQL account named account1. You plan to implement a multi-region write scenario. You enable multi-region writes for account1. Which two actions should you take next? Each correct answer presents part of the solution. > **NOTE:** Each correct answer is worth one point.

ASet ApplicationRegion to the name of the deployed region.
BSet UseMultipleWriteLocations to True.
CSet consistencyLevel to Eventual.
DUpdate connectionString.
Question #14Part 1Maintain an Azure Cosmos DB solution

You have an Azure subscription containing an Azure Cosmos DB for NoSQL account. The account hosts a container named Container1. At some time during the previous 4S hours, Container1 was deleted. You need to restore the account to the point immediately before Container1 was deleted. The solution must minimize administrative effort. What should you do first?

AReview the event feed blade.
BIdentify the last restorable timestamp.
CCreate a new Azure Cosmos DB for NoSQL account.
DRestore Container1 to a different Azure Cosmos DB for NoSQL account.
Question #15Part 1Design and implement data distribution

You intend to create an Azure Cosmos DB account that uses the NoSQL API. You need to define a strategy for grouping items stored in the account. The solution must ensure that write and read operations on the items can occur within the same transaction. What should you use to group the items?

Alogical partitions
Bphysical partitions
Cdatabases
Dcontainers
Question #16Part 1Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB for NoSQL database named db1 that performs writes across multiple Azure regions. You need to test db1 performance in the secondary region. Which command should you run first?

Aaz cosmosdb location show
Baz cosmosdb failover-priority-change
Caz cosmosdb network-rule remove
Daz cosmosdb sql database merge
Question #17Part 1Optimize an Azure Cosmos DB solution

Your company develops an application named App1 that uses the Azure Cosmos DB SDK with the Eventual consistency level. App1 queries an Azure Cosmos DB for NoSQL account named account1. You need to determine the consistency level to assign to App1 to meet these requirements: - Maximize the throughput of queries generated by App1 without increasing the number of request units currently consumed by the queries. - Provide the highest consistency guarantees. Which consistency level should you identify?

AStrong
BBounded Staleness
CSession
DConsistent Prefix
Question #18Part 1Integrate an Azure Cosmos DB solution

You have a database in an Azure Cosmos DB Core (SQL) API account. You need to create an Azure function that accesses the database to retrieve records using a variable named accountnumber. The solution must be protected from SQL injection attacks. How should you define the command statement in the function?

Acmd = "SELECT * FROM Persons p WHERE p.accountnumber = 'accountnumber'"
Bcmd = "SELECT * FROM Persons p WHERE p.accountnumber = LIKE @accountnumber"
Ccmd = "SELECT * FROM Persons p WHERE p.accountnumber = @accountnumber"
Dcmd = "SELECT * FROM Persons p WHERE p.accountnumber = '" + accountnumber + "'"
Question #19Part 1Integrate an Azure Cosmos DB solution

You have a global e-commerce application that stores data in an Azure Cosmos DB Core (SQL) API account. The account is configured for multi-region writes. You need to create a stored procedure for a custom conflict-resolution policy for a new container. If a conflict is caused by a deletion, the deletion must always take priority. Which parameter should you check in the stored procedure function?

AisTombstone
BconflictingItems
CexistingItem
DincomingItem
Question #20Part 1Integrate an Azure Cosmos DB solution

You have an Azure Cosmos DB for NoSQL account that hosts a container with 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?

Athe ChangeFeedStartFrom value
Bthe pagesize value
Cthe FeedRange value
Da stream-based iterator
Question #21Part 1Optimize an Azure Cosmos DB solution

The settings for a container in an Azure Cosmos DB Core (SQL) API account are configured as shown in the following exhibit. Which statement describes this container configuration?

AAll items will be deleted after one year.
BItems stored in the collection will be retained always, regardless of the items time to live value.
CItems stored in the collection will expire only if the item has a time to live value.
DAll items will be deleted after one hour.
Question #22Part 1Design and implement data distributionSelect 2

You have an Azure Cosmos DB database. You plan to create a new container named container1 to store product data and product category data, primarily supporting read requests. You need to configure a partition key for container1. The solution must meet these requirements: - Minimize the partition size. - Minimize maintenance effort. Which two characteristics should you prioritize? Each correct answer presents part of the solution. **NOTE:** Each correct selection is worth one point.

Aunique
Bhigh cardinality
Clow cardinality
Dstatic
Question #23Part 1Optimize an Azure Cosmos DB solution

Solution: SetConflictResolutionModetoLastWriterWinsand use the policy's default settings. Does this satisfy the goal?

AYes
BNo
Question #24Part 1Maintain an Azure Cosmos DB solution

Solution: SetConflictResolutionModetoCustomand use the policy’s default settings. Does this satisfy the goal?

AYes
BNo
Question #25Part 1Integrate an Azure Cosmos DB solution

Solution: SetConflictResolutionModetoCustom. SetResolutionProcedureto a custom stored procedure. Configure that custom stored procedure to resolve conflicts by using theconflictingItemsparameter. Does this satisfy the goal?

AYes
BNo
Question #26Part 1Integrate an Azure Cosmos DB solution

Solution: You create an Azure Function to copy data into a different Azure Cosmos DB for NoSQL container. Does this satisfy the goal?

AYes
BNo
Question #27Part 1Integrate an Azure Cosmos DB solution

Solution: Create an Azure Data Factory pipeline that uses Azure Cosmos DB for NoSQL as its input and Azure Blob Storage as its output. Does this satisfy the goal?

AYes
BNo
Question #28Part 1Integrate an Azure Cosmos DB solution

Solution: Create an Azure Synapse pipeline that uses the Azure Cosmos DB for NoSQL change feed as a trigger and Azure Event Hubs as its output. Does this satisfy the goal?

AYes
BNo
Question #29Part 1Integrate an Azure Cosmos DB solution

Solution: You create an Azure Synapse pipeline that uses Azure Cosmos DB for NoSQL as its input and Azure Blob Storage as its output. Does this achieve the goal?

AYes
BNo
Question #30Part 1Design and implement data distribution

You are designing an Azure Cosmos DB Core (SQL) API solution that stores data from IoT devices. Device writes will occur every second. The following is a sample of the data. ![Question Image](https://cdn.examcademy.com/images/questions/1783808326096-3gzv1856.png) You need to choose a partition key that meets the following write requirements: - Minimizes partition skew - Avoids capacity limits - Avoids hot partitions What should you do?

AUse timestamp as the partition key.
BCreate a new synthetic key that contains deviceId and sensor1Value.
CCreate a new synthetic key that contains deviceId and deviceManufacturer.
DCreate a new synthetic key that contains deviceId and a random number.
Question #31Part 1Integrate an Azure Cosmos DB solution

You have an Azure subscription that contains the resources shown in the following table. You need to store account1's account key in KV1. What should you use?

Aa key
Ba secret
Ca certificate
Question #32Part 1Design and implement data models

You manage a relational database for a book publisher. The database includes the following tables. ![Question Image](https://cdn.examcademy.com/images/questions/1783808871901-6957z2y0.png) The most frequent query returns the books for a specified authorId. You need to create a non-relational data model for the Azure Cosmos DB Core (SQL) API to replace the relational database. The solution must minimize latency and read-operation costs. What should you include in the solution?

ACreate a container for Author and a container for Book. In each Author document, embed bookId for each book by the author. In each Book document embed authorId of each author.
BCreate Author, Book, and Bookauthorlnk documents in the same container.
CCreate a container that contains a document for each Author and a document for each Book. In each Book document, embed authorId.
DCreate a container for Author and a container for Book. In each Author document and Book document embed the data from Bookauthorlnk.
Question #33Part 1Maintain an Azure Cosmos DB solution

You have an Azure subscription containing an Azure Cosmos DB for NoSQL database named db1. The subscription is linked to a Microsoft Entra tenant that includes a user named User1. You need to delegate permissions to User1 that meet the following requirements: - Ensure that User1 can manage db1. - Prevent User1 from accessing connection strings. - Prevent User1 from accessing the data stored in db1. Which role should you assign to User1?

ACosmos DB Account Reader Role
BCosmos DB Built-in Data Contributor
CCosmos DB Built-in Data Reader
DCosmos DB Operator
Question #34Part 1Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB Core (SQL) API account with 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 be used?

AData Usage
BMetadata Requests
CRegion Removed
DRegion Added
Question #35Part 1Design and implement data distributionSelect 2

You have a container in an Azure Cosmos DB Core (SQL) API account that stores order data. The following is a sample order document. ![Question Image](https://cdn.examcademy.com/images/questions/1783829344922-2vvvk3uu.png) Documents are up to 2 KB. You plan to receive one million orders per day. Customers will frequently view their past order history. You are evaluating whether to use orderDate as the partition key. What are two effects of using orderDate as the partition key? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

AYou will exceed the maximum number of partition key values
BYou will exceed the maximum storage per partition
CThere will always be a hot partition
DQueries will run cross-partition
Question #36Part 1Integrate an Azure Cosmos DB solution

You configure multi-region writes for account1. You need to make sure that App1 supports the new configuration for account1. The solution must satisfy the business requirements and the product catalog requirements. What should you do?

ASet the default consistency level of account1 to bounded staleness.
BCreate a private endpoint connection.
CModify the connection policy of App1.
DIncrease the number of request units per second (RU/s) allocated to the con-product and con-productVendor containers.
Question #37Part 1Integrate an Azure Cosmos DB solutionSelect 2

You are building an application that will use an Azure Cosmos DB Core (SQL) API account as a data source. You need to create a report that shows the five fruits with the highest order counts, as displayed in the following table. ![Question Image](https://cdn.examcademy.com/images/questions/1785598702685-9ruweyvd.png) A collection containing pre-aggregated data already exists. A sample document is shown below: ![Question Image](https://cdn.examcademy.com/images/questions/1785598705007-psps0b1m.png) Which two queries can you use to retrieve the report data? Each correct answer provides a complete solution. NOTE: Each correct selection is worth one point.

A![](https://cdn.examcademy.com/images/questions/1785598708000-0k5hdgua.png)
B![](https://cdn.examcademy.com/images/questions/1785598710105-rvue99ss.png)
C![](https://cdn.examcademy.com/images/questions/1785598714005-2wt2zl4v.png)
D![](https://cdn.examcademy.com/images/questions/1785598717170-iau5xi88.png)
Question #38Part 1Design and implement data distribution

You have an Azure Cosmos DB Core (SQL) API account namedaccount1with one read-write region and one additional read region.account1uses Strong as its default consistency level. An application submits requests toaccount1by using the Eventual consistency level. How are writes from the application handled?

AWrites will use the eventual consistency level.
BAzure Cosmos DB will reject writes from the application.
CWrites will use the strong consistency level.
DThe write order is not guaranteed during replication.
Question #39Part 1Integrate an Azure Cosmos DB solutionSelect 3

You must configure an Apache Kafka instance to ingest data from an Azure Cosmos DB Core (SQL) API account. Data from a container named telemetry must be added to a Kafka topic named iot. The solution must store the data in a compact binary format. Which three configuration items should you include in the solution? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A"connector.class": "com.azure.cosmos.kafka.connect.source.CosmosDBSourceConnector"
B"key.converter": "org.apache.kafka.connect.json.JsonConverter"
C"key.converter": "io.confluent.connect.avro.AvroConverter"
D"connect.cosmos.containers.topicmap": "iot#telemetry"
E"connect.cosmos.containers.topicmap": "iot"
Question #40Part 1Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB Core (SQL) API account with multiple write regions. You need to receive an alert when requests targeting the database exceed the available request units per second (RU/s). Which Azure Monitor signal should you use?

AData Usage
BProvisioned Throughput
CTotal Request Units
DDocument Count
Question #41Part 1Design and implement data distribution

You plan to create an Azure Cosmos DB for NoSQL account with one write region and three read regions. You need to configure the account consistency level. The solution must satisfy these requirements: - In the write region, writes must replicate synchronously to at least three replicas. - In the read regions, reads must observe transactional-batch writes in order. - Read and write throughput must be maximized. Which consistency level should you choose?

AConsistent Prefix
BBounded Staleness
CEventual
DStrong
Question #42Part 1Optimize an Azure Cosmos DB solutionSelect 2

You have an Azure Cosmos DB for NoSQL container. All container queries use the Bounded Staleness consistency level. You find that, when numerous queries run against the container, it returns an HTTP 429 error. Which two actions can reduce the number of HTTP 429 errors? Each correct answer provides a complete solution. **NOTE:** Each correct selection is worth one point.

AUse a query request option to change the consistency level to Strong.
BAdd a post-trigger to the container.
CAdd a pre-trigger to the container.
DAdd query retry logic to the client application.
EIncrease the maximum throughput.
Question #43Part 1Integrate an Azure Cosmos DB solution

You intend to create an Azure Cosmos DB account that will use an integrated cache. What would prevent you from using an integrated cache?

Aa user-assigned managed identity
BAzure Private Link
Ca default consistency level of Session
Davailability zones
Question #44Part 1Design and implement data distribution

You have an Azure Cosmos DB for NoSQL account named account1. In account1, you intend to create a container named container1 to hold data collected continuously from self-driving cars. Items in container1 will mostly be accessed through queries targeting data collected from a particular car on a given day. Each car is identified by a property named Vehicle-Identification-Number. You need to identify a partitioning strategy for container1. The strategy must meet these requirements: - Maximize read and write performance. - Minimize the cost of data reads and writes. What should you identify?

AUse a partition key based on the Vehicle-Identification-Number property.
BConstruct a synthetic key by concatenating the current date and a random suffix.
CUse a partition key based on the current date.
DConstruct a synthetic key by concatenating the current date and a hash of the Vehicle-Identification-Number property value.
Question #45Part 1Design and implement data models

You are designing an Azure Cosmos DB for NoSQL data model that will contain authors, the books those authors have written, and reviews for the books. You need to preserve referential integrity between entities by using server-side transactional support. What is the maximum scope of the transactions you can use?

Aitems in the same container
Ba single item
Citems in the same database
Ditems in the same logical partition
Question #46Part 1Maintain an Azure Cosmos DB solution

Solution: Configure an Azure Monitor alert that triggers the function. Does this satisfy the goal?

AYes
BNo
Question #47Part 1Integrate an Azure Cosmos DB solution

Solution: You configure the function to use an Azure CosmosDB trigger. Does this achieve the goal?

AYes
BNo
Question #48Part 1Integrate an Azure Cosmos DB solution

Solution: Configure Azure Event Grid to send events to the function by using an Event Grid trigger in the function. Does this satisfy the goal?

AYes
BNo
Question #49Part 1Integrate an Azure Cosmos DB solution

Solution: You configure an application to use the change feed processor to read the change feed, and configure the application to trigger the function. Does this achieve the goal?

AYes
BNo
Question #50Part 1Optimize an Azure Cosmos DB solution

You have operational data in an Azure Cosmos DB for NoSQL database. Database users report that database performance degrades significantly when a business analytics team executes large Apache Spark-based queries against the database. You need to reduce the effect that running the Spark-based queries has on the database users. What should you implement?

AAzure Synapse Link
Ba default consistency level of Consistent Prefix
Ca default consistency level of Strong
Dthe Spark connector
Question #51Part 1Optimize an Azure Cosmos DB solution

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account named account1. The account hosts a container named Devices, which has a partition key named type. You plan to run the following query: ``sql SELECT d.deviceName FROM d WHERE d.deviceId = 'ABC102' AND d.type = 'car' AND d.importanceId = 4 `` You are assessing the query's resource utilization. How will the query execute? SELECT d.deviceName FROM d WHERE d.deviceId = 'ABC102' AND d.type = 'car' AND d.importanceId = 4

Aas an in-partition query
Bas a parallel cross-partition query
Cas a cross-partition query
Question #52Part 1Integrate an Azure Cosmos DB solutionSelect 2

You need to implement a solution for Azure Functions notifications after updates to con-product. The solution must satisfy the business requirements and the product catalog requirements. Which two actions should you take? Each correct answer provides part of the solution. NOTE: Each correct selection is worth one point.

AConfigure the trigger for each function to use a different leaseCollectionPrefix
BConfigure the trigger for each function to use the same leaseCollectionName
CConfigure the trigger for each function to use a different leaseCollectionName
DConfigure the trigger for each function to use the same leaseCollectionPrefix
Question #53Part 1Integrate an Azure Cosmos DB solutionSelect 2

You need to implement a trigger in the Azure Cosmos DB Core (SQL) API that executes before an item is inserted into a container. Which two actions should you take to ensure that the trigger executes? Each correct answer represents part of the solution. NOTE: Each correct selection is worth one point.

AAppend pre to the name of the JavaScript function trigger.
BFor each create request, set the access condition in RequestOptions.
CRegister the trigger as a pre-trigger.
DFor each create request, set the consistency level to session in RequestOptions.
EFor each create request, set the trigger name in RequestOptions.
Question #54Part 1Design and implement data distribution

You are designing an Azure Cosmos DB for NoSQL solution to store data from IoT devices. Device writes will occur every second, and data will be retained indefinitely. The following is a sample of the data. ![Question Image](https://cdn.examcademy.com/images/questions/1784216028396-m0hcxsh5.png) You need to choose a partition key that meets these write requirements: - Minimizes partition skew - Avoids capacity limits - Avoids hot partitions What should you do?

ACreate a new synthetic key that contains deviceId and timestamp.
BUse timestamp as the partition key.
CUse sensor1Value as the partition key.
DCreate a new synthetic key that contains deviceId and deviceManufacturer.
Question #55Part 1Design and implement data distribution

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL database named DB1. In DB1, you intend to create a container that uses a hierarchical partition key. You need to determine which hierarchical partition key path to use when you add new items to the container. Which SDK class should you use?

ACompositePath
BPartitionKeyDefinition
CPartitionKey
DPartitionKeyBuilder
Question #56Part 1Design and implement data distributionSelect 2

You have an Azure Cosmos DB for NoSQL account configured for global distribution in four regions. When connecting, the SQL SDK must determine the optimal endpoint for reads and writes. Which two factors can affect the SDK? Each correct answer provides a complete solution. NOTE: Each correct selection is worth one point.

Athe consistency level in RequestOptions
Bregional latency
Cthe default consistency level
Dthe PreferredLocations configuration
Ea region being available
Question #57Part 1Integrate an Azure Cosmos DB solution

You have an Azure Cosmos DB for NoSQL database that contains a container named Container1. You are developing a new app named App1 that will use Container1. You need to ensure that, when App1 tries to delete a document in Container1, the action is blocked and an error is returned to the app. What should you use?

Aa post-trigger
Ba stored procedure
Ca user-defined function (UDF)
Da pre-trigger
Question #58Part 1Design and implement data distributionSelect 2

You are creating an Azure Cosmos DB for NoSQL account. You need to decide whether to configure capacity by using provisioned throughput or serverless mode. Which two workload characteristics would lead you to choose serverless mode? Each correct answer represents part of the solution. NOTE: Each correct selection is worth one point.

Ageo-distribution requirements
Blow average-to-peak traffic ratio
C25 TB of data in a single container
Dhigh average-to-peak traffic ratio
Eintermittent traffic
Question #59Part 1Optimize an Azure Cosmos DB solutionSelect 2

You have an Azure Cosmos DB Core (SQL) API account used by 10 web apps. You need to analyze the data stored in the account by using Apache Spark to build machine-learning models. The solution must **not** affect the web apps' performance. Which two actions should you take? Each correct answer represents part of the solution. **NOTE:** Each correct selection is worth one point.

AIn an Apache Spark pool in Azure Synapse, create a table that uses cosmos.olap as the data source.
BCreate a private endpoint connection to the account.
CIn an Azure Synapse Analytics serverless SQL pool, create a view that uses OPENROWSET and the CosmosDB provider.
DEnable Azure Synapse Link for the account and Analytical store on the container.
EIn an Apache Spark pool in Azure Synapse, create a table that uses cosmos.oltp as the data source.
Question #60Part 1Optimize an Azure Cosmos DB solution

The following is an example document in orders. ![Question Image](https://cdn.examcademy.com/images/questions/1783809248728-avu9hlx1.png) The orders container uses customerId as its partition key. You need to generate a report of the total items ordered per month, grouped by item type. The solution must meet these requirements: - Ensure the report runs as quickly as possible. - Minimize request unit (RU) consumption. What should you do?

AConfigure the report to query orders by using a SQL query.
BConfigure the report to query a new aggregate container. Populate the aggregates by using the change feed.
CConfigure the report to query orders by using a SQL query through a dedicated gateway.
DConfigure the report to query a new aggregate container. Populate the aggregates by using SQL queries that run daily.
Question #61Part 2Integrate an Azure Cosmos DB solution

You have an Azure Cosmos DB Core (SQL) API account. The change feed is enabled on a container named invoice. You create an Azure function with a trigger on the change feed. What does the Azure function receive?

Aonly the changed properties and the system-defined properties of the updated items
Bonly the partition key and the changed properties of the updated items
Call the properties of the original items and the updated items
Dall the properties of the updated items
Question #62Part 2Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB Core (SQL) API account that uses a custom conflict-resolution policy. The account has a registered merge procedure that throws a runtime exception. The runtime exception stops conflicts from being resolved. You need to use an Azure function to resolve the conflicts. What should you use?

Aa function that pulls items from the conflicts feed and is triggered by a timer trigger
Ba function that receives items pushed from the change feed and is triggered by an Azure Cosmos DB trigger
Ca function that pulls items from the change feed and is triggered by a timer trigger
Da function that receives items pushed from the conflicts feed and is triggered by an Azure Cosmos DB trigger
Question #63Part 2Design and implement data distribution

You have an Azure subscription containing an Azure Cosmos DB for NoSQL database named DB1. You develop a software-as-a-service (SaaS) app named App1 that uses DB1. App1 will be used by multiple vendors to manage their customers. You need to create a container in DB1 to store customer and order details for each vendor. The solution must meet these requirements: - Each vendor must have a unique tenant ID. - Container performance must be optimized for reads. - Customer IDs can be duplicated across the container, but they must be unique for each vendor. - The container must be optimized for concurrent queries from multiple customers. Each query will return data for one vendor. How should you configure the container?

AAdd a partition key to the tenant ID and a unique key policy to the customer ID.
BAdd hierarchical partition key on (tenant identifier, customer identifier).
CAdd a partition key to the customer ID and a unique key policy to the tenant ID.
DAdd hierarchical partition key on (customer identifier, tenant identifier).
Question #64Part 2Maintain an Azure Cosmos DB solution

You are troubleshooting the current problems caused by application updates. Which action can resolve the application-update issue without affecting the application's functionality?

AEnable time to live for the con-product container.
BSet the default consistency level of account1 to strong.
CSet the default consistency level of account1 to bounded staleness.
DAdd a custom indexing policy to the con-product container.
Question #65Part 2Optimize an Azure Cosmos DB solution

You have an Azure Cosmos DB for NoSQL account that includes a database named DB1. Users execute the following query against DB1: ``sql SELECT * FROM c WHERE c.bikeParts = "Frame, Chain, Peddles" ORDER BY c.bikeParts ASC ` You add an index to the recordset. You need to modify the query's ORDER BY` syntax to optimize index usage. The solution must **not** alter the result set. Which syntax should you use? SELECT * FROM c WHERE c.bikeParts = "Frame, Chain, Peddles" ORDER BY c.bikeParts ASC

AORDER BY c._ts ASC, c.bikeParts DESC
BORDER BY c._ts DESC, c.bikeParts ASC
CORDER BY c.bikeParts ASC, c._ts ASC
DORDER BY c.bikeParts DESC, c._ts ASC
Question #66Part 2Maintain an Azure Cosmos DB solution

You have a database in an Azure Cosmos DB Core (SQL) API account that is backed up every two hours. You need to implement a solution that supports point-in-time restore. What should you do first?

AEnable Continuous Backup for the account.
BConfigure the Backup & Restore settings for the account.
CCreate a new account that has a periodic backup policy.
DConfigure the Point In Time Restore settings for the account.
Question #67Part 2Integrate an Azure Cosmos DB solution

You have an Azure subscription containing an Azure Cosmos DB for NoSQL account. You need to write a SQL query that returns multiple items. The solution must meet these requirements: - For every returned item, include the current Coordinated Universal Time (UTC) date and time formatted as an ISO 8601 string. - Minimize development effort. What should you use?

Aa user-defined function
BGetCurrentTimestamp()
CGetCurrentDateTime()
DDateTimePart()
Question #68Part 2Design and implement data distribution

You have an Azure subscription containing an Azure Cosmos DB for NoSQL account named account1. In account1, you plan to create a container to store the data items shown in the following table. ![Question Image](https://cdn.examcademy.com/images/questions/1783921166860-s9suz3e6.png) Each customer item will embed customer sales-by-month values. The most frequently executed query will return data for a matrix that aggregates the monthly sales for every business category. The matrix will use customer business categories as columns and months as rows. You need to configure the container partition key. The solution must minimize the request units (RUs) needed to run the query. Which property should you use as the partition key?

AcustomerBusinessCategoryId
BcustomerSalesForMonth
CcustomerId
DcustomerName
Question #69Part 2Design and implement data distribution

You are designing an Azure Cosmos DB for NoSQL solution to store data from IoT devices. The devices will write every second, and data will be retained indefinitely. The following is a sample of the data. ![Question Image](https://cdn.examcademy.com/images/questions/1783849719407-74k1wwxz.png) You need to choose a partition key that meets these write requirements: - Minimizes partition skew - Avoids capacity limits - Avoids hot partitions What should you do?

AUse deviceManufacturer as the partition key.
BCreate a new synthetic key that contains deviceId and timestamp.
CCreate a new synthetic key that contains deviceId and deviceManufacturer.
DUse deviceId as the partition key.
Question #70Part 2Maintain an Azure Cosmos DB solution

You develop an application that uses the Azure Cosmos DB Core (SQL) API. You create an Azure pipeline to build and deploy the application. You need to update the pipeline so it runs the integration tests you wrote for the application. The solution must run entirely within the pipeline. What should you add to the pipeline?

Aa deployment group named Cosmos DB testing
Ban Azure Cosmos DB Emulator task
Ca NuGet service connection that uses an Azure Cosmos DB API key
Da secret variable that has a connection string to an Azure Cosmos DB database
Question #71Part 2Integrate an Azure Cosmos DB solution

You have an Azure subscription containing an Azure Cosmos DB for NoSQL account named account1. You plan to configure the Apache Kafka service as a data source for account1. What should you use to store the Kafka configuration?

AApache Gremlin
BApache ZooKeeper
CApache Tomcat
DAzure Key Vault
Question #72Part 2Optimize an Azure Cosmos DB solution

You are implementing an Azure Data Factory data flow that uses 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 ingestion from each Spark partition is balanced to optimize throughput. Which sink setting should you configure?

AThroughput
BWrite throughput budget
CBatch size
DCollection action
Question #73Part 2Maintain an Azure Cosmos DB solution

You have an Azure Cosmos DB account calledaccount1. Several apps connect toaccount1by using the account's secondary key. You configure the apps to authenticate by using service principals. You need to ensure thataccount1permits apps to connect only by using an Azure AD identity. Which account property should you change?

AdisableKeyBasedMetadataWriteAccess
BdisableLocalAuth
CuserAssignedIdentities
DallowedOrigins
Question #74Part 2Optimize an Azure Cosmos DB solution

You have an application that queries an Azure Cosmos DB Core (SQL) API account. You find that the following two queries execute frequently. ![Question Image](https://cdn.examcademy.com/images/questions/1783843017306-8xc3aztr.png) You need to minimize the request units (RUs) consumed by reads and writes. What should you create?

Aa composite index for (name DESC, timestamp ASC)
Ba composite index for (name ASC, timestamp ASC) and a composite index for (name DESC, timestamp DESC)
Ca composite index for (name ASC, timestamp ASC)
Da composite index for (name ASC, timestamp DESC)
Question #75Part 2Integrate an Azure Cosmos DB solutionSelect 2

You have an Azure Cosmos DB Core (SQL) API account named account1 that supports an application named App1. App1 uses the consistent prefix consistency level. You configure account1 to use a dedicated gateway and an integrated cache. You need to ensure that App1 can use the integrated cache. Which two actions should you perform for App1? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

AChange the consistency level of requests to session.
BChange the account endpoint to http://account1.documents.azure.com.
CChange the account endpoint to http://account1.sqlx.cosmos.azure.com.
DChange the connection mode to direct.
EChange the consistency level of requests to strong.
Question #76Part 2Integrate an Azure Cosmos DB solution

Solution: Create an Azure Function that uses the Azure Cosmos DB for NoSQL change feed as a trigger and Azure Event Hubs as the output. Does this meet the goal?

AYes
BNo
Question #77Part 2Optimize an Azure Cosmos DB solution

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account named account1, which hosts a container named Container1. Container1 has provisioned throughput of 100 request units per second (RU/s) and uses one physical partition. You are assessing the throughput available for Container1. What is the maximum burst capacity that Container1 can accumulate?

A300 RU/s
B1,000 RU/s
C30,000 RU/s
D100,000 RU/s
Question #78Part 2Design and implement data distribution

You are designing an Azure Cosmos DB for NoSQL solution to store data from IoT devices. Devices will write every second, and the data will be retained indefinitely. The following is a sample of the data. ![Question Image](https://cdn.examcademy.com/images/questions/1783905264394-qct5xzcc.png) You need to choose a partition key that meets these write requirements: - Minimizes partition skew - Avoids capacity limits - Avoids hot partitions What should you do?

AUse deviceId as the partition key.
BCreate a new synthetic key that contains deviceId and timestamp.
CUse sensor1value as the partition key.
DCreate a new synthetic key that contains deviceId and sensor1Value.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!