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 develop an entertainment application where users can buy and trade virtual real estate. The application must scale to support thousands of users.
The current architecture includes five Azure Virtual Machines (VM) that connect to an Azure SQL Database for account information and Azure Table Storage for backend services. A user interacts with these components in the cloud at any given time
- Routing Service "" Routes a request to the appropriate service and must not persist data across sessions
- Account Service "" Stores and manages all account information and authentication and requires data to persist across sessions.
- User Service "" Stores and manages all user information and requires data to persist across sessions.
- Housing Network Service "" Stores and manages the current real-estate economy and requires data to persist across sessions.
- Trade Service "" Stores and manages virtual trade between accounts and requires data to persist across sessions.
Due to volatile user traffic, a microservices solution is selected for scale agility.
You need to migrate to a distributed microservices solution on Azure Service Fabric.
Solution: Deploy a Windows container to Azure Service Fabric for each component.
Does the solution meet the goal?
Answer : B
Explanation:
We should use stateful services when we want data to persist, and stateless service when data must not persist.
References:
https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-introduction
HOTSPOT -
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.
Hot Area:
Answer :
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.cs
You are developing an Azure Durable Function instance. You need to add a delay by using a durable timer.
What type of function should you use?
Answer : B
Explanation:
Durable Functions provides durable timers for use in orchestrator functions to implement delays or to set up timeouts on async actions.
References:
https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview
HOTSPOT -
You are creating an app that uses Event Grid to connect with other services. Your app"™s event data will be sent to a serverless function that checks compliance.
This function is maintained by your company.
You write a new event subscription at the scope of your resource. The event must be invalidated after a specific period of time.
You need to configure Event Grid to ensure security.
What should you implement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Answer :
Explanation:
Box 1: SAS tokens -
Custom topics use either Shared Access Signature (SAS) or key authentication. Microsoft recommends SAS, but key authentication provides simple programming, and is compatible with many existing webhook publishers.
In this case we need the expiration time provided by SAS tokens.
Box 2: ValidationCode handshake -
Event Grid supports two ways of validating the subscription: ValidationCode handshake (programmatic) and ValidationURL handshake (manual).
If you control the source code for your endpoint, this method is recommended.
Incorrect Answers:
ValidationURL handshake (manual): In certain cases, you can't access the source code of the endpoint to implement the ValidationCode handshake. For example, if you use a third-party service (like Zapier or IFTTT), you can't programmatically respond with the validation code.
References:
https://docs.microsoft.com/en-us/azure/event-grid/security-authentication
A company sells products worldwide and provides customer service in many languages. The company has a customer service email address for customer requests.
The language of the email is written in needs to be recognized and routed to the appropriate local language department.
You need to use the appropriate cognitive service to detect the language of the email.
How should you initiate language detection?
Answer : B
Explanation:
The DetectLanguageAsync(String) method detects the language of a text.
Incorrect Answers:
A: the Spark natural language processing functionality on Azure HDInsight Doesn't support language detection.
C: The RecognizeAsync method of the SpeechRecognizer object is used for speech recognition.
D: The request URL to https://api.cognitive.microsoft.com/bing/v7.0/search is used for customized searches.
References:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.toolkit.services.microsofttranslator.translatorservice.detectlanguageasync?view=win-comm-toolkit-dotnet- stable
Case Study -
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other question on this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section.
To start the case study -
To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an
All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.
Background -
Best 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.
Requirements -
You 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 sigh-in by displaying a graphical interface that contains action buttons.
Answer : A
Explanation:
Scenario: Enable users to place an order for delivery or pickup by using their voice.
You must develop a chatbot 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 Bot Framework REST APIs enable you to build bots that exchange messages with channels configured in the Bot Framework Portal, store and retrieve state data, and connect your own client applications to your bots. All Bot Framework services use industry-standard REST and JSON over HTTPS.
The Speech Service API is used to recognize intents.
References:
https://docs.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-concepts?view=azure-bot-service-4.0 https://docs.microsoft.com/en-us/azure/cognitive-services/speech-service/how-to-recognize-intents-from-speech-cpp
Case Study -
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other question on this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section.
To start the case study -
To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an
All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.
Background -
Best 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.
Requirements -
You 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 sigh-in by displaying a graphical interface that contains action buttons.
Answer : B
Explanation:
Scenario: The chatbot"™s greeting does not show the user"™s name. You need to debug the chatbot locally.
Debug your bot using an integrated development environment (IDE) such as Visual Studio or Visual Studio Code and the Bot Framework Emulator. You can use these methods to debug any bot locally.
References:
https://docs.microsoft.com/en-us/azure/bot-service/bot-service-debug-bot?view=azure-bot-service-4.0
Case Study -
This is a case study. Case studies are not timed separately. You can use as much exam time as you would like to complete each case. However, there may be additional case studies and sections on this exam. You must manage your time to ensure that you are able to complete all questions included on this exam in the time provided.
To answer the questions included in a case study, you will need to reference information that is provided in the case study. Case studies might contain exhibits and other resources that provide more information about the scenario that is described in the case study. Each question is independent of the other question on this case study.
At the end of this case study, a review screen will appear. This screen allows you to review your answers and to make changes before you move to the next sections of the exam. After you begin a new section, you cannot return to this section.
To start the case study -
To display the first question on this case study, click the Next button. Use the buttons in the left pane to explore the content of the case study before you answer the questions. Clicking these buttons displays information such as business requirements, existing environment, and problem statements. If the case study has an
All Information tab, note that the information displayed is identical to the information displayed on the subsequent tabs. When you are ready to answer a question, click the Question button to return to the question.
Background -
Best 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.
Requirements -
You 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 sigh-in by displaying a graphical interface that contains action buttons.
Answer : AD
Explanation:
Scenario: The chatbot greeting interface must match the formatting of the following example:
DRAG DROP -
You develop an IoT solution by using Node.js. The solution is ready to deploy to the production environment.
You must implement the device twin capabilities of Azure IoT Hub. You must register a sensor named Sensor00. The IoT Hub name is Hub01.
You need to register the endpoint with ContosoHub01 so that you can configure them from your solution.
Which four commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
Select and Place:
Answer :
Explanation:
Step 1: az extension add --name azure-cli-iot-ext
Run the following command in the command-line environment where you are using the Azure CLI to install the IoT extension: az extension add --name azure-cli-iot-ext
Step 2: az iot hub device-identity create
--hub-name {Hub01}
--device-id Sensor00
Create a new device identity called myDeviceId and retrieve the device connection string with these commands: az iot hub device-identity create --device-id myDeviceId --hub-name {Your IoT Hub name} az iot hub device-identity show-connection-string --device-id myDeviceId --hub-name {Your IoT Hub name} -o table
Step 3: az iot hub device-identity show-connection-string
--hub-name {Hub01}
--device-id Sensor00
--output table
Step 4:
Create the service app -
In this section, you create a Node.js console app that adds location metadata to the device twin. npm install azure-iothub --save
References:
https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-node-node-twin-getstarted
You are developing a speech-enabled home automation control bot.
The bot interprets some spoken words incorrectly.
You need to improve the spoken word recognition for the bot.
What should you implement?
Answer : C
Explanation:
Speech priming improves the recognition of spoken words and phrases that are commonly used in your bot. For speech-enabled bots that use the Web Chat and
Cortana channels, speech priming uses examples specified in Language Understanding (LUIS) apps to improve speech recognition accuracy for important words.
References:
https://docs.microsoft.com/en-us/azure/bot-service/bot-service-manage-speech-priming?view=azure-bot-service-4.0
HOTSPOT -
You are creating a bot for a company by using QnA Maker.
You need to ensure that the company can update the bot without third-party assistance.
What should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:
Answer :
DRAG DROP -
You are developing an IoT solution. The solution requires bidirectional communication between a .NET application and Azure IoT Hub.
You need to obtain connection information for a single test device.
Which three commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
NOTE: Each correct selection is worth one point.
Select and Place:
Answer :
Explanation:
Run the following command in the command-line environment where you are using the Azure CLI to install the IoT extension:
Step 1: az extension add -
--name <iot-extension-name>
Run the following command in the command-line environment where you are using the Azure CLI to install the IoT extension: az extension add --name azure-cli-iot-ext
Step 2: az iot hub device-identity create
--hub-name <iot-hub-name>
--device-id <device-id>
Create a new device in the IoT Hub "DemoHub"
Command: az iot hub device-identity create --hub-name DemoHub --device-id testDevice
Step 3: az iot hub device-identity show-connection-string
--hub-name { iot-hub-name }
--device-id <device-id>
References:
https://github.com/MicrosoftDocs/azure-docs/blob/master/includes/iot-hub-get-started-create-device-identity.md
HOTSPOT -
You are developing an IoT solution.
The solution requires bidirectional communication between a client .NET application and Azure IoT hub. A .NET back-end application will connect to the IoT Hub to process information.
You need to collect the values required for the back-end application to connect with the newly created IoT Hub.
How should you complete the commands? To answer, select the appropriate options in the answer area.
Hot Area:
Answer :
Explanation:
Box 1: show -
Event Hub-compatible endpoint -
az iot hub show --query properties.eventHubEndpoints.events.endpoint --name {your IoT Hub name}
Box 2: show -
Event Hub-compatible name -
az iot hub show --query properties.eventHubEndpoints.events.path --name {your IoT Hub name}
Box 3: show -
az iot hub policy show --name iothubowner --query primaryKey --hub-name {your IoT Hub name}
Box 4: primaryKey -
References:
https://github.com/Azure-Samples/azure-iot-samples-csharp/blob/master/iot-hub/Quickstarts/read-d2c-messages/ReadDeviceToCloudMessages.cs
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?
Answer : A
Explanation:
Azure IoT auto-provisioning can be broken into three phases:
- Service configuration - a one-time configuration of the Azure IoT Hub and IoT Hub Device Provisioning Service instances, establishing them and creating linkage between them.
- Device enrollment - the process of making the Device Provisioning Service instance aware of the devices that will attempt to register in the future.Note: The
Device Provisioning Service is a helper service that enables just-in-time provisioning of devices to an IoT hub, without requiring human intervention. After successful provisioning, devices connect directly with their designated IoT Hub. This process is referred to as auto-provisioning, and provides an out-of-the-box registration and initial configuration experience for devices.
- Device registration and configuration - initiated upon boot up by registration software, which is built using a Device Provisioning Service client SDK appropriate for the device and attestation mechanism. The software establishes a connection to the provisioning service for authentication of the device, and subsequent registration in the IoT Hub. Upon successful registration, the device is provided with its IoT Hub unique device ID and connection information, allowing it to pull its initial configuration and begin the telemetry process. In production environments, this phase can occur weeks or months after the previous two phases.
References:
https://docs.microsoft.com/en-us/azure/iot-dps/concepts-auto-provisioning
You are creating an IoT solution using Azure Time Series Insights.
You configure the environment to ensure that all data for the current year is available.
What should you do?
Answer : D
Explanation:
The data is retained in Time Series Insights based on the selected retention days or maximum limits.
Retention is configurable in the Azure portal. The longest allowable retention period is a rolling year of 12 months + 1 month, which is defined as 400 days.
References:
https://azure.microsoft.com/en-us/pricing/details/time-series-insights/