QUESTION 22Case Study 4 – Best for You OrganicsBackgroundBest for You Organics Company is a global restaurant franchise that has multiple locations. The company wants to enhance user experiences and vendor integrations. The company plans to implement automated mobile ordering and delivery services.Best For You Organics hosts an Azure web app at the URL https://www.bestforyouorganics.com.Users can use the web app to browse restaurant locations, menu items, nutritional, information, and company information. The company developed and deployed a cross-platform mobile app.RequirementsYou must develop a chartbot by using the Bot Builder SDK and Language Understanding Intelligence Service (LUIS). The chatbot must allow users to order food for pickup or delivery.The chatbot must meet the following requirements: Ensure that chatbot endpoint can be accessed only by the Bot Framework connector. Use natural language processing and speech recognition so that users can interact with the chatbot by using text and voice. Processing must be server-based. Alert users about promotions at local restaurants. Enable users to place an order for delivery or pickup by using their voice. Greet the user upon sign-in by displaying a graphical interface that contains action buttons. The chatbot greeting interface must match the formatting of the following example:

Vendor APIVendors receive and provide updates for the restaurant inventory and delivery services by using Azure API Management hosted APIs. Each vendor uses their own subscription to access each of the APIs.APIs must meet the following conditions: API usage must not exceed 5,000 calls and 50,000 kilobytes of bandwidth per hour per vendor. If a vendor is nearing the number of calls or bandwidth limit, the API must trigger email notifications to the vendor. APIs must prevent API usage spikes on a per-subscription basis by limiting the call rate to 100 calls per minute. The Inventory API must be written by using ASP.NET Core and Node.js. The API must be updated to provide an interface to Azure SQL Database. Database objects must be managed by using code. The Delivery API must be protected by using the OAuth 2.0 protocol with Azure Active Directory (Azure AD) when called from the Azure web app. You register the Delivery API and web app in Azure AD. You enable OAuth 2.0 in the web app. The delivery API must update the Products table, the Vendor transactions table, and the Billing table in a single transaction.The Best For You Organics Company architecture team has created the following diagram depicting the expected deployments into Azure:

Chatbot greetingThe chatbot’s greeting does not show the user’s name. You need to debug the chatbot locally.Language processingUsers report that the bot fails to understand when a customer attempts to order dishes that use Italian names.Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.Startup.cs

You need to implement the purchase requirement.What should you do?

A. Use the Bot Framework REST API attachment operations to send the user’s voice and the Speech Service API to recognize intents.B. Use the Direct Line REST API to send the user’s voice and the Speech Service API to recognize intents.C. Use the Speech Service API to send the user’s voice and the Bot Framework REST API conversation operations to recognize intents.D. Use the Speech Service API to send the user’s voice and the Direct Line REST API to recognize intents.

QUESTION 23Case Study 4 – Best for You OrganicsBackgroundBest for You Organics Company is a global restaurant franchise that has multiple locations. The company wants to enhance user experiences and vendor integrations. The company plans to implement automated mobile ordering and delivery services.Best For You Organics hosts an Azure web app at the URL https://www.bestforyouorganics.com.Users can use the web app to browse restaurant locations, menu items, nutritional, information, and company information. The company developed and deployed a cross-platform mobile app.RequirementsYou must develop a chartbot by using the Bot Builder SDK and Language Understanding Intelligence Service (LUIS). The chatbot must allow users to order food for pickup or delivery.The chatbot must meet the following requirements: Ensure that chatbot endpoint can be accessed only by the Bot Framework connector. Use natural language processing and speech recognition so that users can interact with the chatbot by using text and voice. Processing must be server-based. Alert users about promotions at local restaurants. Enable users to place an order for delivery or pickup by using their voice. Greet the user upon sign-in by displaying a graphical interface that contains action buttons. The chatbot greeting interface must match the formatting of the following example:

