最新的Microsoft Azure Developer Advanced Solutions - AZ-201免費考試真題

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 use ASP.NET Core MVC with ADO.NET to develop an application. You implement database sharding for the application by using Azure SQL Database. You establish communication links between the shard databases.
You need to implement a strategy that allows a group of operations that are performed on multiple Azure databases to be rolled back on all databases if any of the operations fail.
Solution:
* In the .NET method, define a new transaction in a using block.
* Within the using block, establish connections to each Azure SQL Database instance.
* Run the SQL operations on each connection. If no exception occurs, commit the transaction.
Does the solution meet the goal?

正確答案: B
You are developing an SMS-based testing solution. The solution sends users a question by using SMS. Early responders may qualify for prizes.
Users must respond with an answer choice within 90 seconds. You must be able to track how long it takes each user to respond.
You create a durable Azure Function named SendSmsQuizQuestion that uses Twilio to send messages.
You need to write the code for MessageQuiz.
How should you complete the code? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
正確答案:

Explanation


Box 1: DateTime expiration = context.CurrentUtcDateTime.AddSeconds(90); The user has 90 seconds to respond with the code they received in the SMS message.
Box 2:var timeoutTask = context.CreateTimer(expiration, cts.Token);
Create a timer.
Box 3: if(!timeoutTask.IsCompleted)
All pending timers must be complete or canceled before the function exits.
References:
https://github.com/Azure/azure-functions-durable-extension/blob/master/samples/precompiled/PhoneVerification
You are developing a .NET Core Web Job that is triggered by an Azure Storage Queue.
The project uses dependency injection from the NuGet package Microosft.Extensions.DependencyInjection.
The Webjob logic is contained in the Worker class. The program.cs file contains the following code:

You need to ensure that the Worker class can run when an Azure Storage Queue message arrives.
Which code segments should you use to complete the code? To answer, drag the appropriate code segments to the correct locations. Each code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content NOTE: Each correct selection is worth one point.
正確答案:
Contoso, Ltd. hosts the following ASP.NET workloads in Azure:

Users of the Sales software report mismatches between shown inventory at the time of sale and actual availability. Transactions across the two systems result in inconsistent reads and writes. You encapsulate Sales order creation and Inventory status updates in elastic transactions.
You need to recommend changes to code and the databases to support transactions.
Which actions should you recommend? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
正確答案:
You develop a website. You plan to host the website in Azure. You expect the website to experience high traffic volumes after it is published. You must ensure that the website remains available and responsive while minimizing cost. You need to deploy the website. What should you do?

正確答案: C
You need to implement the purchase requirement
What should you do?

正確答案: A
A company is creating an IoT solution for connecting to smart refrigerators. You plan to use the Azure IoT Hub Device Provisioning Service for this process.
You need to provision the devices automatically.
Which feature of Device Provisioning Service should you use?

正確答案: A
說明:(僅 Fast2test 成員可見)

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어