Pass the Microsoft Microsoft Certified: Azure Cosmos DB Developer Specialty DP-420 Questions and answers with CertsForce

Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions
Questions # 11:

You have the indexing policy shown in the following exhibit.

Question # 11

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.

Question # 11


Expert Solution
Questions # 12:

You have a database in an Azure Cosmos DB Core (SQL) API account.

You plan to create a container that will store employee data for 5,000 small businesses. Each business will have up to 25 employees. Each employee item will have an emailAddress value.

You need to ensure that the emailAddress value for each employee within the same company is unique.

To what should you set the partition key and the unique key? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 12


Expert Solution
Questions # 13:

You are building an application that will store data in an Azure Cosmos DB for NoSQL account. The account uses the session default consistency level. The account is used by five other applications. The account has a single read-write region and 10 additional read regions.

Approximately 20 percent of the items stored in the account are updated hourly.

Several users will access the new application from multiple devices.

You need to ensure that the users see the same item values consistently when they browse from the different devices. The solution must notaffect the other applications.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Use implicit session management when performing read requests.


B.

Provide a stored session token when performing read requests.


C.

Associate a session token to the user account.


D.

Set the default consistency level to eventual.


E.

Associate a session token to the device.


Expert Solution
Questions # 14:

You have an Azure Cosmos DB for NoSQL 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?

Options:

A.

Writes will use the strong consistency level.


B.

Azure Cosmos DB will reject writes from the application.


C.

The write order is not guaranteed during replication.


D.

Writes will use the eventual consistency level.


Expert Solution
Questions # 15:

You have an Azure Cosmos DB container named container1.

You need to insert an item into contained. The solution must ensure that the item is deleted automatically after two hours.

How should you complete the item definition? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 15


Expert Solution
Questions # 16:

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?

Options:

A.

List the physical partitions of Container1.


B.

Read a stored procedure in Container1.


C.

Create a user defined function (UDF) in Container1.


D.

Create a container in DB1.


Expert Solution
Questions # 17:

You plan to implement con-iot1 and con-iot2.

You need to configure the default Time to Live setting for each container. The solution must meet the loT telemetry requirements.

What should you configure? To answer, select the appropriate options in the answer NOTE: Each correct selection is worth one point.

Question # 17


Expert Solution
Questions # 18:

You have an Azure Cosmos DB container named container! that has a provisioned throughput and two physical partitions. You monitor the following metrics for container1

• Normalized RU consumption

• The percentage of requests that have an HTTP status code of 429

You need to confirm that container1 is configured to maximize resource utilization.

What are the optimal values for each metric? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Question # 18


Expert Solution
Questions # 19:

You plan to create an Azure Cosmos DB for NoSQL account that will have a single write region and three read regions. You need to set the consistency level for the account. The solution must meet the following requirements:

• In the write region, writes must replicate synchronously across at least three replicas.

• In the read regions, reads must see writes in order for transactional batches.

• Throughput for reads and writes must be maximized.

Which consistency level should you select?

Options:

A.

Eventual


B.

Bounded Staleness


C.

Consistent Prefix


D.

Strong


Expert Solution
Questions # 20:

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?

Options:

A.

the changeFeedStartFew value


B.

the Pagesize value


C.

the FeedRange value


D.

a stream-based iterator


Expert Solution
Viewing page 2 out of 3 pages
Viewing questions 11-20 out of questions