Vendor APIVendors receive and provide updates for the restaurant inventory and delivery services by using Azure API Management hosted APIs. Each vendor uses their own subscription to access each of the APIs.APIs must meet the following conditions: API usage must not exceed 5,000 calls and 50,000 kilobytes of bandwidth per hour per vendor. If a vendor is nearing the number of calls or bandwidth limit, the API must trigger email notifications to the vendor. APIs must prevent API usage spikes on a per-subscription basis by limiting the call rate to 100 calls per minute. The Inventory API must be written by using ASP.NET Core and Node.js. The API must be updated to provide an interface to Azure SQL Database. Database objects must be managed by using code. The Delivery API must be protected by using the OAuth 2.0 protocol with Azure Active Directory (Azure AD) when called from the Azure web app. You register the Delivery API and web app in Azure AD. You enable OAuth 2.0 in the web app. The delivery API must update the Products table, the Vendor transactions table, and the Billing table in a single transaction.The Best For You Organics Company architecture team has created the following diagram depicting the expected deployments into Azure:

Chatbot greetingThe chatbot’s greeting does not show the user’s name. You need to debug the chatbot locally.Language processingUsers report that the bot fails to understand when a customer attempts to order dishes that use Italian names.Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.Startup.cs

QUESTION 24Case Study 4 – Best for You OrganicsBackgroundBest for You Organics Company is a global restaurant franchise that has multiple locations. The company wants to enhance user experiences and vendor integrations. The company plans to implement automated mobile ordering and delivery services.Best For You Organics hosts an Azure web app at the URL https://www.bestforyouorganics.com.Users can use the web app to browse restaurant locations, menu items, nutritional, information, and company information. The company developed and deployed a cross-platform mobile app.RequirementsYou must develop a chartbot by using the Bot Builder SDK and Language Understanding Intelligence Service (LUIS). The chatbot must allow users to order food for pickup or delivery.The chatbot must meet the following requirements: Ensure that chatbot endpoint can be accessed only by the Bot Framework connector. Use natural language processing and speech recognition so that users can interact with the chatbot by using text and voice. Processing must be server-based. Alert users about promotions at local restaurants. Enable users to place an order for delivery or pickup by using their voice. Greet the user upon sign-in by displaying a graphical interface that contains action buttons. The chatbot greeting interface must match the formatting of the following example:

Vendor APIVendors receive and provide updates for the restaurant inventory and delivery services by using Azure API Management hosted APIs. Each vendor uses their own subscription to access each of the APIs.APIs must meet the following conditions: API usage must not exceed 5,000 calls and 50,000 kilobytes of bandwidth per hour per vendor. If a vendor is nearing the number of calls or bandwidth limit, the API must trigger email notifications to the vendor. APIs must prevent API usage spikes on a per-subscription basis by limiting the call rate to 100 calls per minute. The Inventory API must be written by using ASP.NET Core and Node.js. The API must be updated to provide an interface to Azure SQL Database. Database objects must be managed by using code. The Delivery API must be protected by using the OAuth 2.0 protocol with Azure Active Directory (Azure AD) when called from the Azure web app. You register the Delivery API and web app in Azure AD. You enable OAuth 2.0 in the web app. The delivery API must update the Products table, the Vendor transactions table, and the Billing table in a single transaction.The Best For You Organics Company architecture team has created the following diagram depicting the expected deployments into Azure:

Chatbot greetingThe chatbot’s greeting does not show the user’s name. You need to debug the chatbot locally.Language processingUsers report that the bot fails to understand when a customer attempts to order dishes that use Italian names.Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.Startup.cs

You need to update the chatbot to greet the user when they sign in.Which two rich card formats can you use? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point.

A. Sign-inB. AnimationC. HeroD. ThumbnailE. Adaptive

Answer: ADExplanation:Scenario: The chatbot greeting interface must match the formatting of the following example:

