This page was exported from Actual Test Materials [ http://blog.actualtests4sure.com ] Export date:Fri Nov 15 20:11:16 2024 / +0000 GMT ___________________________________________________ Title: Achieve the DP-420 Exam Best Results with Help from Microsoft Certified Experts [Q22-Q46] --------------------------------------------------- Achieve the DP-420 Exam Best Results with Help from Microsoft Certified Experts Provide DP-420 Practice Test Engine for Preparation NEW QUESTION 22You 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-autoscaleNEW QUESTION 23You need to implement a trigger in Azure Cosmos DB Core (SQL) API that will run before an item is inserted into a container.Which two actions should you perform to ensure that the trigger runs? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.  Append pre to the name of the JavaScript function trigger.  For each create request, set the access condition in RequestOptions.  Register the trigger as a pre-trigger.  For each create request, set the consistency level to session in RequestOptions.  For each create request, set the trigger name in RequestOptions. C: When triggers are registered, you can specify the operations that it can run with.F: When executing, pre-triggers are passed in the RequestOptions object by specifying PreTriggerInclude and then passing the name of the trigger in a List object.NEW QUESTION 24You 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.htmlNEW QUESTION 25The settings for a container in an Azure Cosmos DB Core (SQL) API account are configured as shown in the following exhibit.Which statement describes the configuration of the container?  All items will be deleted after one year.  Items stored in the collection will be retained always, regardless of the items time to live value.  Items stored in the collection will expire only if the item has a time to live value.  All items will be deleted after one hour. When DefaultTimeToLive is -1 then your Time to Live setting is On (No default) Time to Live on a container, if present and the value is set to “-1”, it is equal to infinity, and items don’t expire by default.Time to Live on an item:This Property is applicable only if DefaultTimeToLive is present and it is not set to null for the parent container.If present, it overrides the DefaultTimeToLive value of the parent container.NEW QUESTION 26You have a database in an Azure Cosmos DB Core (SQL) API account.You need to create an Azure function that will access the database to retrieve records based on a variable named accountnumber. The solution must protect against SQL injection attacks.How should you define the command statement in the function?  cmd = “SELECT * FROM Persons pWHERE p.accountnumber = ‘accountnumber'”  cmd = “SELECT * FROM Persons pWHERE p.accountnumber = LIKE @accountnumber”  cmd = “SELECT * FROM Persons pWHERE p.accountnumber = @accountnumber”  cmd = “SELECT * FROM Persons pWHERE p.accountnumber = ‘” + accountnumber + “‘” Azure Cosmos DB supports queries with parameters expressed by the familiar @ notation. Parameterized SQL provides robust handling and escaping of user input, and prevents accidental exposure of data through SQL injection.For example, you can write a query that takes lastName and address.state as parameters, and execute it for various values of lastName and address.state based on user input.SELECT *FROM Families fWHERE f.lastName = @lastName AND f.address.state = @addressStateNEW QUESTION 27Note: 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.NEW QUESTION 28You 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/NEW QUESTION 29You have an Azure Cosmos DB Core (SQL) API account named storage1 that uses provisioned throughput capacity mode.The storage1 account contains the databases shown in the following table.The databases contain the containers 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. Reference:https://docs.microsoft.com/en-us/azure/cosmos-db/plan-manage-costshttps://azure.microsoft.com/en-us/pricing/details/cosmos-db/NEW QUESTION 30Note: 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 function that uses Azure Cosmos DB Core (SQL) API change feed as a trigger and Azure event hub as the output.Does this meet the goal?  Yes  No The Azure Cosmos DB change feed is a mechanism to get a continuous and incremental feed of records from an Azure Cosmos container as those records are being created or modified. Change feed support works by listening to container for any changes. It then outputs the sorted list of documents that were changed in the order in which they were modified.The following diagram represents the data flow and components involved in the solution:NEW QUESTION 31You provision Azure resources by using the following Azure Resource Manager (ARM) template.For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point. NEW QUESTION 32Note: 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 Instead configure an Azure Monitor alert to trigger the function.You can set up alerts from the Azure Cosmos DB pane or the Azure Monitor service in the Azure portal.NEW QUESTION 33You 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. NEW QUESTION 34You 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.NEW QUESTION 35You need to identify which connectivity mode to use when implementing App2. The solution must support the planned changes and meet the business requirements.Which connectivity mode should you identify?  Direct mode over HTTPS  Gateway mode (using HTTPS)  Direct mode over TCP Scenario: Develop an app named App2 that will run from the retail stores and query the data in account2. App2 must be limited to a single DNS endpoint when accessing account2.By using Azure Private Link, you can connect to an Azure Cosmos account via a private endpoint. The private endpoint is a set of private IP addresses in a subnet within your virtual network.When you’re using Private Link with an Azure Cosmos account through a direct mode connection, you can use only the TCP protocol. The HTTP protocol is not currently supported.Reference:https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-private-endpointsNEW QUESTION 36You have a container named container1 in an Azure Cosmos DB Core (SQL) API account.You need to provide a user named User1 with the ability to insert items into container1 by using role-based access control (RBAC). The solution must use the principle of least privilege.Which roles should you assign to User1?  CosmosDB Operator only  DocumentDB Account Contributor and Cosmos DB Built-in Data Contributor  DocumentDB Account Contributor only  Cosmos DB Built-in Data Contributor only Cosmos DB Operator: Can provision Azure Cosmos accounts, databases, and containers. Cannot access any data or use Data Explorer.Incorrect Answers:B: DocumentDB Account Contributor can manage Azure Cosmos DB accounts. Azure Cosmos DB is formerly known as DocumentDB.C: DocumentDB Account Contributor: Can manage Azure Cosmos DB accounts.NEW QUESTION 37You 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.NEW QUESTION 38You have an Azure Cosmos DB Core (SQL) API account that is used by 10 web apps.You need to analyze the data stored in the account by using Apache Spark to create machine learning models. The solution must NOT affect the performance of the web apps.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.  In an Apache Spark pool in Azure Synapse, create a table that uses cosmos.olap as the data source.  Create a private endpoint connection to the account.  In an Azure Synapse Analytics serverless SQL pool, create a view that uses OPENROWSET and the CosmosDB provider.  Enable Azure Synapse Link for the account and Analytical store on the container.  In an Apache Spark pool in Azure Synapse, create a table that uses cosmos.oltp as the data source. Reference:https://github.com/microsoft/MCW-Cosmos-DB-Real-Time-Advanced-Analytics/blob/main/Hands-on%20lab/HOL%20step-by%20step%20-%20Cosmos%20DB%20real-time%20advanced%20analytics.mdNEW QUESTION 39You have a database in an Azure Cosmos DB SQL API Core (SQL) account that is used for development.The database is modified once per day in a batch process.You need to ensure that you can restore the database if the last batch process fails. The solution must minimize costs.How should you configure the backup settings? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point. NEW QUESTION 40You have a container named container1 in an Azure Cosmos DB Core (SQL) API account.The following is a sample of a document in container1.{“studentId”: “631282”,“firstName”: “James”,“lastName”: “Smith”,“enrollmentYear”: 1990,“isActivelyEnrolled”: true,“address”: {“street”: “”,“city”: “”,“stateProvince”: “”,“postal”: “”,}}The container1 container has the following indexing policy.{“indexingMode”: “consistent”,“includePaths”: [{“path”: “/*”},{“path”: “/address/city/?”}],“excludePaths”: [{“path”: “/address/*”},{“path”: “/firstName/?”}]}For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point. NEW QUESTION 41You 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.NEW QUESTION 42You 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.  Loading … Get to know about the salary of the Microsoft DP-420 certified professional The salary of the Microsoft DP-420 Certified professional depends on the type of the organization, company size, location, and the number of years of experience. It also depends on the job title of the Microsoft DP-420 certified professional. The average salary a Microsoft DP-420 certified professional can get, after passing the exam with the help of the DP-420 Dumps is as follows: In the United States: 85,000 USDIn Sweden: 37,000 SEKIn the United Kingdom: 56,000 GBPIn Germany: 43,000 EURIn India: 45,000 INR   Detailed New DP-420 Exam Questions for Concept Clearance: https://www.actualtests4sure.com/DP-420-test-questions.html --------------------------------------------------- Images: https://blog.actualtests4sure.com/wp-content/plugins/watu/loading.gif https://blog.actualtests4sure.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-09-11 12:20:38 Post date GMT: 2022-09-11 12:20:38 Post modified date: 2022-09-11 12:20:38 Post modified date GMT: 2022-09-11 12:20:38