QUESTION 16Case Study 3 – Proseware, IncBackgroundYou are a developer for Proseware, Inc. You are developing an application that applies a set of governance policies for Proseware’s internal services, external services, and applications. The application will also provide a shared library for common functionality.RequirementsPolicy serviceYou develop and deploy a stateful ASP.NET Core 2.1 web application named Policy service to an Azure App Service Web App. The application reacts to events from Azure Event Grid and performs policy actions based on those events.The application must include the Event Grid Event ID field in all Application Insights telemetry.Policy service must use Application Insights to automatically scale with the number of policy actions that it is performing.PoliciesLog PolicyAll Azure App Service Web Apps must write logs to Azure Blob storage. All log files should be saved to a container named logdrop. Logs must remain in the container for 15 days.Authentication eventsAuthentication events are used to monitor users signing in and signing out. All authentication events must be processed by Policy service. Sign outs must be processed as quickly as possible.PolicyLibYou have a shared library named PolicyLib that contains functionality common to all ASP.NET Core web services and applications. The PolicyLib library must: Exclude non-user actions from Application Insights telemetry. Provide methods that allow a web service to scale itself Ensure that scaling actions do not disrupt application usageOtherAnomaly detection serviceYou have an anomaly detection service that analyzes log information for anomalies. It is implemented as an Azure Machine Learning model. The model is deployed as a web service.If an anomaly is detected, an Azure Function that emails administrators is called by using an HTTP WebHook.Health monitoringAll web applications and services have health monitoring at the /health service endpoint.Policy lossWhen you deploy Policy service, policies may not be applied if they were in the process of being applied during the deployment.Performance issueWhen under heavy load, the anomaly detection service undergoes slowdowns and rejects connections.Notification latencyUsers report that anomaly detection emails can sometimes arrive several minutes after an anomaly is detected.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.

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.

You need to resolve a notification latency issue.Which two actions should you perform? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.

A. Ensure that the Azure Function is set to use a consumption plan.B. Ensure that the Azure Function is using an App Service plan.C. Set Always On to false.D. Set Always On to true.

Answer: BDExplanation:Azure Functions can run on either a Consumption Plan or a dedicated App Service Plan. If you run in a dedicated mode, you need to turn on the Always On setting for your Function App to run properly. The Function runtime will go idle after a few minutes of inactivity, so only HTTP triggers will actually “wake up” your functions. This is similar to how WebJobs must have Always On enabled.Scenario: Notification latency: Users report that anomaly detection emails can sometimes arrive several minutes after an anomaly is detected.Anomaly detection service: You have an anomaly detection service that analyzes log information for anomalies. It is implemented as an Azure Machine Learning model. The model is deployed as a web service.If an anomaly is detected, an Azure Function that emails administrators is called by using an HTTP WebHook.References:https://github.com/Azure/Azure-Functions/wiki/Enable-Always-On-when-running-on-dedicated-App-Service-Plan

QUESTION 17Case 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

Hotspot QuestionYou need to update the Inventory API.Which development tools should you use? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.

QUESTION 18Case 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

Note: In this section you will see one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem, and you must determine whether the solution meets the stated goals. More than one solution might solve the problem. It is also possible that none of the solutions solve the problem.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.Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.You need to meet the vendor notification requirement.Solution: Create and apply a custom outbound Azure API Management policy.Does the solution meet the goal?

A. YesB. No

Answer: AExplanation:Scenario:If a vendor is nearing the number of calls or bandwidth limit, the API must trigger email notifications to the vendor.(API usage must not exceed 5,000 calls and 50,000 kilobytes of bandwidth per hour per vendor.) In Azure API Management (APIM), policies are a powerful capability of the system that allow the publisher to change the behavior of the API through configuration.Policies are a collection of Statements that are executed sequentially on the request or response of an API. Popular Statements include format conversion from XML to JSON and call rate limiting to restrict the amount of incoming calls from a developer. Many more policies are available out of the box.References:https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-policies

QUESTION 19Case 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

Note: In this section you will see one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem, and you must determine whether the solution meets the stated goals. More than one solution might solve the problem. It is also possible that none of the solutions solve the problem.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.Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.You need to meet the vendor notification requirement.Solution: Update the Delivery API to send emails by using a Microsoft Office 365 SMTP server.Does the solution meet the goal?

QUESTION 20Case 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

Note: In this section you will see one or more sets of questions with the same scenario and problem. Each question presents a unique solution to the problem, and you must determine whether the solution meets the stated goals. More than one solution might solve the problem. It is also possible that none of the solutions solve the problem.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.Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals.You need to meet the vendor notification requirement.Solution: Configure notifications in the Azure API Management instance.Does the solution meet the goal?