This page was exported from Latest Exam Prep [ http://certify.vceprep.com ] Export date:Sat Dec 14 9:01:18 2024 / +0000 GMT ___________________________________________________ Title: Ultimate Guide to Prepare Free Microsoft DP-420 Exam Questions & Answer [Q17-Q40] --------------------------------------------------- Ultimate Guide to Prepare Free Microsoft DP-420 Exam Questions and Answer Pass Microsoft DP-420 Tests Engine pdf - All Free Dumps Q17. You are designing an Azure Cosmos DB Core (SQL) API solution to store data from IoT devices. Writes from the devices will be occur every second.The following is a sample of the data.You need to select a partition key that meets the following requirements for writes:Minimizes the partition skewAvoids capacity limitsAvoids hot partitionsWhat should you do?  Use timestamp as the partition key.  Create a new synthetic key that contains deviceId and sensor1Value.  Create a new synthetic key that contains deviceId and deviceManufacturer.  Create a new synthetic key that contains deviceId and a random number. Use a partition key with a random suffix. Distribute the workload more evenly is to append a random number at the end of the partition key value. When you distribute items in this way, you can perform parallel write operations across partitions.Incorrect Answers:A: You will also not like to partition the data on “DateTime”, because this will create a hot partition. Imagine you have partitioned the data on time, then for a given minute, all the calls will hit one partition. If you need to retrieve the data for a customer, then it will be a fan-out query because data may be distributed on all the partitions.B: Senser1Value has only two values.C: All the devices could have the same manufacturer.Q18. You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. The container1 container has 120 GB of data.The following is a sample of a document in container1.The orderId property is used as the partition key.For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point. Q19. You have an Azure Cosmos DB Core (SQL) API account named account1.You have the Azure virtual networks and subnets shown in the following table.The vnet1 and vnet2 networks are connected by using a virtual network peer.The Firewall and virtual network settings for account1 are configured as shown in the exhibit.For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point. Q20. You plan to create an Azure Cosmos DB Core (SQL) API account that will use customer-managed keys stored in Azure Key Vault.You need to configure an access policy in Key Vault to allow Azure Cosmos DB access to the keys.Which three permissions should you enable in the access policy? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.  Wrap Key  Get  List  Update  Sign  Verify  Unwrap Key Q21. 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. Q22. You need to select the partition key for con-iot1. The solution must meet the IoT telemetry requirements.What should you select?  the timestamp  the humidity  the temperature  the device ID The partition key is what will determine how data is routed in the various partitions by Cosmos DB and needs to make sense in the context of your specific scenario. The IoT Device ID is generally the “natural” partition key for IoT applications.Scenario: The iotdb database will contain two containers named con-iot1 and con-iot2.Ensure that Azure Cosmos DB costs for IoT-related processing are predictable.Reference:https://docs.microsoft.com/en-us/azure/architecture/solution-ideas/articles/iot-using-cosmos-dbQ23. You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. Upserts of items in container1 occur every three seconds.You have an Azure Functions app named function1 that is supposed to run whenever items are inserted or replaced in container1.You discover that function1 runs, but not on every upsert.You need to ensure that function1 processes each upsert within one second of the upsert.Which property should you change in the Function.json file of function1?  checkpointInterval  leaseCollectionsThroughput  maxItemsPerInvocation  feedPollDelay With an upsert operation we can either insert or update an existing record at the same time.FeedPollDelay: The time (in milliseconds) for the delay between polling a partition for new changes on the feed, after all current changes are drained. Default is 5,000 milliseconds, or 5 seconds.Incorrect Answers:A: checkpointInterval: When set, it defines, in milliseconds, the interval between lease checkpoints. Default is always after each Function call.C: maxItemsPerInvocation: When set, this property sets the maximum number of items received per Function call. If operations in the monitored collection are performed through stored procedures, transaction scope is preserved when reading items from the change feed. As a result, the number of items received could be higher than the specified value so that the items changed by the same transaction are returned as part of one atomic batch.Q24. You configure multi-region writes for account1.You need to ensure that App1 supports the new configuration for account1. The solution must meet the business requirements and the product catalog requirements.What should you do?  Set the default consistency level of accountl to bounded staleness.  Create a private endpoint connection.  Modify the connection policy of App1.  Increase the number of request units per second (RU/s) allocated to the con-product and con-productVendor containers. App1 queries the con-product and con-productVendor containers.Note: Request unit is a performance currency abstracting the system resources such as CPU, IOPS, and memory that are required to perform the database operations supported by Azure Cosmos DB.Scenario:Develop an app named App1 that will run from all locations and query the data in account1.Once multi-region writes are configured, maximize the performance of App1 queries against the data in account1.Whenever there are multiple solutions for a requirement, select the solution that provides the best performance, as long as there are no additional costs associated.Reference:https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levelsQ25. You plan to deploy two Azure Cosmos DB Core (SQL) API accounts that will each contain a single database. The accounts will be configured as shown in the following table.How should you provision the containers within each account to minimize costs? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point. Reference:https://docs.microsoft.com/en-us/azure/cosmos-db/serverlesshttps://docs.microsoft.com/en-us/azure/cosmos-db/provision-throughput-autoscale#use-cases-of-autoscaleQ26. 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 Core (SQL) API account.You need to make the contents of container1 available as reference data for an Azure Stream Analytics job.Solution: You create an Azure Data Factory pipeline that uses Azure Cosmos DB Core (SQL) API as the input and Azure Blob Storage as the output.Does this meet the goal?  Yes  No Q27. 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. Reference:https://docs.microsoft.com/en-us/azure/cosmos-db/secure-access-to-datahttps://docs.microsoft.com/en-us/rest/api/resources/Q28. You are developing an application that will use an Azure Cosmos DB Core (SQL) API account as a data source.You need to create a report that displays the top five most ordered fruits as shown in the following table.A collection that contains aggregated data already exists. The following is a sample document:{“name”: “apple”,“type”: [“fruit”, “exotic”],“orders”: 10000}Which two queries can you use to retrieve data for the report? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point.A)B)C)D)  Option A  Option B  Option C  Option D ARRAY_CONTAINS returns a Boolean indicating whether the array contains the specified value. You can check for a partial or full match of an object by using a boolean expression within the command.Incorrect Answers:A: Default sorting ordering is Ascending. Must use Descending order.C: Order on Orders not on Type.Q29. You configure 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. Q30. You have the following query.SELECT * FROM cWHERE c.sensor = “TEMP1”AND c.value < 22AND c.timestamp >= 1619146031231You need to recommend a composite index strategy that will minimize the request units (RUs) consumed by the query.What should you recommend?  a composite index for (sensor ASC, value ASC) and a composite index for (sensor ASC, timestamp ASC)  a composite index for (sensor ASC, value ASC, timestamp ASC) and a composite index for (sensor DESC, value DESC, timestamp DESC)  a composite index for (value ASC, sensor ASC) and a composite index for (timestamp ASC, sensor ASC)  a composite index for (sensor ASC, value ASC, timestamp ASC) If a query has a filter with two or more properties, adding a composite index will improve performance.Consider the following query:SELECT * FROM c WHERE c.name = “Tim” and c.age > 18In the absence of a composite index on (name ASC, and age ASC), we will utilize a range index for this query. We can improve the efficiency of this query by creating a composite index for name and age.Queries with multiple equality filters and a maximum of one range filter (such as >,<, <=, >=, !=) will utilize the composite index.Q31. You have an application named App1 that reads the data in an Azure Cosmos DB Core (SQL) API account. App1 runs the same read queries every minute. The default consistency level for the account is set to eventual.You discover that every query consumes request units (RUs) instead of using the cache.You verify the IntegratedCacheiteItemHitRate metric and the IntegratedCacheQueryHitRate metric. Both metrics have values of 0.You verify that the dedicated gateway cluster is provisioned and used in the connection string.You need to ensure that App1 uses the Azure Cosmos DB integrated cache.What should you configure?  the indexing policy of the Azure Cosmos DB container  the consistency level of the requests from App1  the connectivity mode of the App1 CosmosClient  the default consistency level of the Azure Cosmos DB account Because the integrated cache is specific to your Azure Cosmos DB account and requires significant CPU and memory, it requires a dedicated gateway node. Connect to Azure Cosmos DB using gateway mode.Q32. You have a database in an Azure Cosmos DB Core (SQL) API account. The database is backed up every two hours.You need to implement a solution that supports point-in-time restore.What should you do first?  Enable Continuous Backup for the account.  Configure the Backup & Restore settings for the account.  Create a new account that has a periodic backup policy.  Configure the Point In Time Restore settings for the account. Q33. You have an Azure Cosmos DB Core (SQL) API account used by an application named App1.You open the Insights pane for the account and see the following chart.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. Q34. 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. Reference:https://docs.microsoft.com/en-us/azure/cosmos-db/sql/change-feed-design-patternshttps://docs.microsoft.com/en-us/azure/cosmos-db/change-feedQ35. 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 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 You can set up alerts from the Azure Cosmos DB pane or the Azure Monitor service in the Azure portal.Note: Alerts are used to set up recurring tests to monitor the availability and responsiveness of your Azure Cosmos DB resources. Alerts can send you a notification in the form of an email, or execute an Azure Function when one of your metrics reaches the threshold or if a specific event is logged in the activity log.Q36. You maintain a relational database for a book publisher. The database contains the following tables.The most common query lists the books for a given authorId.You need to develop a non-relational data model for Azure Cosmos DB Core (SQL) API that will replace the relational database. The solution must minimize latency and read operation costs.What should you include in the solution?  Create 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.  Create Author, Book, and Bookauthorlnk documents in the same container.  Create a container that contains a document for each Author and a document for each Book. In each Book document, embed authorId.  Create a container for Author and a container for Book. In each Author document and Book document embed the data from Bookauthorlnk. Store multiple entity types in the same container.Q37. 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. Reference:https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cosmos.itemrequestoptionshttps://cosmosdb.github.io/labs/dotnet/labs/10-concurrency-control.html Loading … Online Exam Practice Tests with detailed explanations!: https://www.vceprep.com/DP-420-latest-vce-prep.html --------------------------------------------------- Images: https://certify.vceprep.com/wp-content/plugins/watu/loading.gif https://certify.vceprep.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-10-18 16:52:38 Post date GMT: 2022-10-18 16:52:38 Post modified date: 2022-10-18 16:52:38 Post modified date GMT: 2022-10-18 16:52:38