AZ 204 (1)
Fourth Coffee has an ASP.NET Core web app that runs in Docker. The app is mapped to the www.fourthcoffee.com domain. Fourth Coffee is migrating this application to Azure.You need to provision an App Service Web App to host this docker image and map the custom domain to the App Service web app. A resource group named FourthCoffeePublicWebResourceGroup has been created in the WestUS region that contains an App Service Plan named AppServiceLinuxDockerPlan. Which order should the CLI commands be used to develop the solution? To answer, move all of the Azure CLI commands from the list of commands to the answer area and arrange them in the correct order. Select and Place:
#/bin/bash appName="FourthCoffeePublicWeb$random" location="WestUS" dockerHubContainerPath="FourthCoffee/publicweb:v1" fqdn="http://www:fourthcoffee.com">www.forthcoffee.com az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffeePublicWebResourceGroup az webapp config container set --docker-custom-image-name $dockerHubContainerPath --name $appName --resource-group fourthCoffeePublicWebResourceGroup az webapp config hosttname add --webapp-name $appName --resource-group fourthCoffeePublicWebResourceGroup \ --hostname $fqdn
A company is developing a Node.js web app. The web app code is hosted in a GitHub repository located at https://github.com/TailSpinToys/webapp. The web app must be reviewed before it is moved to production. You must deploy the initial code release to a deployment slot named review. You need to create the web app and deploy the code. How should you complete the commands?
$gitrepo="https://github.com/TailSpinToys/webapp" $webappname="TailSpinToysWeb" $location="WestUS2" New-AzResourceGroup -Name myResourceGroup -Location $location New-AzAppServicePlan -Name $webappname -Location $location -ResourcGroupName myResourceGroup -Tier Standard New-AzWebApp -Name $webappname -Location $location -AppServicePlan $webappname -ResourceGroupName myResourceGroup New-AzWebAppSlot -Name $webappname -ResourceGroupName myResourceGroup -Slot review $PropertiesObject = @{repoUrl = "$gitrepo";branch = "master";} Set-AzResouces -PropertyObject $PropertiesObject -ResourceGroupName myResourceGroup -ResourceType Microsoft.Web/sites/slots/sourcecontrols -ResourceName $webappname/review/web -ApiVersion 2015-08-01 -Force Switch-AzWebAppSlot -Name $webappname -ResourceGroupName myResourceGroup -SourceSlotName review -DestinationSlotName prduction
You are developing an application that needs access to an Azure virtual machine (VM).The access lifecycle for the application must be associated with the VM service instance. You need to enable managed identity for the VM. How should you complete the PowerShell segment?
$vm = Get-AzVM -ResourceGroupName "ContosoRG" -Name "ContosoVM" Update-AzVM -ResourceGroupName "ContosoRG" -VM $vm -IdentityId: $SystemAssigned
Your company has an Azure subscription. You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM) templates. The virtual machines will be included in a single availability set. You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformUpdateDomainCount property?
20
You create the following PowerShell script: $source = New-AzScheduledQueryRuleSource -Query 'Heartbeat | where TimeGenerated > ago(1h)' -DataSourceId "contoso" $schedule = New-AzSchedledQueryRuleSchedule -FrequencyInMinutes 60 -TimeWindowInMinutes 60 $triggerCondition = New-AzScheduledQueryRuleTriggerCondition -ThresholdOperation "LessThan" -Threshold 5 $aznsActionGroup = New-AzScheduledQueryRuleAznsActionGroup -ActionGroup "contoso" -EmailSubject "Custom email subject" -CustomWebhookPayload "{ ' "alert ' ": ' " #alertrulename ' ", ' "IncludeSearchResults' ":true }" $alertingAction = New-AzScheduledQueryRuleAlertingAction -AznsAction $aznsActionGroup -Severity "3" -Trigger $triggerCondition New-AzScheduledQueryRule -ResourceGroupName "contoso" -Location "eastus" -Action $alertingAction -Enabled $true -Description "Alert description" -Schedule $schedule -Source $source -Name "Alert Name"
A log alert is created that sends an email when the CPU percentage is above 60 percent for five minutes? NO A log alert is created that sends an email when the number of virtual machine heartbeats in the past hour is less then five? YES The log alert is scheduled to run every two hours? NO
You manage an Azure SQL database that allows for Azure AD authentication. You need to make sure that database developers can connect to the SQL database via Microsoft SQL Server Management Studio (SSMS). You also need to make sure the developers use their on-premises Active Directory account for authentication. Your strategy should allow for authentication prompts to be kept to a minimum. Which of the following should you implement?
Active Directory integrated authentication.
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?
Add a PreBuild target in the websites csproj project file that runs the static content generation script. 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 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
You have downloaded an Azure Resource Manager template to deploy numerous virtual machines. The template is based on a current virtual machine, but must be adapted to reference an administrative password. You need to make sure that the password is not stored in plain text. You are preparing to create the necessary components to achieve your goal. Which of the following should you create to achieve your goal?
An Azure Key Vault, An access policy
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: public void SaveDiagData (string data) { var path = Environment.GetEnvironmentVariable ("DIAGDATA"); File.WriteAllText(Path.Combine(path,"data"), data); } You need to configure the application settings so that diagnostic data is stored as required. How should you configure the web app's settings?
App settings Value WEBSITES_ENABLE_APP_SERVICE_STORAGE/home true
You are a developer for a software as a service (SaaS) company that uses an Azure Function to process orders. The Azure Function currently runs on an AzureFunction app that is triggered by an Azure Storage queue.You are preparing to migrate the Azure Function to Kubernetes using Kubernetes-based Event Driven Autoscaling (KEDA).You need to configure Kubernetes Custom Resource Definitions (CRD) for the Azure Function.Which CRDs should you configure? Select and Place:
Azure Function code - Deployment Polling interval - ScaledObject Azure Storage connection string - Secret
You are building a website that uses Azure Blob storage for data storage. You configure Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days.Customers have requested a service-level agreement (SLA) for viewing data older than 30 days.You need to document the minimum SLA for data recovery.Which SLA should you use?
Between one and 15 hours
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. Select and Place:
CMD ["dotnet", "ContosoApp.dll"] FROM microsoft/aspnetcore:latest WORKDIR /apps/ContosoApp COPY ./ . RUN powershell ./setupScfrip.ps1
You develop Azure Web Apps for a commercial diving company. Regulations require that all divers fill out a health questionnaire every 15 days after each diving job starts.You need to configure the Azure Web Apps so that the instance count scales up when divers are filling out the questionnaire and scales down after they are complete.You need to configure autoscaling. What are two possible auto scaling configurations to achieve this goal?
CPU usage-based autoscaling Predictive autoscaling
You are developing an Azure Web App. You configure TLS mutual authentication for the web app. You need to validate the client certificate in the web app. To answer, select the appropriate options in the answer area.
Client certificate location - HTTP request header Encoding type - Base64
You have an App Service plan named asp1 based on the Free pricing tier.You plan to use asp1 to implement an Azure Function app with a queue trigger. Your solution must minimize cost. You need to identify the configuration options that will meet the requirements. Which value should you configure?
Configuration option Value Azure App Service feature Managed identity Azure App Service pricing tier Basic
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?
Configuration parameter Configuration value Publish - Docker Container Runtime stack - PowerShell Core Version - 7.0
You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers.You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation venues.You want the application to list holiday accommodation venues that fall within a specific price range and are within a specified distance to an airport.What should you do?
Configure the Filter property of the SearchParameters class.
You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers.You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation.You want the application to allow customers to search the index by using regular expressions.What should you do?
Configure the QueryType property of the SearchParameters class.
You are creating an Azure Cosmos DB account that makes use of the SQL API. Data will be added to the account every day by a web application. You need to ensure that an email notification is sent when information is received from IoT devices, and that compute cost is reduced. You decide to deploy a function app. Which of the following should you configure the function app to use? Answer by dragging the correct options from the list to the answer area. Select and Place:
Consumption Plan, Send Grid binding
You are a developer for a company that provides a bookings management service in the tourism industry. You are implementing Azure Search for the tour agencies listed in your company's solution.You create the index in Azure Search. You now need to use the Azure Search .NET SDK to import the relevant data into the Azure Search service. Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions from left to right and arrange them in the correct order.Select and Place:
Create a SearchIndexClient object to connect to the search index. Create an IndexBatch that contains the documents which must be aded. Call the Documents.Index method of the SearchIndexClient and pass the IndexBatch.
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.Select and Place:
Create a new template deployment. Export a Resource Manager template. Modify the template by changing the storage account name and region. Deploy the template to create a new storage account in the target region. Use AZCopy to copy the data to the new storage account.
You are developing an application that applies a set of governance policies for internal and external services, as well as for applications.You develop a stateful ASP.NET Core 2.1 web application named PolicyApp and deploy it to an Azure App Service Web App. The PolicyApp reacts to events from Azure Event Grid and performs policy actions based on those events.You have the following requirements: ✑ Authentication events must be used to monitor users when they sign in and sign out. ✑ All authentication events must be processed by PolicyApp. ✑ Sign outs must be processed as fast as possible. What should you do?
Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
You are developing a serverless Java application on Azure. You create a new Azure Key Vault to work with secrets from a new Azure Functions application. The application must meet the following requirements: ✑ Reference the Azure Key Vault without requiring any changes to the Java code. ✑ Dynamically add and remove instances of the Azure Functions host based on the number of incoming application events. ✑ Ensure that instances are perpetually warm to avoid any cold starts. ✑ Connect to a VNet. ✑ Authentication to the Azure Key Vault instance must be removed if the Azure Function application is deleted. You need to grant the Azure Functions application access to the Azure Key Vault. 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 the Azure Functions app with a Consumption plan type. Create a user-assigned managed identity for the application. Create an access policy n Azure Key Vault for the application identity.
You develop a website. You plan to host the website in Azure. You expect the website to experience high traffic volumes after it is published. You must ensure that the website remains available and responsive while minimizing cost.You need to deploy the website.What should you do?
Deploy the website to an App Service that uses the Standard service tier. Configure the App Service plan to automatically scale when the CPU load is high.
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?
Determine whether the templates follow recommended practices. - Azure Resource Manager test toolkit Test and validate changes that templates will make to the environment. - What-if operation
You are building a software-as-a-service (SaaS) application that analyzes DNA data that will run on Azure virtual machines (VMs) in an availability zone. The data is stored on managed disks attached to the VM. The performance of the analysis is determined by the speed of the disk attached to the VM. You have the following requirements: • The application must be able to quickly revert to the previous day's data if a systemic error is detected. • The application must minimize downtime in the case of an Azure datacenter outage. You need to provision the managed disk for the VM to maximize performance while meeting the requirements.Which type of Azure Managed Disk should you use? To answer, select the appropriate options in the answer area.
Disk type - Premium SSD Redundancy - Geo-redundant storage (GRS)
You are developing an e-Commerce Web App. You want to use Azure Key Vault to ensure that sign-ins to the e-Commerce Web App are secured by using Azure App Service authentication and Azure Active Directory (AAD). What should you do on the e-Commerce Web App?
Enable Managed Service Identity (MSI).
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? Select and Place:
Enable developers to write the functions by using the Rust language. - Custom handler Declaratively connect to an Azure Blog Storage account. - Trigger
You are developing several microservices to run on Azure Container Apps.The microservices must allow HTTPS access by using a custom domain.You need to configure the custom domain in Azure Container Apps. In which order should you perform the actions?
Enable ingress. Add the custom domain name. Validate the custom domain name. Bind the certificate. Add DNS records to the domain provider.
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?
Enable the change feed on the storage account and process all changes for available events.
You are creating an Azure key vault using PowerShell. Objects deleted from the key vault must be kept for a set period of 90 days. Which two of the following parameters must be used in conjunction to meet the requirement? (Choose two.)
EnablePurgeProtection EnableSoftDelete
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? Select and Place:
Firewall configuration - Run Command Supporting services script - Hybrid Runbook Worker
You have two Hyper-V hosts named Host1 and Host2. Host1 has an Azure virtual machine named VM1 that was deployed by using a custom Azure Resource Manager template. You need to move VM1 to Host2. What should you do?
From the Redeploy blade, click Redeploy.
You are configuring a development environment for your team. You deploy the latest Visual Studio image from the Azure Marketplace to your Azure subscription.The development environment requires several software development kits (SDKs) and third-party components to support application development across the organization. You install and customize the deployed virtual machine (VM) for your development team. The customized VM must be saved to allow provisioning of a new team member development environment. You need to save the customized VM for future provisioning. Which tools or services should you use? To answer, select the appropriate options in the answer area.
Generalize the VM. - Azure Powershell Store images - Azure Blob Storage
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?
In the Azure Application Gateway's HTTP setting, enable the Use for App service setting. In the Azure Application Gateway's HTTP setting, set the value of the Override backend path option to contoso22.azurewebsites.net.
Your company has an Azure subscription. You need to deploy a number of Azure virtual machines to the subscription by using Azure Resource Manager (ARM) templates. The virtual machines will be included in a single availability set. You need to ensure that the ARM template allows for as many virtual machines as possible to remain accessible in the event of fabric failure or maintenance. Which of the following is the value that you should configure for the platformFaultDomainCount property?
Max Value. The number of fault domains for managed availability sets varies by region - either two or three per region.
You have an application that uses Azure Blob storage. You need to update the metadata of the blobs. Which three methods should you use to develop the solution?
Metadata.Add SetMetadataAsync SetPropertiesAsync
You company has an on-premises deployment of MongoDB, and an Azure Cosmos DB account that makes use of the MongoDB API. You need to devise a strategy to migrate MongoDB to the Azure Cosmos DB account. You include the Data Management Gateway tool in your migration strategy. Instructions: Review the underlined text. If it makes the statement correct, select `No change required.` If the statement is incorrect, select the answer choice that makes the statement correct.
Mongorestore
You develop Azure solutions.You must connect to a No-SQL globally-distributed database by using the .NET API.You need to create an object to configure and execute requests in the database.Which code segment should you use?
New CosmosClient(EndpointUri, PrimaryKey);
You are configuring a web app that delivers streaming video to users. The application makes use of continuous integration and deployment. You need to ensure that the application is highly available and that the users' streaming experience is constant. You also want to configure the application to store data in a geographic location that is nearest to the user. Solution: You include the use of Azure Redis Cache in your design. Does the solution meet the goal?
No
You are configuring a web app that delivers streaming video to users. The application makes use of continuous integration and deployment.You need to ensure that the application is highly available and that the users' streaming experience is constant. You also want to configure the application to store data in a geographic location that is nearest to the user. Solution: You include the use of a Storage Area Network (SAN) in your design. Does the solution meet the goal?
No
You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Client cert gateway credentials for the Azure resource.Does the solution meet the goal?
No
You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end.You must configure back-end authentication for the API Management service instance.Solution: You configure Basic gateway credentials for the Azure resource.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 the machine identifier as the partition key and enable capture. Does the solution meet the goal?
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 Azure Storage 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?
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: Convert the Azure Storage account to a BlockBlobStorage storage account. Does the solution meet the goal?
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: Use the Azure Blob Storage change feed to trigger photo processing. Does the solution meet the goal?
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: Trigger the photo processing from Blob storage events. Does the solution meet the goal?
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: 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?
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: Update the functionTimeout property of the host.json project file to 10 minutes. Does the solution meet the goal?
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?
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: 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?
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: Enable auto swap for the Testing slot. Deploy the app to the Testing slot.Does the solution meet the goal?
No
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group. Developers have created an application named MyApp. MyApp was packaged into a container image.You need to deploy the YAML manifest file for the application. Solution: You install the docker client on the device and run the docker run -it microsoft/azure-cli:0.10.17 command. Does this meet the goal?
No
Your Azure Active Directory Azure (Azure AD) tenant has an Azure subscription linked to it. Your developer has created a mobile application that obtains Azure AD access tokens using the OAuth 2 implicit grant type. The mobile application must be registered in Azure AD. You require a redirect URI from the developer for registration purposes. Instructions: Review the underlined text. If it makes the statement correct, select `No change is needed.` If the statement is incorrect, select the answer choice that makes the statement correct.
No change required.
You are implementing a software as a service (SaaS) ASP.NET Core web service that will run as an Azure Web App. The web service will use an on-premisesSQL Server database for storage. The web service also includes a WebJob that processes data updates. Four customers will use the web service. ✑ Each instance of the WebJob processes data for a single customer and must run as a singleton instance. ✑ Each deployment must be tested by using deployment slots prior to serving production data. ✑ Azure costs must be minimized. ✑ Azure resources must be located in an isolated network. You need to configure the App Service plan for the Web App. How should you configure the App Service plan? To answer, select the appropriate settings in the answer area
Number of VM instances 4 Pricing tier Isolated
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?
Orchestrator Activity
You develop Azure solutions.A .NET application needs to receive a message each time an Azure virtual machine finishes processing data. The messages must NOT persist after being processed by the receiving application. You need to implement the .NET object that will receive the messages. Which object should you use?
QueueClient
You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. A deployed microservice must be updated to allow users to test new features. You have the following requirements: • Enable and maintain a single URL for the updated microservice to provide to test users. • Update the microservice that corresponds to the current microservice version. You need to configure Azure Container Apps.Which features should you configure? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.
Requirement Feature Single URL for test users Revision label Current microservice activation Current microservice activation Revision mode
You are developing an application that includes two Docker containers.The application must meet the following requirements: • The containers must not run as root. • The containers must be deployed to Azure Container Instances by using a YAML file. • The containers must share a lifecycle, resources, local network, and storage volume. • The storage volume must persist through container crashes. • The storage volume must be deployed on stop or restart of the containers. You need to configure Azure Container Instances for the application.Which configuration values should you use? To answer, select the appropriate options in the answer area.
Shared lifecycle - Container group Storage volume - Cloned Git repo
You develop a Web App on a tier D1 app service plan.You notice that page load times increase during periods of peak traffic.You want to implement automatic scaling when CPU load is above 80 percent. Your solution must minimize costs.What should you do first?
Switch to the Standard App Service tier plan.
Your company's Azure subscription includes an Azure Log Analytics workspace.Your company has a hundred on-premises servers that run either Windows Server 2012 R2 or Windows Server 2016, and is linked to the Azure Log Analytics workspace. The Azure Log Analytics workspace is set up to gather performance counters associated with security from these linked servers.You must configure alerts based on the information gathered by the Azure Log Analytics workspace.You have to make sure that alert rules allow for dimensions, and that alert creation time should be kept to a minimum. Furthermore, a single alert notification must be created when the alert is created and when the alert is resolved.You need to make use of the necessary signal type when creating the alert rules.Which of the following is the option you should use?
The Metric signal type.
You are developing a solution that uses the Azure Storage Client library for .NET. You have the following code: (Line numbers are included for reference only.) CloudBlockBlob src = null; try { src = container.ListBlobs ().OfType<CloudBlockBlob>().FirstOrDefault(); var id = await src.AcquireLeaseAsync(null); var dst = container.GetBlockBlobReference(rsc.Name); string cpid = await dst.StartCopyAsync(src); await dst.FetchAttributeAsync(); return id; } catch (Exception e) { throw; } finally { if (src != null) await scr.BreakLeaseAsync(new TimeSpan (0));
The code creates an infinite lease ? YES The code at line 06 always creates a new blob? NO The finally block releases the lease? YES
You have an Azure Active Directory (Azure AD) tenant. You want to implement multi-factor authentication by making use of a conditional access policy. The conditional access policy must be applied to all users when they access the Azure portal. Which three settings should you configure?
Users and groups, Cloud apps, Grant
Your company has a web app named WebApp1. You use the WebJobs SDK to design a triggered App Service background task that automatically invokes a function in the code every time new data is received in a queue. You are preparing to configure the service processes a queue data item. Which of the following is the service you should use?
Web Jobs
You are configuring a web app that delivers streaming video to users. The application makes use of continuous integration and deployment.You need to ensure that the application is highly available and that the users' streaming experience is constant. You also want to configure the application to store data in a geographic location that is nearest to the user. Solution: You include the use of an Azure Content Delivery Network (CDN) in your design. Does the solution meet the goal?
Yes
You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end.You must configure back-end authentication for the API Management service instance.Solution: You configure Client cert gateway credentials for the HTTP(s) endpoint. Does the solution meet the goal?
Yes
You are developing a solution for a public facing API.The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end.You must configure back-end authentication for the API Management service instance. Solution: You configure Basic gateway credentials for the HTTP(s) endpoint.Does the solution meet the goal?
Yes
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
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
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 web.config file to include the application Initialization configuration element. Specify custom initialization actions to run the scripts.Does the solution meet the goal?
Yes
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 the WEBSITE_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
Your company has an Azure Kubernetes Service (AKS) cluster that you manage from an Azure AD-joined device. The cluster is located in a resource group. Developers have created an application named MyApp. MyApp was packaged into a container image. You need to deploy the YAML manifest file for the application. Solution: You install the Azure CLI on the device and run the kubectl apply -f myapp.yaml command. Does this meet the goal?
Yes. kubectl apply -f myapp.yaml applies a configuration change to a resource from a file or stdin.
You are preparing to deploy a Python website to an Azure Web App using a container. The solution will use multiple containers in the same container group. The Dockerfile that builds the container is as follows: FROM python:3 ADD website.py CMD [ "python", "./website.py"] You build a container by using the following command. The Azure Container Registry instance named images is a private registry. docker build -t images.azurecr.io/website:v1.0.0 The user name and password for the registry is admin.The Web App must always run the same version of the website regardless of future builds.You need to create an Azure Web App to run the website.How should you complete the commands?
az configure --defaults web=website az configure --defaults group=website az appservice plan create --name websitePlan --sku B1 --hyper-v az webapp create --plan websitePlan --deployment-source-url images.azurecr.io/website:v1.0.0 az webapp config container set --docker-registry-server-url https://images.azurecr.io -u admin -p admin
You are developing a Docker/Go using Azure App Service Web App for Containers. You plan to run the container in an App Service on Linux. You identify a Docker container image to use. None of your current resource groups reside in a location that supports Linux. You must minimize the number of resource groups required.You need to create the application and perform an initial deployment. Which three Azure CLI 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.
az group create az appservice plan create az webapp create
You are creating a CLI script that creates an Azure web app and related services in Azure App Service. The web app uses the following variables: Variable name Value $gitrepo https://github.com/Contos/webapp $webappname Webapp1103 You need to automatically deploy code from GitHub to the newly created web app.How should you complete the script?
az group create --location westeurope --name myResourceGroup az appservice plan create --name $webappname --resource-group myResourceGroup --sku FREE az webapp create --name $webappname --resource-group myResourceGroup --plan $webappname az webapp deployment source config --name $webappname --resource-group myResourceGroup --repo-url $gitrepo --branch master --manual-integration
You have developed a Web App for your company. The Web App provides services and must run in multiple regions.You want to be notified whenever the Web App uses more than 85 percent of the available CPU cores over a 5 minute period. Your solution must minimize costs.Which command should you use? To answer, select the appropriate settings in the answer area.
az monitor metrics alert create -n myAlert -g myResourceGroup --scopes targetResourceID --condition "avg Percentage CPU>85" --window size 5m
You are authoring a set of nested Azure Resource Manager templates to deploy Azure resources. You author an Azure Resource Manager template named mainTemplate.json that contains the following linked templates: linkedTemplate1.json, linkedTemplate2.json. You add parameters to a parameters template file named mainTemplate.parameters,json. You save all templates on a local device in the C:\templates\ folder.You have the following requirements: • Store the templates in Azure for later deployment • Enable versioning of the templates. • Manage access to the templates by using Azure RBAC. • Ensure that users have read-only access to the templates. • Allow users to deploy the templates. You need to store the templates in Azure. How should you complete the command? To answer, select the appropriate options in the answer area.
az ts create --name templateStore \ --version "1.0" \ --resource-group templateRG \ --location "eastus" \ --template-file mainTemplate.json"\ "C:\templates\ --tags Dept=HumanResources Environment=Production
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.
gitrepo=https://github.com/Contoso/webapp webappname=businesswebapp resourcegroupname=BusinessAppResourceGroup az group create --location centralus --nsmr $resourcegroupname az appservice plan create --name $webappname --resource-group $resourcegroupname --sku S3 az webapp create --name $webappname --resource-group $resourcegroupname --plan $webappname az webapp deployment slot create --name $webappname --resource-group $resourcegroupname --slot staging az webapp deployment source config --name $webappname --resource-group $resourcegroupname \ --slot staging --repo-url $gitrepo --branch master --manual-integration
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
You are developing a ticket reservation system for an airline.The storage solution for the application must meet the following requirements: ✑ Ensure at least 99.99% availability and provide low latency. ✑ Accept reservations even when localized network outages or other unforeseen failures occur. ✑ Process reservations in the exact sequence as reservations are submitted to minimize overbooking or selling the same seat to multiple travelers. ✑ Allow simultaneous and out-of-order reservations with a maximum five-second tolerance window. You provision a resource group named airlineResourceGroup in the Azure South-Central US region.You need to provision a SQL API Cosmos DB account to support the app. How should you complete the Azure CLI commands?
resourceGroupName='airlineResourceGroup' name='docdb=airline-reservation' databaseName='docdb-tickets-database' collectionName='docdb-tickets-collection' consistencyLevel= BoundedStaleness az cosmosdb create \ --name $name \ --enable-automatic-failover true \ --resource-group $resourceGroupName \ --max-intervat 5 \ --locations 'southcentralus=0 eastus=1 westus=2' --default-consistency-level = $consistencylevel
You are a developer at your company.You need to update the definitions for an existing Logic App.What should you use?
the Logic App Code View
You are a developer at your company.You need to edit the workflows for an existing Logic App.What should you use?
the Logic Apps Designer
You are developing a service where customers can report news events from a browser using Azure Web PubSub. The service is implemented as an Azure Function App that uses the JSON WebSocket subprotocol to receive news events.You need to implement the bindings for the Azure Function App. How should you configure the binding? To answer, select the appropriate options in the answer area.
{ "bindings": [ { "type": "webPubSubTrigger "direction": "in", "name": "data", "eventName": "message", "eventType": "user" } ] }
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?
{ "retry": { "strategy": "exponentialBackoff", "maxRetryCount": 10, "minimumInterval": "00:00:20", "maximumInterval": "00:15:00" } }
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?
{ ... "resources": [ { "apiVersion": "2016-01-01", "type": "Microsoft.Storage/storageAccounts", "name": "[conctact( copyIndex (), 'storage', uniqueString(resourceGroup().id))]", "location": "[resourceGroup().location]", ... "sku": { "name": "Standard_LRS" }, "kind": "Storage", "properties": {}, "copy": { "name": "storagesetup", "count": 3 } }, { "apiVersion": "2015-06-15", "type": "Microsoft.Compute/virtualMachines", "name": "[concat('VM', uniqueString(resourceGroup().id))]", "dependsOn": [ "[variables('loadBalancerName')]", "[variables('virtualNetworkName')]", "storagesetup", ], ... } ], "outputs": {} }
You are developing an Azure Static Web app that contains training materials for a tool company. Each tool's training material is contained in a static web page that is linked from the tool's publicly available description page.A user must be authenticated using Azure AD prior to viewing training.You need to ensure that the user can view training material pages after authentication.How should you complete the configuration file? To answer, select the appropriate options in the answer area.
{"responseOverrides":{"401":{ "redirect": "/auth/login/ ?post_I add "statusCode":302.referrer } } }
You are developing a solution for a hospital to support the following use cases: ✑ The most recent patient status details must be retrieved even if multiple users in different locations have updated the patient record ✑ Patient health monitoring data retrieved must be the current version or the prior version. ✑ After a patient is discharged and all charges have been assessed, the patient billing record contains the final charges. You provision a Cosmos DB NoSQL database and set the default consistency level for the database account to Strong. You set the value for Indexing Mode to Consistent. You need to minimize latency and any impact to the availability of the solution. You must override the default consistency level at the query level to meet the required consistency guarantees for the scenarios. Which consistency levels should you implement? To answer, drag the appropriate consistency levels to the correct requirements. Each consistency level 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:
Return the most recent patient status - Strong Return health monitoring data that is no less than one version behind. - Bounded Staleness After patient is discharged and all changes are assessed, retrieve the correct billing data with the final charges. - Eventual
You are developing an application to transfer data between on-premises file servers and Azure Blob storage. The application stores keys, secrets, and certificates in Azure Key Vault and makes use of the Azure Key Vault APIs. You want to configure the application to allow recovery of an accidental deletion of the key vault or key vault objects for 90 days after deletion. What should you do?
Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI.
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:
Run the following command at an elevated command prompt: dism /image:\ /get=packages > c:\temp\Patch.txt Open C:\temp\Patch.txt file and locate the update that is in a pending state Run the following command at an elevated command prompt: dism /imge:<Attached OS disks>:\ /Remove Package /PackageName:<package name to delete Detach the OS disk and recreate the VM
You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue. A rule already exists to scale up the App Service when the average queue length of unprocessed and valid queue messages is greater than 1000.You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met.How should you configure the Scale rule?
Scale rule - Metric source - Service Bus queue Criteria - Metric Name - Active Message Count Time grain statistic - Count
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. public static class OrderProcessor { [FunctionName("ProcessOrders")] public static void ProcessOrders ([QueueTrigger("incoming-oders")]CloudQueueMessage myQueueItem, [Table("Orders")]ICollector<Order> tableBindings, TraceWriter log) { log.Info($"Processing Order: {myQueueItem.Id}"); log.Info($"Queue Insertion Time: {myQueueItem.InsertionTime}"); log.Info($"Queue Expiration Time: {myQueueItem.ExpirationTime}"); tableBinding.Add(JsonConvert.DeserializeObject<Order>(myQueueItem.AsString)); } [FunctionName("ProcessOrders-Poison")] public static void ProcessFailedOrders([QueueTrigger("incoming-orders-poison")]CloudQueueMessage myQueueItem, TraceWriter log) { log.Error($"Failed to process oder: {myOueueItem.AsString}"); ... } }
The code will log the time that the order was processed from the queue. - NO When the process Orders function fails, the function will retry up to five times for a given order, including the first try. - YES When there are multiple orders in the queue, a batch of orders will be retrieved from the queue and the ProcessOrders function will run multiple instances concurrently to process the orders. - YES The ProcessOrders functions will output the order to an Orders table in Azure Table Storage. - YES
You are maintaining an existing application that uses an Azure Blob GPv1 Premium storage account. Data older than three months is rarely used.Data newer than three months must be available immediately. Data older than a year must be saved but does not need to be available immediately. You need to configure the account to support a lifecycle management rule that moves blob data to archive storage for data not modified in the last year. Which three actions should you perform in sequence?
Upgrade the storage account to GPv2 Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account Change the storage account access tier from hot to cool
You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices.The microservices must be deployed to the same virtual network and write logs to the same Log Analytics workspace.You need to deploy the microservices. What should you do?
Use a single environment for all containers.
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 the Function 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 trigger.
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
[FunctionName("App")] public static async Task<List<string>> RunOrchestrator([OrchestrationTrigger] IDurableOrchestrationContext context) { EntityId[] input = ... int errIndex =... await context.CallEntityAsync(input[errindex],"error") } using (var client = new HttpClient ()) { while (true) { var response = await client.GetAsync("..."); response.EnsureSuccessStatusCode(); var json = await response.Contens.ReadAsStringAsync(); dynamic result = JsonConvers.DeserializeObject(json); if (result.runtimeStatus = = " Failed " ) { return result. input; } } }
You are developing an online game that allows players to vote for their favorite photo that illustrates a word. The game is built by using Azure Functions and uses durable entities to track the vote count.The voting window is 30 seconds. You must minimize latency.You need to implement the Azure Function for voting.How should you complete the code? To answer, select the appropriate options in the answer area.
[FunctionName("Vote")] public static async Task<HttpResponseMessage> Run( [HttpTrigger("POST", Route = "pic/{id}")] HttpRequestMessage req, [DurableClient] IDurableEntityClient string id) { var eid = new EntityId("pic", id); await c. SignalEntityAsync (eid, "vote"); return req.CreateResponse(HttpStatusCode.OK); }
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?
function ensureTip(){ var r = getContext().getRequest(); var i = r.getBody(); if (isNaN(i)["tip"} || i ["tip"] = = = null){ i["tip"] = 0; } r.setBody(i); }
You are developing a C++ application that compiles to a native application named process.exe. The application accepts images as input and returns images in one of the following image formats: GIF, PNG, or JPEG. You must deploy the application as an Azure Function. You need to configure the function and host json files. How should you complete the json files? To answer, select the appropriate options in the answer area.
function.json "type":"http" "platform":"gcm" "datatype":"stream" "path":"process.exe" "direction": "out", "nname" : "results" } host.json "customHandler":{"description":{ "languageWorker":{"path":{ "extensions":{"worker":{ "extensionBundle":{ "defaultExecutablePath": "process.exe" }, "enableForwardingHttpRequest":false }