AZ 204 (3)
You are developing an ASP.NET Core time sheet application that runs as an Azure Web App. Users of the application enter their time sheet information on the first day of every month.The application uses a third-party web service to validate data.The application encounters periodic server errors due to errors that result from calling a third-party web server. Each request to the third-party server has the same chance of failure.You need to configure an Azure Monitor alert to detect server errors unrelated to the third-party service. You must minimize false-positive alerts.How should you complete the Azure Resource Manager template?
"type": "Microsoft.Insights/metricAlerts", "properties": { "criteria": { "odata.type": "..." "allOf": [ { "criterionType": "DynamicThresholdCriterion", "metricName": "Http5xx", "alertSensitivity": "Low" }]}}
You are developing an application that uses Azure Storage to store customer data. The data must only be decrypted by the customer and the customer must be provided a script to rotate keys. You need to provide a script to rotate keys to the customer. How should you complete the command? To answer, select the appropriate options in the answer area.
$h = $(az keyvault show --hsm-name ... --query "properties.hsmUri" $x = az keyvault key list-versions --name " " --vault-name " " --query "[0].kid" az storage account update --name ... \ --resource-group ... \ --encryption-key-name ... \ --encryption-key-version $x \ --encryption0key-source Microsoft.Keyvault --encryption-key-vault $h
You develop an image upload service that is exposed using Azure API Management. Images are analyzed after upload for automatic tagging. Images over 500 KB are processed by a different backend that offers a lower tier of service that costs less money. The lower tier of service is denoted by a header named x-large-request. Images over 500 KB must never be processed by backends for smaller images and must always be charged the lower price. You need to implement API Management policies to ensure that images are processed correctly. How should you complete the API Management inbound policy? To answer, select the appropriate options in the answer area.
<inbound> <base/> <set-variable name="imageSize" value ="@(context.Request.Headers["Content-Lenght="][0])"/> <choose> <when condition="@(int.Parse(context.Variables.GetValueOrDefault<string>("imageSize"))<512000)"> <set-headername="x-large-request"exists-action="delete"> <value>true</value> </set-header> </when> <otherwise> <set-backend_service base-url ="{{large-image-host}}"/> </otherwise> <.choose> </inbound>
You are developing a REST web service. Customers will access the service by using an Azure API Management instance.The web service does not correctly handle conflicts. Instead of returning an HTTP status code of 409, the service returns a status code of 500. The body of the status message contains only the word conflict. You need to ensure that conflicts produce the correct response. How should you complete the policy? 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.
<on-error> <base /> <choose> <when condition = " @ context.Response.StatusCode == 500 && context .LastError.Message.Contains ( "conflict = " )) " > <return-response> <set-status> </return-response> </when> <otherwise /> </choose> <on-error>
A web service provides customer summary information for e-commerce partners. The web service is implemented as an Azure Function app with an HTTP trigger. Access to the API is provided by an Azure API Management instance. The API Management instance is configured in consumption plan mode. All API calls are authenticated by using OAuth. API calls must be cached. Customers must not be able to view cached data for other customers. You need to configure API Management policies for caching. How should you complete the policy statement?
<policies> <inbound> <base /> <cache-lookup caching-type="internal" downstream-caching-type = "Private"> <vary-by-header> Authorization </vary-by-header> </cache-lookup> </policies>
You develop and deploy several APIs to Azure API Management. You create the following policy fragment named APICounts: <fragment> <emit-metric value="1" namespace="custom-metrics". <dimension name="User ID" /> <dimension name="Operation ID" /> <dimension name="API ID" /. <dimension name="Client IP" value="@(context.Request.IpAddress)" /> </emit-metric> </fragment> The policy fragment must be reused across various scopes and APIs. The policy fragment must be applied to all APIs and run when a calling system invokes any API.You need to implement the policy fragment.
<policies> <inbound> <include-fragment fragment-id ="APICounts" /> <base /> </inbound> ... </policies>
You are developing an Azure App Service web app. The web app must securely store session information in Azure Redis Cache. You need to connect the web app to Azure Redis Cache. Which three Azure Redis Cache properties should you use? Each correct answer presents part of the solution.
Access key SSL port Host name
You are developing an Azure-based web application. The application goes offline periodically to perform offline data processing. While the application is offline, numerous Azure Monitor alerts fire which result in the on-call developer being paged. The application must always log when the application is offline for any reason. You need to ensure that the on-call developer is not paged during offline processing. What should you do?
Add Azure Monitor alert processing rules to suppress notifications.
An organization hosts web apps in Azure. The organization uses Azure Monitor. You discover that configuration changes were made to some of the web apps. You need to identify the configuration changes. Which Azure Monitor log should you review?
AppServiceEnvironmentPlatformlogs
You are creating a hazard notification system that has a single signaling server which triggers audio and visual alarms to start and stop. You implement Azure Service Bus to publish alarms. Each alarm controller uses Azure Service Bus to receive alarm signals as part of a transaction. Alarm events must be recorded for audit purposes. Each transaction record must include information about the alarm type that was activated. You need to implement a reply trail auditing solution. Which two actions should you perform? Each correct answer presents part of the solution.
Assign the value of the hazard message SessionID property to the ReplyToSessionId property. Assign the value of the hazard message MessageId property to the CorrelationId property.
You deploy an ASP.NET web app to Azure App Service.You must monitor the web app by using Application Insights. You need to configure Application Insights to meet the requirements. Which feature should you use? To answer, select the appropriate options in the answer area.
Automatically warn you of potential performance problems and failure anomalies in the web app. - Smart Detection Automatically collect the state of the source code and variables when an exception is thrown in the web app. - Snapshot Debugger Capture performance traces of the web app without negative affecting users of the web app. - Profiler
You develop and deploy an Azure App Service web app. The app is deployed to multiple regions and uses Azure Traffic Manager. Application Insights is enabled for the app. You need to analyze app uptime for each month. Which two solutions will achieve the goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.
Azure Monitor logs Azure Monitor metrics
You are developing an e-commerce solution that uses a microservice architecture.You need to design a communication backplane for communicating transactional messages between various parts of the solution. Messages must be communicated in first-in-first-out (FIFO) order. What should you use?
Azure Service Bus
You are developing an Azure messaging solution.You need to ensure that the solution meets the following requirements: ✑ Provide transactional support. ✑ Provide duplicate detection. ✑ Store the messages for an unlimited period of time. Which two technologies will meet the requirements? Each correct answer presents a complete solution.
Azure Service Bus Topic Azure Service Bus Queue
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 questions in 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 section 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 in 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, exis
Backup and Restore - Azure Backup Performance - Accelerated Networking
You are developing an Azure App Service hosted ASP.NET Core web app to deliver video-on-demand streaming media. You enable an Azure Content Delivery Network (CDN) Standard for the web endpoint. Customer videos are downloaded from the web app by using the following example URL: http://www.contoso.com/ content.mp4?quality=1. All media content must expire from the cache after one hour. Customer videos with varying quality must be delivered to the closest regional point of presence (POP) node. You need to configure Azure CDN caching rules. Which options should you use? To answer, select the appropriate options in the answer area.
Caching behavior - Override Cache expiration duration - 1h Query string caching behavior - Cache every unique URL
You are developing a .NET application that communicates with Azure Storage.A message must be stored when the application initializes.You need to implement the message.How should you complete the code segment? To answer, select the appropriate options in the answer area.
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting ("StorageConnectionString")); CloudQueueClient pVar1 = storageAccount.CreateCloudQueueClient CloudQueue pVar2 = pVar1.GetQueueReference ("contoso-storage"); try { await pVar2.CreateIfNotEcistsAsync (); } catch (StorageException x) { throw; } CloudQueueMessage cloudQueueMessage = new CloudQueueMessage ("App Launch: <iUserID"); await pVar2.AddMessageAsync (cloudQueueMessage);
You are building a web application that performs image analysis on user photos and returns metadata containing objects identified. The image analysis is very costly in terms of time and compute resources. You are planning to use Azure Redis Cache so duplicate uploads do not need to be reprocessed. In case of an Azure data center outage, metadata loss must be kept to a minimum. You need to configure the Azure Redis cache instance. Which two actions should you perform? Each correct answer presents part of the solution.
Configure Azure Redis with AOF persistence. Configure second storage account for persistence.
You are developing several Azure API Management (APIM) hosted APIs. You must transform the APIs to hide private backend information and obscure the technology stack used to implement the backend processing. You need to protect all APIs.
Configure and apply a new outbound policy scoped to the operation.
You are developing several Azure API Management (APIM) hosted APIs. You must make several minor and non-breaking changes to one of the APIs. The API changes include the following requirements: • Must not disrupt callers of the API. • Enable roll back if you find issues. • Documented to enable developers to understand what is new. • Tested before publishing. You need to update the API.What should you do?
Configure and apply query string-based versioning.
You develop a web app that uses the tier D1 app service plan by using the Web Apps feature of Microsoft Azure App Service. Spikes in traffic have caused increases in page load times. You need to ensure that the web app automatically scales when CPU load is about 85 percent and minimize costs. 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.
Configure the web app to the Standard App Service tier. Enable autoscaling on the web app. Add a Scale rule. Configure a Scale condition.
You develop an application. You plan to host the application on a set of virtual machines (VMs) in Azure. You need to configure Azure Monitor to collect logs from the application. 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.
Create a Log Analytics workspace. Add a VMInsights solution. Install agents on the VM and VM scale set to be monitored. Create an Application Insights resource.
You develop and deploy an Azure Logic App that calls an Azure Function app. The Azure Function App includes an OpenAPI (Swagger) definition and uses an Azure Blob storage account. All resources are secured by using Azure Active Directory (Azure AD). The Logic App must use Azure Monitor logs to record and store information about runtime data and events. The logs must be stored in the Azure Blob storage account. You need to set up Azure Monitor logs and collect diagnostics data for the Azure Logic App. Which three 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.
Create a Log Analytics workspace. Install the Logic Apps Management solution. Add a diagnostic setting to the Azure Logi App.
A company has multiple warehouses. Each warehouse contains IoT temperature devices which deliver temperature data to an Azure Service Bus queue. You need to send email alerts to facility supervisors immediately if the temperature at a warehouse goes above or below specified threshold temperatures. Which five 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.
Create a blank Logic app. Add a logic app action that fires when one or more messages arrive in the queue. Add an action that reads loT temperature data from the Service Bus queue. Add a condition that compares the temperature against the upper and lower thresholds. Add an action that sends an email to specified personnel if the temperature is outside of those thresholds.
You develop and deploy an Azure App Service web app. The web app accesses data in an Azure SQL database.You must update the web app to store frequently used data in a new Azure Cache for Redis Premium instance. You need to implement the Azure Cache for Redis features. Which feature should you implement? To answer, drag the appropriate feature to the correct requirements. Each feature 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.
Create a data structure for storing collections of related items - SET Create a data structure for the most recently accessed cache items - LIST Send messages through a high-performance publisher/subscriber mechanism - CHANNEL
You develop and add several functions to an Azure Function app that uses the latest runtime host. The functions contain several REST API endpoints secured by using SSL. The Azure Function app runs in a Consumption plan. You must send an alert when any of the function endpoints are unavailable or responding too slowly. You need to monitor the availability and responsiveness of the functions. What should you do?
Create a timer triggered function that calls TrackAvailability() and send the results to Application Insights.
An organization has web apps hosted in Azure. The organization wants to track events and telemetry data in the web apps by using Application Insights. You need to configure the web apps for Application Insights. Which three 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.
Create an Application Insights resource Copy the connection string Configure the Application Insights SDK in the app
You are developing several Azure API Management (APIM) hosted APIs. The APIs have the following requirements: • Require a subscription key to access all APIs. • Include terms of use that subscribers must accept to use the APIs. • Administrators must review and accept or reject subscription attempts. • Limit the count of multiple simultaneous subscriptions. You need to implement the APIs. What should you do?
Create and publish a product.
You develop an ASP.NET Core app that uses Azure App Configuration. You also create an App Configuration containing 100 settings. The app must meet the following requirements: • Ensure the consistency of all configuration data when changes to individual settings occur. • Handle configuration data changes dynamically without causing the application to restart. • Reduce the overall number of requests made to App Configuration APIs. You must implement dynamic configuration updates in the app. What are two ways to achieve this goal? Each correct answer presents part of the solution.
Create and register a sentinel key in the App Configuration store. Set the refreshAll parameter of the Register method to true. Increase the App Configuration cache expiration from the default value.
You develop software solutions for a mobile delivery service. You are developing a mobile app that users can use to order from a restaurant in their area. The app uses the following workflow: 1. A driver selects the restaurants for which they will deliver orders. 2. Orders are sent to all available drivers in an area. 3. Only orders for the selected restaurants will appear for the driver. 4. The first driver to accept an order removes it from the list of available orders. You need to implement an Azure Service Bus solution.Which three 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. Select and Place:
Create s single Service Bus Namespace. Create a Service Bus topic for each restaurant for which a driver can receive messages. Create a Service Bus subscription for each restaurant for which a driver can receive orders.
You manage several existing Logic Apps.You need to change definitions, add new logic, and optimize these apps on a regular basis.What should you use? To answer, drag the appropriate tools to the correct functionalities. Each tool 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.
Edit B2B workflows - Enterprise Integration Pack Edit definition in JSON - Code View Editor Visually add functionality - Logic Apps Designer
You develop and deploy a web app to Azure App Service. The Azure App Service uses a Basic plan in a single region. Users report that the web app is responding slow. You must capture the complete call stack to help identify performance issues in the code. Call stack data must be correlated across app instances. You must minimize cost and impact to users on the web app. You need to capture the telemetry. Which three actions should you perform? Each correct answer presents part of the solution.
Enable Application Insights site extensions. Enable Profiler. Enable Snapshot debugger.
You are developing several Azure API Management (APIM) hosted APIs. You must inspect request processing of the APIs in APIM. Requests to APIM by using a REST client must also be included. The request inspection must include the following information: • requests APIM sent to the API backend and the response it received • policies applied to the response before sending back to the caller • errors that occurred during the processing of the request and the policies applied to the errors • original request APIM received from the caller and the policies applied to the request You need to inspect the APIs. Which three actions should you do? Each correct answer presents part of the solution.
Enable the Allow tracing setting for the subscription used to inspect the API. Add the Ocp-Apim-Trace header value to the API call whit a value set to true. Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API.
You are developing a solution by using the Azure Event Hubs SDK. You create a standard Azure Event Hub with 16 partitions. You implement eight event processor clients. You must balance the load dynamically when an event processor client fails. When an event processor client fails, another event processor must continue processing from the exact point at which the failure occurred. All events must be aggregate and upload to an Azure Blob storage account. You need to implement event processing recovery for the solution. Which SDK features should you use? To answer, select the appropriate options in the answer area.
Ensure that event process client mark the position within an event sequence. - Offset Mark the event processor client position within a partition even sequence. - Checkpoint
You are developing an Azure solution to collect inventory data from thousands of stores located around the world. Each store location will send the inventory data hourly to an Azure Blob storage account for processing.The solution must meet the following requirements: ✑ Begin processing when data is saved to Azure Blob storage. ✑ Filter data based on store location information. ✑ Trigger an Azure Logic App to process the data for output to Azure Cosmos DB. ✑ Enable high availability and geographic distribution. ✑ Allow 24-hours for retries. ✑ Implement an exponential back off data processing. You need to configure the solution. What should you implement? To answer, select the appropriate options in the answer area.
Event Source - Azure Event Grid Event Receiver - Azure Logic App Event Handler - Azure Service Bus
You develop a solution that uses Azure Virtual Machines (VMs). The VMs contain code that must access resources in an Azure resource group. You grant the VM access to the resource group in Resource Manager. You need to obtain an access token that uses the VM's system-assigned managed identity. Which two actions should you perform? Each correct answer presents part of the solution.
From the code on the VM, call Azure Resource Manager using an access token. Use PowerShell on the VM to make a request to the local managed identity for Azure resources endpoint.
You develop a gateway solution for a public facing news API. The news API back end is implemented as a RESTful service and uses an OpenAPI specification. You need to ensure that you can access the news API by using an Azure API Management service instance. Which Azure PowerShell command should you run?
Import-AzureRmApiManagementApi -Context $ApiMgmtContext -SpecificationFormat "Swagger" -SpecificationPath $SwaggerPath -Path $Path
You are developing an Azure function that connects to an Azure SQL Database instance. The function is triggered by an Azure Storage queue. You receive reports of numerous System.InvalidOperationExceptions with the following message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. You need to prevent the exception. What should you do?
In the host.json file, decrease the value of the batchSize option
You develop and deploy a web app to Azure App Service in a production environment. You scale out the web app to four instances and configure a staging slot to support changes. You must monitor the web app in the environment to include the following requirements: ✑ Increase web app availability by re-routing requests away from instances with error status codes and automatically replace instances if they remain in an error state after one hour. ✑ Send web server logs, application logs, standard output, and standard error messaging to an Azure Storage blob account. You need to configure Azure App Service. Which values should you use? To answer, drag the appropriate configuration value to the correct requirements. Each configuration value 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.
Increase availability - Health check Send logs - Diagnostic setting
You develop and deploy an Azure App Service web app to a production environment. You enable the Always On setting and the Application Insights site extensions. You deploy a code update and receive multiple failed requests and exceptions in the web app. You need to validate the performance and failure counts of the web app in near real time. Which Application Insights tool should you use?
Live Metrics Stream
A company is developing a solution that allows smart refrigerators to send temperature information to a central location. The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location. You need to complete the configuration. Which Azure CLI or PowerShell command should you run?
New-AzureRmServiceBusQueue -ResourceGroupName fridge-rg -NamespaceName fridge-ns -Name fridge-q -EnablePartitioning $False
You are developing an Azure Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently. You have the following requirements: ✑ Queue size must not grow larger than 80 gigabytes (GB). ✑ Use first-in-first-out (FIFO) ordering of messages. ✑ Minimize Azure costs. You need to implement the messaging solution. Solution: Use the .Net API to add a message to an Azure Service Bus Queue from the mobile application. Create an Azure Windows VM that is triggered from Azure Service Bus Queue. Does the solution meet the goal?
No
You are developing an Azure Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.You have the following requirements: ✑ Queue size must not grow larger than 80 gigabytes (GB). ✑ Use first-in-first-out (FIFO) ordering of messages. ✑ Minimize Azure costs. You need to implement the messaging solution.Solution: Use the .Net API to add a message to an Azure Storage Queue from the mobile application. Create an Azure Function App that uses an Azure StorageQueue trigger. Does the solution meet the goal?
No
You are developing an Azure Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently.You have the following requirements: ✑ Queue size must not grow larger than 80 gigabytes (GB). ✑ Use first-in-first-out (FIFO) ordering of messages. ✑ Minimize Azure costs. You need to implement the messaging solution.Solution: Use the .Net API to add a message to an Azure Storage Queue from the mobile application. Create an Azure VM that is triggered from Azure Storage Queue events. Does the solution meet the goal?
No
You are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data. Solution: Provision an Azure Service Bus. Configure a topic to receive the device data by using a correlation filter. Does the solution meet the goal?
No
You are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data.You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future.You need to implement a solution to receive the device data. Solution: Provision an Azure Notification Hub. Register all devices with the hub.Does the solution meet the goal?
No
You are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data.You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future.You need to implement a solution to receive the device data.Solution: Provision an Azure Event Grid. Configure event filtering to evaluate the device identifier.Does the solution meet the goal?
No
You are developing and deploying several ASP.NET web applications to Azure App Service. You plan to save session state information and HTML output. You must use a storage mechanism with the following requirements: ✑ Share session state across all ASP.NET web applications. ✑ Support controlled, concurrent access to the same session state data for multiple readers and a single writer. ✑ Save full HTTP responses for concurrent requests. You need to store the information. Proposed Solution: Enable Application Request Routing (ARR). Does the solution meet the goal?
No
You are developing and deploying several ASP.NET web applications to Azure App Service. You plan to save session state information and HTML output. You must use a storage mechanism with the following requirements: ✑ Share session state across all ASP.NET web applications. ✑ Support controlled, concurrent access to the same session state data for multiple readers and a single writer. ✑ Save full HTTP responses for concurrent requests. You need to store the information.Proposed Solution: Deploy and configure an Azure Database for PostgreSQL. Update the web applications. Does the solution meet the goal?
No
You are developing a new API to be hosted by Azure API Management (APIM). The backend service that implements the API has not been completed. You are creating a test API and operation. You must enable developers to continue with the implementation and testing of the APIM instance integrations while you complete the backend API development. You need to configure a test API response. How should you complete the configuration? To answer, select the appropriate options in the answer area.
Policy - mock-response Policy section - backend HTTP response code - 200
You plan to implement an Azure Functions app. The Azure Functions app has the following requirements: • Must be triggered by a message placed in an Azure Storage queue. • Must use the queue name set by an app setting named input_queue. • Must create an Azure Blob Storage named the same as the content of the message. You need to identify how to reference the queue and blob name in the function.json file of the Azure Functions app. How should you reference the names? To answer, select the appropriate values in the answer area.
Queue name - {input_queue} Blob name - {queueTrigger}
You are developing a web application that uses the Microsoft identity platform to authenticate users and resources. The web application calls several REST APIs. The APIs require an access token from the Microsoft identity platform. You need to request a token. Which three properties should you use? Each correct answer presents part of the solution.
Redirect URI/URL Application ID Application secret
You develop and deploy a Java application to Azure. The application has been instrumented by using the Application Insights SDK. The telemetry data must be enriched and processed before it is sent to the Application Insights service. You need to modify the telemetry data. Which Application Insights SDK features should you use? To answer, drag the appropriate features to the correct requirements. Each feature 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.
Reduce the volume of telemetry without affecting statistics. - Sampling Enrich telemetry with additional properties or override an existing one. - Telemetry initializer Completely replace or discard a telemetry item. - Telemetry processor
You are developing an application to retrieve user profile information. The application will use the Microsoft Graph SDK.The app must retrieve user profile information by using a Microsoft Graph API call.You need to call the Microsoft Graph API from the application.In which order should you perform the actions? To answer, move all actions from the list of actions to the answer area and arrange them in the correct order.Select and Place:
Register the application with the Microsoft identity platform. Build a client by using the client app ID. Create an authentication provider. Create a nw instance of the GraphServiceClient. Invoke the request to the Microsoft Graph API.
You are creating an app that will use CosmosDB for data storage. The app will process batches of relational data.You need to select an API for the app.Which API should you use?
SQL API
You are developing a solution that will use Azure messaging services.You need to ensure that the solution uses a publish-subscribe model and eliminates the need for constant polling. What are two possible ways to achieve the goal? Each correct answer presents a complete solution.
Service Bus Event Grid
You are developing applications for a company. You plan to host the applications on Azure App Services. The company has the following requirements: ✑ Every five minutes verify that the websites are responsive. ✑ Verify that the websites respond within a specified time threshold. Dependent requests such as images and JavaScript files must load properly. ✑ Generate alerts if a website is experiencing issues. ✑ If a website fails to load, the system must attempt to reload the site three more times.You need to implement this process with the least amount of effort. What should you do?
Set up a URL ping test to query the home page.
A software as a service (SaaS) company provides document management services. The company has a service that consists of several Azure web apps. All Azure web apps run in an Azure App Service Plan named PrimaryASP. You are developing a new web service by using a web app named ExcelParser. The web app contains a third-party library for processing Microsoft Excel files. The license for the third-party library stipulates that you can only run a single instance of the library. You need to configure the service. How should you complete the script? To answer, select the appropriate options in the answer area.
Set-AzAppServicePlan ' -ResourceGroupName $rg ' -Name "PrimaryASP" ' PerSiteScaling $true $app = Get-AzWebApp ' -ResourceGroupName $rg ' - Name "ExcelParser" $app.SiteConfig.NumberOfWorkers = 1 Set-AzWebApp $app
You develop an Azure App Service web app and deploy to a production environment. You enable Application Insights for the web app. The web app is throwing multiple exceptions in the environment. You need to examine the state of the source code and variables when the exceptions are thrown. Which Application Insights feature should you configure?
Snapshot Debugger
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 questions in 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 section 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 in 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
Standard Custom testing using the TrackAvailability API method
You are developing an application to store millions of images in Azure blob storage. The application has the following requirements: • Store the Exif (exchangeable image file format) data from the image as blob metadata when the application uploads the image. • Retrieve the Exif data from the image while minimizing bandwidth and processing time. • Utilizes the REST API. You need to use the image Exif data as blob metadata in the application. Which HTTP verbs should you use? To answer, select the appropriate options in the answer area.
Store Exif data - PUT Retrieve Exif data - HEAD
You develop and deploy an Azure App Service web app that connects to Azure Cache for Redis as a content cache. All resources have been deployed to the East US 2 region. The security team requires the following audit information from Azure Cache for Redis: • The number of Redis client connections from an associated IP address. • Redis operations completed on the content cache. • The location (region) in which the Azure Cache for Redis instance was accessed. The audit information must be captured and analyzed by a security team application deployed to the Central US region. You need to log information on all client connections to the cache. Which configuration values should you use? To answer, select the appropriate options in the answer area.
Store log information - Log Analytics workspace Enable client connection logging. - Diagnostic setting
You have an application that provides weather forecasting data to external partners. You use Azure API Management to publish APIs. You must change the behavior of the API to meet the following requirements: ✑ Support alternative input parameters ✑ Remove formatting text from responses ✑ Provide additional context to back-end services Which types of policies should you implement? To answer, drag the policy types to the correct requirements. Each policy type 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.
Support alternative input parameters - Inbound Remove formatting text from responses - Outbound Provide additional context to back-end services. - Inbound
You have an Azure API Management instance named API1 that uses a managed gateway. You plan to implement a policy that will apply at a product scope and will set the header of inbound requests to include information about the region hosting the gateway of API1. The policy definition contains the following content: <policies> <inbound> TARGET1 <set-header name="x-request-context-data" exists-action="override"> <value>@(TARGET2.Deployment.Region)</value> </set-header> </inbound> </policies> You have the following requirements for the policy definition: • Ensure that the header contains the information about the region hosting the gateway of API1. • Ensure the policy applies only after any global level policies are processed first. You need to complete the policy definition. Which values should you choose? To answer, select the appropriate options in the answer area.
TARGET1 - <base/> TARGET2 - context
You develop a gateway solution for a public facing news API.The news API back end is implemented as a RESTful service and hosted in an Azure App Service instance.You need to configure back-end authentication for the API Management service instance.Which target and gateway credential type should you use? To answer, drag the appropriate values to the correct parameters. Each value 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.
Target - Azure Resource Gateway credetials - Client cert
You are developing an ASP.NET Core Web API web service. The web service uses Azure Application Insights for all telemetry and dependency tracking. The web service reads and writes data to a database other than Microsoft SQL Server.You need to ensure that dependency tracking works for calls to the third-party database.Which two dependency telemetry properties should you use? Each correct answer presents part of the solution.
Telemetry.Id Telemetry.Context.Operation.Id
You are working for Contoso, Ltd. You define an API Policy object by using the following XML markup: <set-variable name= "bodySize" value="@ (context.Request.Headers["Content-Length"] [0])"/> <choose> <when condition= "@(int.Parse(context.Variables.GetValueOrDefault<string> ("bodySize"))<512000"> </when> <otherwise> <rewrite-uri template= "/put"/> <set-backend-service base-url= "http://contoso.com/api/9.1/"/> </otherwise? </choose> For each of the following statements, select Yes if the statement is true. Otherwise, select No.
The XML segment belongs in the <inbound> section of the policy. YES If the body size is >256k, an error will occur. NO If the requrst is http://contoso.com/api/9.2/,the policy will retain the higher version. NO
You are developing an application that uses Azure Storage Queues.You have the following code: CloudStorageAccount storageAccount = CloudStorageAccount.Parse (CloudConfigurationManager.GetSettings("StorageConnectionString")); CloudQueueClient queueClient = storageAccounts.CreateCloudQueueClient (); CloudQueue queue = queueClinet.GetQueueReference ("appqueue"); await queue.CreateIfNotExistsAsync (); CloudQueueMessage peekedMessage = await queue.PeekMessageAsync (); if (peekedMessage != null) { Console.WriteLine("The peeked message is: {0}", peekedMessage.AsString); } CloudQueueMessage message = await queue.GetMessageAsync () ; For each of the following statements, select Yes if the statement is true. Otherwise, select No.
The code configures the lock duration for the queue. NO The last message read remains in the queue after the code runs. YES The storage queue remains in the storage account after the code runs. YES
You are using Azure Front Door Service.You are expecting inbound files to be compressed by using Brotli compression. You discover that inbound XML files are not compressed. The files are 9 megabytes (MB) in size. You need to determine the root cause for the issue. To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
The file MIME type is supported by the service? NO Edge nodes must be purged of all cache assets? YES The compression type is supported? YES
You develop several Azure Functions app functions to process JSON documents from a third-party system. The third-party system publishes events to Azure Event Grid to include hundreds of event types, such as billing, inventory, and shipping updates. Events must be sent to a single endpoint for the Azure Functions app to process. The events must be filtered by event type before processing. You must have authorization and authentication control to partition your tenants to receive the event data. You need to configure Azure Event Grid. Which configuration should you use? To answer, select the appropriate values in the answer area.
Third-party system endpoint to send events system topic. Azure Functions app endpoint to handle filtered events event domain.
You are developing a solution that uses several Azure Service Bus queues. You create an Azure Event Grid subscription for the Azure Service Bus namespace. You use Azure Functions as subscribers to process the messages. You need to emit events to Azure Event Grid from the queues. You must use the principal of least privilege and minimize costs. Which Azure Service Bus values should you use? To answer, select the appropriate options in the answer area.
Tier - Premium Access control (IAM) level - Contributor
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 questions in 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 section 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 in 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
Tier - Standard Profile - Akamai Optimization - dynamic site acceleration
You are developing a road tollway tracking application that sends tracking events by using Azure Event Hubs using premium tier.Each road must have a throttling policy uniquely assigned.You need to configure the event hub to allow for per-road throttling.What should you do?
Use a unique application group for each road.
You are building a loyalty program for a major snack producer. When customers buy a snack at any of 100 participating retailers the event is recorded in Azure Event Hub. Each retailer is given a unique identifier that is used as the primary identifier for the loyalty program. Retailers must be able to be added or removed at any time. Retailers must only be able to record sales for themselves. You need to ensure that retailers can record sales. What should you do?
Use publisher policies for retailers.
You are developing several microservices to run on Azure Container Apps. You need to monitor and diagnose the microservices. Which features should you use? To answer, select the appropriate feature in the answer area.
View console logs from a container in near real-time. - Log streaming Debug the microservice from inside the container. - Container console
You develop and deploy an ASP.NET Core application that connects to an Azure Database for MySQL instance. Connections to the database appear to drop intermittently and the application code does not handle the connection failure. You need to handle the transient connection errors in code by implementing retries. What are three possible ways to achieve this goal? Each correct answer presents part of the solution.
Wait five seconds before repeating the connection attempt to the database. Set a maximum number of connection attempts to 10 and report an error on subsequent connections. Increase connection repeat attempts exponentially up to 120 seconds.
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.What should you do? To answer, select the appropriate options in the answer area.
WebHook event delivery - SAS tokens Topic publishing - ValidationCode handshake
You are building an application to track cell towers that are available to phones in near real time. A phone will send information to the application by using the Azure Web PubSub service. The data will be processed by using an Azure Functions app. Traffic will be transmitted by using a content delivery network (CDN). The Azure function must be protected against misconfigured or unauthorized invocations. You need to ensure that the CDN allows for the Azure function protection. Which HTTP header should be on the allowed list?
WebHook-Request-Origin
You develop an ASP.NET Core MVC application. You configure the application to track webpages and custom events. You need to identify trends in application usage. Which Azure Application Insights Usage Analysis features should you use? To answer, drag the appropriate features to the correct requirements. Each feature 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.
Which pages visited by users most often correlate to a product purchase? USERS How does load time of the product display page affect a user's decison to purchase a pruduct? IMPACT Which events most influence a user's decision to continue to use the application? RETENTION Are there places in the application that users often perform repetitive actions? USER FLOWS
You develop new functionality in a web application for a company that provides access to seismic data from around the world. The seismic data is stored in Redis Streams within an Azure Cache for Redis instance. The new functionality includes a real-time display of seismic events as they occur. You need to implement the Azure Cache for Redis command to receive seismic data. How should you complete the command? To answer, select the appropriate options in the answer area.
XREAD BLOCK 0 STREAMS seismicData $
You are developing an Azure Service application that processes queue data when it receives a message from a mobile application. Messages may not be sent to the service consistently. You have the following requirements: ✑ Queue size must not grow larger than 80 gigabytes (GB). ✑ Use first-in-first-out (FIFO) ordering of messages. ✑ Minimize Azure costs. You need to implement the messaging solution.Solution: Use the .Net API to add a message to an Azure Service Bus Queue from the mobile application. Create an Azure Function App that uses an Azure Service Bus Queue trigger.Does the solution meet the goal?
Yes
You are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data. Solution: Provision an Azure Event Hub. Configure the machine identifier as the partition key and enable capture. Does the solution meet the goal?
Yes
You are developing and deploying several ASP.NET web applications to Azure App Service. You plan to save session state information and HTML output. You must use a storage mechanism with the following requirements: ✑ Share session state across all ASP.NET web applications. ✑ Support controlled, concurrent access to the same session state data for multiple readers and a single writer. ✑ Save full HTTP responses for concurrent requests. You need to store the information. Proposed Solution: Deploy and configure Azure Cache for Redis. Update the web applications. Does the solution meet the goal?
Yes
You are developing a web application that uses Azure Cache for Redis. You anticipate that the cache will frequently fill and that you will need to evict keys.You must configure Azure Cache for Redis based on the following predicted usage pattern: A small subset of elements will be accessed much more often than the rest. You need to configure the Azure Cache for Redis to optimize performance for the predicted usage pattern. Which two eviction policies will achieve the goal?
allkeys-lru volatile-lru
A company is developing a solution that allows smart refrigerators to send temperature information to a central location. The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location. You need to complete the configuration. Which Azure CLI or PowerShell command should you run?
az servicebus queue create --resource-group fridge-rg --namespace-name fridge-ns --name fridge-q
You plan to deploy a web app to App Service on Linux. You create an App Service plan. You create and push a custom Docker image that contains the web app to Azure Container Registry.You need to access the console logs generated from inside the container in real-time. How should you complete the Azure CLI command? To answer, select the appropriate options in the answer area.
az webapp log config --name Contosoweb --resource-group ContosoDevRG --docker-container-logging filesystem az webapp log download --name ContosoWeb --resource-group ContosoDevRG
You are debugging an application that is running on Azure Kubernetes cluster named cluster1. The cluster uses Azure Monitor for containers to monitor the cluster.The application has sticky sessions enabled on the ingress controller. Some customers report a large number of errors in the application over the last 24 hours. You need to determine on which virtual machines (VMs) the errors are occurring. How should you complete the Azure Monitor query? To answer, select the appropriate options in the answer area.
let startTimestamp = ago(1d) let ContainerIDs = KubePodInventory | where ClusterName == "Cluster1" | distinct ContainerID ContainerLg | where ContainerID in (ContainerIDs) | where TimeGenerated > startTimestamp |where LogEntrySource == "stderr" | summarize count () by Computer
You are developing several microservices to run on Azure Container Apps for a company. External TCP ingress traffic from the internet has been enabled for the microservices. The company requires that the microservices must scale based on an Azure Event Hub trigger. You need to scale the microservices by using a custom scaling rule. Which two Kubernetes Event-driven Autoscaling (KEDA) trigger fields should you use? Each correct answer presents part of the solution.
metadata type
You develop and deploy an ASP.NET web app to Azure App Service. You use Application Insights telemetry to monitor the app. You must test the app to ensure that the app is available and responsive from various points around the world and at regular intervals. If the app is not responding, you must send an alert to support staff. You need to configure a test for the web app. Which two test types can you use? Each correct answer presents a complete solution.
multi-step web URL ping
You have an Azure API Management (APIM) Standard tier instance named APIM1 that uses a managed gateway. You plan to use APIM1 to publish an API named API1 that uses a backend database that supports only a limited volume of requests per minute. You also need a policy for API1 that will minimize the possibility that the number of requests to the backend database from an individual IP address you specify exceeds the supported limit. You need to identify a policy for API1 that will meet the requirements. Which policy should you use?
rate-limit-by-key
You are building a B2B web application that uses Azure B2B collaboration for authentication. Paying customers authenticate to Azure B2B using federation.The application allows users to sign up for trial accounts using any email address. When a user converts to a paying customer, the data associated with the trial should be kept, but the user must authenticate using federation. You need to update the user in Azure Active Directory (Azure AD) when they convert to a paying customer. Which Graph API parameter is used to change authentication from one-time passcodes to federation?
resetRedemption
You develop a news and blog content app for Windows devices. A notification must arrive on a user's device when there is a new article available for them to view. You need to implement push notifications. How should you complete the code segment? To answer, select the appropriate options in the answer area.
string notificationHubName = "contoso_hub"; string notificationHubConnection = "connection+string"; NotificationHubClient hub = NotificationHubClient.CreateClientFromCnnectionString (notificationHubConnection, notificationHubName); string windowsToastPayload = @"<toast><<visual><binding template=""ToastTest01"">><test id=""1"">" + @"New item to view" + @"</test></binding></visual></toast>"; try { var result = await hub.SendWindowsNativeNotificationAsync (windowsToastPayload); ... } catch (System.Exception ex) {
A company is implementing a publish-subscribe (Pub/Sub) messaging component by using Azure Service Bus. You are developing the first subscription application.In the Azure portal you see that messages are being sent to the subscription for each topic. You create and initialize a subscription client object by supplying the correct details, but the subscription application is still not consuming the messages.You need to ensure that the subscription client processes all messages.Which code segment should you use?
subscriptionClient.RegisterMessageHandler(ProcessMessagesAsync, messageHandlerOptions);
You are a developer for a Software as a Service (SaaS) company. You develop solutions that provide the ability to send notifications by using Azure Notification Hubs.You need to create sample code that customers can use as a reference for how to send raw notifications to Windows Push Notification Services (WNS) devices.The sample code must not use external packages. How should you complete the code segment? 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. Select and Place:
var endpoint = "..."; var payload = "..."; var request = new HttpRequestsMessage (HttpMethod.Post, endpoint); request.Headers.Add("X-WNS-Tyoe", "wns/raw"); requests.Headers.Add("ServiceBusNotification-Format", "windows"); request.Content = new StringContent (payload, Encoding.UTF8, "application/octet-stream"); var client = new HttpClient (); await client.SendAsync(request);
A company is developing a gaming platform. Users can join teams to play online and see leaderboards that include player statistics. The solution includes an entity named Team. You plan to implement an Azure Redis Cache instance to improve the efficiency of data operations for entities that rarely change. You need to invalidate the cache when team data is changed. How should you complete the code? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
void ClearCachedTeams() { IDatabase cache = Connection.GetDatabase(); cache.StringSet("Team",""); ViewBag.msg+="Team data removed from cache."; }
You are developing an online game that includes a feature that allows players to interact with other players on the same team within a certain distance. The calculation to determine the players in range occurs when players move and are cached in an Azure Cache for Redis instance. The system should prioritize players based on how recently they have moved and should not prioritize players who have logged out of the game. You need to select an eviction policy. Which eviction policy should you use?
volatile-Iru