A message exchange between user and bot can contain one or more rich cards rendered as a list or carousel. The Attachments property of the Activity object contains an array of Attachment objects that represent the rich cards and media attachments within the message.The Bot Framework currently supports eight types of rich cards:Thumbnail Card. A card that typically contains a single thumbnail image, one or more buttons, and text.SignIn Card. A card that enables a bot to request that a user sign-in. It typically contains text and one or more buttons that the user can click to initiate the sign-in process.Incorrect Answers:B: Animation Card. A card that can play animated GIFs or short videos.C Hero Card. A card that typically contains a single large image, one or more buttons, and text.E: Adaptive Card. A customizable card that can contain any combination of text, speech, images, buttons, and input fields.Note:Receipt Card. A card that enables a bot to provide a receipt to the user. It typically contains the list of items to include on the receipt, tax and total information, and other text.Video Card. A card that can play videos.References:https://docs.microsoft.com/en-us/azure/bot-service/dotnet/bot-builder-dotnet-add-rich-card-attachments?view=azure-bot-service-3.0 Question

QUESTION 25Hotspot QuestionA company is developing a software as a service (SaaS) solution in Azure for other business to manage customers. The solution includes the following Azure SQL Database instances. Customer data exists in all databases.

Customers may request that the company remove data that relates to the customer. If a customer makes a deletion request, all details from the customer must be removed from the solution. All deletions for a customer must occur in one distributed transaction that includes the CRM, ERP, and Marketing databases.You need to activate support for transactions over multiple databases on the same logical server and activate support for transactions over multiple servers.Which actions and Azure PowerShell command should you use? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.

Answer:

Explanation:Box 1: Use a transaction scopeThe TransactionScope class establishes an ambient transaction in .NET. (An “ambient transaction” is one that lives in the current thread.) All connections opened within the TransactionScope participate in the transaction. If different databases participate, the transaction is automatically elevated to a distributed transaction.Box 2: New-AzureRmSqlServerCommunicationLinkNew-AzureRmSqlServerCommunicationLink: Use this cmdlet to create a new communication relationship between two logical servers in Azure SQL DB. The relationship is symmetric which means both servers can initiate transactions with the other server.References:https://docs.microsoft.com/en-us/azure/sql-database/sql-database-elastic-transactions-overview

QUESTION 26Hotspot QuestionA construction company creates three-dimensional models from photographs and design diagrams of buildings. The company plans to store high-resolution photographs and blueprint files in Azure Blob Storage. The files are currently stored in the construction company’s office.You are developing a tool to connect to Azure Storage, create container, and then upload the files. The tool must remain responsive to the end user while it is running and performing remote I/O operations. It must also wait for methods to complete before continuing.You need to complete the configuration.How should you complete the code? To answer, select the appropriate options in the answer area.NOTE: Each correct solution is worth one point.

Answer:

Explanation:Box 1: ProcessAsync();Box 2: await cloudBlobContainer.CreatAsync();If you specify that a method is an async method by using the async modifier, you enable the following two capabilities.The marked async method can use await to designate suspension points. The await operator tells the compiler that the async method can’t continue past that point until the awaited asynchronous process is complete. In the meantime, control returns to the caller of the async method.The suspension of an async method at an await expression doesn’t constitute an exit from the method, and finally blocks don’t run.The marked async method can itself be awaited by methods that call it.References:https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/async/

QUESTION 27Drag and Drop QuestionYou are creating a collaborative image hosting platform as an ASP.NET MVC web application. Users add, update, and modify images on the platform. Images are stored in Azure Blob storage.More than one user at a time must be able to modify the same image.You need to implement optimistic concurrency for uploading images.Which four 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.NOTE: Each correct solution is worth one point.

Answer:

Explanation:Optimistic concurrency means allowing concurrency conflicts to happen, and then reacting appropriately if they do.For the PUT method, If-Match can be used to prevent the lost update problem. It can check if the modification of a resource that the user wants to upload will not override another change that has been done since the original resource was fetched. If the request cannot be fulfilled, the 412 (Precondition Failed) response is returned.References:https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match

QUESTION 28Members of the finance department for a company review and make changes to a Microsoft Excel workbook that is hosted on OneDrive. The workbook contains projected costs and revenue for a project.You need to develop an Azure Function that ingests data from the modified workbook and places it into a Microsoft Word document.Which two objects should you implement? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.

A. A group conversation subscriptionB. An Excel table input bindingC. A group subscriptionD. An Excel table output bindingE. An auth token input binding