Font size
Worksheetsaz204 prep
Total questions: 30
Worksheet time: 3600secs
A company is developing a Java web app. The web app code is hosted in a GitHub repository located at https://github.com/Contoso/webapp.The web app must be evaluated before it is moved to production. You must deploy the initial code release to a deployment slot named staging.You need to create the web app and deploy the code.How should you complete the commands? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: group
Box 2: appservice plan
Box 3: webapp
Box 4: webapp deployment slot
Box 5: webapp deployment source
Box 1: webapp
Box 2: group
Box 3: app service plan
Box 4: webapp deployment slot
Box 5: webapp deployment source
Box 1: webapp
Box 2: group
Box 3: app service plan
Box 4: webapp deployment slot
Box 5: webapp
Box 1: webapp
Box 2: group
Box 3: app service plan
Box 4: webapp deployment slot
Box 5: app service plan
You have a web service that is used to pay for food deliveries. The web service uses Azure Cosmos DB as the data store.You plan to add a new feature that allows users to set a tip amount. The new feature requires that a property named tip on the document in Cosmos DB must be present and contain a numeric value.There are many existing websites and mobile apps that use the web service that will not be updated to set the tip property for some time.How should you complete the trigger?NOTE: Each correct selection is worth one point
Box1:_.value();
Box2:if(isNan(i)["tip"]||i["tip"]===null){
Box3:r.setValue(i);
Box1:getContext().getRequest();
Box2:if(isNan(i)["tip"]||i["tip"]===null){
Box3:r.setBody(i);
Box1:getContext().getResponse();
Box2:if(isNan(i)["tip"]||i["tip"]===null){
Box3:_upsertDocument(i);
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data.You need to ensure the app does not time out and processes the blob data.Solution: Use the Durable Function async pattern to process the blob data.Does the solution meet the goal?
Yes
No
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data.You need to ensure the app does not time out and processes the blob data.Solution: Pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate HTTP success response.Does the solution meet the goal?
Yes
NO
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data.You need to ensure the app does not time out and processes the blob data.Solution: Configure the app to use an App Service hosting plan and enable the Always On setting.Does the solution meet the goal?
YES
NO
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 AzureStorage Blob storage. The storage account type is General-purpose 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: Move photo processing to an Azure Function triggered from the blob upload.Does the solution meet the goal?
YES
NO
You are developing an application that uses Azure Blob storage.The application must read the transaction logs of all the changes that occur to the blobs and the blob metadata in the storage account for auditing purposes. The changes must be in the order in which they occurred, include only create, update, delete, and copy operations and be retained for compliance reasons.You need to process the transaction logs asynchronously.What should you do?
Process all Azure Blob storage events by using Azure Event Grid with a subscriber Azure Function app.
Enable the change feed on the storage account and process all changes for available events
Process all Azure Storage Analytics logs for successful blob events.
Use the Azure Monitor HTTP Data Collector API and scan the request body for successful blob events.
You plan to create a Docker image that runs an ASP.NET Core application named ContosoApp. You have a setup script named setupScript.ps1 and a series of application files including ContosoApp.dll.You need to create a Dockerfile document that meets the following requirements:✑ Call setupScripts.ps1 when the container is built.✑ Run ContosoApp.dll when the container starts.The Dockerfile document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored.Which five 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.
Box 1: COPY ./ .
Box 2: FROM
Box 3: WORKDIR /apps/ContosoApp -Bxo 4: CMD [..]
Box 5: RUN powershell ./setupScript.ps1
Box 1: WORKDIR /apps/ContosoApp -Bxo
Box 2: FROM
Box 3:CMD [..]
Box 4: COPY ./ .
Box 5: RUN powershell ./setupScript.ps1
Box 1: CMD [..]
Box 2: FROM
Box 3: WORKDIR /apps/ContosoApp -Bxo 4: COPY ./ .
Box 5: RUN powershell ./setupScript.ps1
You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container.Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when theFunction App is triggered.You need to configure the Function App.What should you do?
Use an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.
Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.
Use a Consumption plan. Configure the Function App to use a Timer trigger.
Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.
Use a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger.
You are configuring a new development environment for a Java application.The environment requires a Virtual Machine Scale Set (VMSS), several storage accounts, and networking components.The VMSS must not be created until the storage accounts have been successfully created and an associated load balancer and virtual network is configured.How should you complete the Azure Resource Manager template? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: priority
Box 2: copyIndex
Box 3: dependsOn -
Box 1: copyIndex
Box 2: copy
Box 3: dependsOn -
Box 1: copy
Box 2: copyIndex
Box 3: priority
Box 1: dependsOn
Box 2: copyIndex
Box 3: priority
You are developing an Azure Function App by using Visual Studio. The app will process orders input by an Azure Web App. The web app places the order information into Azure Queue Storage.You need to review the Azure Function App code shown below.
Box 1: No
Box 2: Yes
Box 3: Yes
Box 4: Yes
Box 1: Yes
Box 2: Yes
Box 3: Yes
Box 4: Yes
Box 1: No
Box 2:No
Box 3: Yes
Box 4: Yes
Box 1: No
Box 2: Yes
Box 3: Yes
Box 4: No
You are preparing to deploy a website to an Azure Web App from a GitHub repository. The website includes static content generated by a script.You plan to use the Azure Web App continuous deployment feature.You need to run the static generation script before the website starts serving traffic.What are two possible ways to achieve this goal? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point
Add the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.
Add a PreBuild target in the websites csproj project file that runs the static content generation script.
Create a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.
Create a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website.
You are developing an application to use Azure Blob storage. You have configured Azure Blob storage to include change feeds.A copy of your storage account must be created in another region. Data must be copied from the current storage account to the new storage account directly between the storage servers.You need to create a copy of the storage account in another region and copy the data.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.
1,3,5,2,4
3,4,5,1,2
4,3,5,2,1
5,3,1,2,4
You are preparing to deploy an Azure virtual machine (VM)-based application.The VMs that run the application have the following requirements:✑ When a VM is provisioned the firewall must be automatically configured before it can access Azure resources.✑ Supporting services must be installed by using an Azure PowerShell script that is stored in Azure Storage.You need to ensure that the requirements are met.Which 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.
Box1:Serial console
Box2:Custom Script Extension
Box1:Run Command
Box2:Serial console
Box1:Run Command
Box2:Hybrid Runbook Worker
Box1:Custom Script Extension
Box2:Hybrid Runbook Worker
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 AzureStorage Blob storage. The storage account type is General-purpose 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: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload.Does the solution meet the goal?
Yes
No
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: Update the app with a method named statuscheck to run the scripts. Update the app settings for the app. Set theWEBSITE_SWAP_WARMUP_PING_PATH and WEBSITE_SWAP_WARMUP_PING_STATUSES with a path to the new method and appropriate response codes.Does the solution meet the goal?
Yes
No
You create the following PowerShell script:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
No,Yes,No
Yes,No,Yes
No,No,No
Yes,Yes,Yes
You are developing an Azure Function app.The app must meet the following requirements:✑ Enable developers to write the functions by using the Rust language.✑ Declaratively connect to an Azure Blob Storage account.You need to implement the app.Which Azure Function app 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.
Box1: Extension bundle
Box2:Hosting plan
Box1: Policy
Box2:Hosting plan
Box1: Runtime
Box2:Policy
Box1: Custom Handler
Box2:Trigger
You are developing an ASP.NET Core web application. You plan to deploy the application to Azure Web App for Containers.The application needs to store runtime diagnostic data that must be persisted across application restarts. You have the following code:
Box 1: WEBSITES_ENABLE_APP_SERVICE_STORAGE
Box 2: /home
Box 1: WEBSITES_LOCALCACHE_ENABLED
Box 2: D/home
Box 1: LOCALAPPDATA
Box 2: D/local
Box 1: DOTNET_HOSTING_OPTIMIZATION_CACHE
Box 2: /local
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 ApplicationGateway 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.NOTE: Each correct selection is worth one point.
In the Azure Application Gateway's HTTP setting, enable the Use for App service setting.
Convert the web app to run in an Azure App service environment (ASE).
Add an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway.
In the Azure Application Gateway's HTTP setting, set the value of the Override backend path option to contoso22.azurewebsites.net.
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 AzureStorage Blob storage. The storage account type is General-purpose 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: Use the Azure Blob Storage change feed to trigger photo processing.Does the solution meet the goal?
Yes
No
You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an AzureStorage account. The web application makes HTTP requests to external services as part of normal operations.The web application is instrumented with Application Insights. The external services are OpenTelemetry compliant.You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system.What should you do?
Add the customer ID for the signed in user to the CorrelationContext in the web application
in user
On the current SpanContext, set the TraceId to the customer ID for the signed in user
Set the header Ocp-Apim-Trace to the customer ID for the signed in user
Create a new SpanContext with the TraceFlags value set to the customer ID for the signed in user
You are developing an Azure Function App. You develop code by using a language that is not supported by the Azure Function App host. The code language supports HTTP primitives.You must deploy the code to a production Azure Function App environment.You need to configure the app for deployment.Which configuration values should you use? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: Docker container
Box 2: PowerShell core
Box 3: 7.0
Box 1: Code
Box 2: Node.js
Box3:14 LTS
Box 1:Docker container
Box2:Python
Box 3:custom
You provision virtual machines (VMs) as development environments.One VM does not start. The VM is stuck in a Windows update process. You attach the OS disk for the affected VM to a recovery VM.You need to correct the issue.In which order should you perform the actions? 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:
2,4,3,1
1,2,3,4
1,4,2,3
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 an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data.You need to ensure the app does not time out and processes the blob data.Solution: Update the functionTimeout property of the host.json project file to 10 minutes.Does the solution meet the goal?
YES
NO
You are developing an Azure Durable Function based application that processes a list of input values. The application is monitored using a console application that retrieves JSON data from an Azure Function diagnostic endpoint.During processing a single instance of invalid input does not cause the function to fail. Invalid input must be available to the monitoring application.You need to implement the Azure Durable Function and the monitoring console application.How should you complete the code segments? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Box 1: await context.CallEntityAsync(input[errindex],"error")
Box 2: Failed
Box 3: Input
Box 1: await context.CallEntityAsync(input[errindex],"error")
Box 2: Awaited
Box 3: output
Box 1: await context.CallEntityAsync(input[errindex],"error")
Box 2:Completed
Box 3: customStatus
Box 1: await context.CallEntityAsync(input[errindex],"error")
Box 2: Listening
Box 3: runtimeStatus
You are developing an Azure Durable Function to manage an online ordering process.The process must call an external API to gather product discount information.You need to implement the Azure Durable Function.Which Azure Durable Function types should you use? Each correct answer presents part of the solution.NOTE: Each correct selection is worth one point.
Orchestrator
Entity
Client
Activity
You are authoring a set of nested Azure Resource Manager templates to deploy multiple Azure resources.The templates must be tested before deployment and must follow recommended practices.You need to validate and test the templates before deployment.Which tools should you use? To answer, drag the appropriate tools to the correct requirements. 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.
Box 1: Template function
Box 2: User-defined function
Box 1: Azure Deployment Manager
Box 2: Parameter File
Box 1: Azure Resource Manager test toolkit
Box 2: Azure Deployment Manager
Box 1: Azure Resource Manager test toolkit
Box 2: What-if operation
You develop Azure Durable Functions to manage vehicle loans.The loan process includes multiple actions that must be run in a specified order. One of the actions includes a customer credit check process, which may require multiple days to process.You need to implement Azure Durable Functions for the loan process.Which Azure Durable Functions type should you use?
orchestrator
client
entity
activity
You are developing an Azure Function app.All functions in the app meet the following requirements:• Run until either a successful run or until 10 run attempts occur.• Ensure that there are at least 20 seconds between attempts for up to 15 minutes.You need to configure the host.json file.How should you complete the code segment? To answer, select the appropriate options in the answer area.
Box1:healthMonitor
Box2:counterThreshold
Box3:healthCheckInterval
Box1:singleton
Box2:fixedDelay
Box3:maxRetryCount
Box1:retry
Box2:exponentialBackoff
Box3:maxRetryCount
