Sign In
Home/Microsoft/DP-420/Free questions

DP-420 — Free Practice Questions

10 free sample questions from a bank of 189, with the correct answers and explanations. No signup required — start practising right now.

1HOTSPOT - You have an Azure Cosmos DB Core (SQL) API account named account1 that has the disableKeyBasedMetadataWriteAccess property enabled. You are developing an app named App1 that will be used by a user named DevUser1 to create containers in account1. DevUser1 has a non-privileged user account in the Azure Active Directory (Azure AD) tenant. You need to ensure that DevUser1 can use App1 to create containers in account1. What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
DP-420 question 1
    Answer:
    2HOTSPOT - You have a container in an Azure Cosmos DB Core (SQL) API account. You need to use the Azure Cosmos DB SDK to replace a document by using optimistic concurrency. What should you include in the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
    DP-420 question 2
      Answer:
      3HOTSPOT - You are creating a database in an Azure Cosmos DB Core (SQL) API account. The database will be used by an application that will provide users with the ability to share online posts. Users will also be able to submit comments on other users' posts. You need to store the data shown in the following table. The application has the following characteristics: ✑ Users can submit an unlimited number of posts. ✑ The average number of posts submitted by a user will be more than 1,000. ✑ Posts can have an unlimited number of comments from different users. ✑ The average number of comments per post will be 100, but many posts will exceed 1,000 comments. ✑ Users will be limited to having a maximum of 20 interests. 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:
      DP-420 question 3DP-420 question 3
        Answer:
        4DRAG DROP - You have an app that stores data in an Azure Cosmos DB Core (SQL) API account The app performs queries that return large result sets. You need to return a complete result set to the app by using pagination. Each page of results must return 80 items. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Select and Place:
        DP-420 question 4
          Answer:
          5Note: 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 an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput. You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value. Solution: You configure an Azure Monitor alert to trigger the function. Does this meet the goal?
          • Yes
          • No
          Answer: A
          6Note: 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 an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput. You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value. Solution: You configure the function to have an Azure CosmosDB trigger. Does this meet the goal?
          • Yes
          • No
          Answer: B
          7Note: 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 an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput. You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value. Solution: You configure an application to use the change feed processor to read the change feed and you configure the application to trigger the function. Does this meet the goal?
          • Yes
          • No
          Answer: B
          8You have a database named db1 in an Azure Cosmos DB Core (SQL) API account. You are designing an application that will use db1. In db1, you are creating a new container named coll1 that will store online orders. The following is a sample of a document that will be stored in coll1. The application will have the following characteristics: ✑ New orders will be created frequently by different customers. ✑ Customers will often view their past order history. You need to select the partition key value for coll1 to support the application. The solution must minimize costs. To what should you set the partition key?
          DP-420 question 8
          • orderId
          • customerId
          • orderDate
          • id
          Answer: B
          9You have a container in an Azure Cosmos DB Core (SQL) API account that stores data about orders. The following is a sample of an order document. Documents are up to 2 KB. You plan to receive one million orders daily. Customers will frequently view their past order history. You are the 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.
          DP-420 question 9
          • You will exceed the maximum number of partition key values
          • You will exceed the maximum storage per partition
          • There will always be a hot partition
          • Queries will run cross-partition
          Answer:
          10You have a container in an Azure Cosmos DB Core (SQL) API account. The container stores data about families. Data about parents, children, and pets are stored as separate documents. Each document contains the address of each family. Members of the same family share the same partition key named familyId. You need to update the address for each member of the same family that share the same address. The solution must meet the following requirements: ✑ Be atomic, consistent, isolated, and durable (ACID). ✑ Provide the lowest latency. What should you do?
          • Update the document of each family member separately by using a patch operation
          • Update the document of each family member separately and set the consistency level to strong
          • Update the document of each family member by using a transactional batch operation
          Answer: C

          Want the full bank of 189 questions for DP-420? See all practice exams.