AZ-204 Developing Solutions for Microsoft Azure exams demo
QUESTION 1
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. Set Always On to true.
B. Ensure that the Azure Function is using an App Service plan.
C. Set Always On to false.
D. Ensure that the Azure Function is set to use a consumption plan.
Correct Answer: AB
Section: (none)
Explanation
Explanation/Reference:
Explanation:
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.
Reference:
https://github.com/Azure/Azure-Functions/wiki/Enable-Always-On-when-running-on-dedicated-App-Service-
Plan
.
.
.
QUESTION 3
You are developing a web app that is protected by Azure Web Application Firewall (WAF). All traffic to the web
app is routed through an Azure Application Gateway instance that is used by multiple web apps. The web app
address is contoso.azurewebsites.net.
All traffic must be secured with SSL. The Azure Application Gateway instance is used by multiple web apps.
You need to configure the Azure Application Gateway for the web app.
Which two actions should you perform? Each correct answer presents part of the solution.
96CE4376707A97CE80D4B1916F054522
NOTE: Each correct selection is worth one point.
A. In the Azure Application Gateway’s HTTP setting, enable the Use for App service setting.
B. Convert the web app to run in an Azure App service environment (ASE).
C. Add an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway.
D. In the Azure Application Gateway’s HTTP setting, set the value of the Override backend path option to
contoso22.azurewebsites.net.
Correct Answer: AD
Section: (none)
Explanation
Explanation/Reference:
Explanation:
D: The ability to specify a host override is defined in the HTTP settings and can be applied to any back-end pool
during rule creation.
The ability to derive the host name from the IP or FQDN of the back-end pool members. HTTP settings also
provide an option to dynamically pick the host name from a back-end pool member's FQDN if configured with
the option to derive host name from an individual back-end pool member.
A (not C): SSL termination and end to end SSL with multi-tenant services.
In case of end to end SSL, trusted Azure services such as Azure App service web apps do not require
whitelisting the backends in the application gateway. Therefore, there is no need to add any authentication
certificates.
.
.
.
.
QUESTION 10
Note: This question is part of a series of questions that present the same scenario. Each question in
the series contains a unique solution that might meet the stated goals. Some question sets might have
more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these
questions will not appear in the review screen.
You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named
Development. You create additional deployment slots named Testing and Production. You enable auto swap
on the Production deployment slot.
You need to ensure that scripts run and resources are available before a swap operation occurs.
Solution: Disable auto swap. Update the app with a method named statuscheck to run the scripts. Re-enable
auto swap and deploy the app to the Production slot.
Does the solution meet the goal?
A. No
B. Yes
Correct Answer: B
Section: (none)
Explanation
Explanation/Reference:
Explanation:
Instead update the web.config file to include the applicationInitialization configuration element. Specify custom
initialization actions to run the scripts.
Note: Some apps might require custom warm-up actions before the swap. The applicationInitialization
configuration element in web.config lets you specify custom initialization actions. The swap operation waits for
this custom warm-up to finish before swapping with the target slot. Here's a sample web.config fragment.
<system.webServer>
<applicationInitialization>
<add initializationPage="/" hostName="[app hostname]" />
<add initializationPage="/Home/About" hostName="[app hostname]" />
</applicationInitialization>
</system.webServer>
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps
96CE4376707A97CE80D4B1916F054522
QUESTION 11
Note: This question is part of a series of questions that present the same scenario. Each question in
the series contains a unique solution that might meet the stated goals. Some question sets might have
more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these
questions will not appear in the review screen.
You develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web
service which then stores the photos in Azure Storage Blob storage. The storage account type is Generalpurpose
V2.
When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the
image. The process to produce a mobile-friendly version of the image must start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Convert the Azure Storage account to a BlockBlobStorage storage account.
Does the solution meet the goal?
A. Yes
B. No
Correct Answer: B
Section: (none)
Explanation
Explanation/Reference:
Explanation:
Not necessary to convert the account, instead move photo processing to an Azure Function triggered from the
blob upload..
Azure Storage events allow applications to react to events. Common Blob storage event scenarios include
image or video processing, search indexing, or any file-oriented workflow.
Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event
integration. Storage (general purpose v1) does not support integration with Event Grid.
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview
QUESTION 12
HOTSPOT
.
.
.
. BUY full version for more questions
.
.
Leave a comment