Set 2 Part 1 - AZ-204

Description

Set 2 de preguntas examen az-204
Eduardo Zelaya
Quiz by Eduardo Zelaya, updated 19 days ago
Eduardo Zelaya
Created by Eduardo Zelaya 20 days ago
0
0

Resource summary

Question 1

Question
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-premises SQL 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. NOTE: Each correct selection is worth one point. Answer Area: App service plan setting || Value Number of VM instances || [blank_start][Option 1][blank_end] Pricing Tier || [blank_start][Option 2][blank_end]
Answer
  • 2
  • 4
  • 8
  • 16
  • Isolated
  • Standard
  • Premium
  • Consumption

Question 2

Question
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 Azure Function 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? To answer, drag the appropriate CRD types to the correct locations. Each CRD 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. NOTE: Each correct selection is worth one point. Answer Area: Setting || CRD type Azure Function code || [blank_start][Option 1][blank_end] Polling interval || [blank_start][Option 2][blank_end] Azure Storage connection string || [blank_start][Option 3][blank_end]
Answer
  • Deployment
  • ScaledObject
  • Secret
  • TriggerAuthentication

Question 3

Question
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? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer Area az group create --location westeurope --name myResourceGroup [blank_start][Option 1][blank_end] --name $webappname --resource-group myResourceGroup --sku FREE [blank_start][Option 2][blank_end] --name $webappname --resource-group myResourceGroup [blank_start][Option 3][blank_end] [blank_start][Option 4][blank_end] source config --name $webappname --reosurce-group myResourceGroup [blank_start][Option 5][blank_end]
Answer
  • az webapp
  • az appservice plan create
  • az webapp deployment
  • az group delete
  • az webapp create
  • az appservice plan create
  • az webapp deployment
  • az group delete
  • --repo-url $gitrepo --branch master --m-
  • git clone $gitrepo
  • --plan $webappname
  • az webapp
  • az appservice plan create
  • az webapp deployment
  • az group delete
  • --repo-url $gitrepo --branch master --ma
  • git clone $gitrepo
  • --plan $webappname

Question 4

Question
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: Trigger the photo processing from Blob storage events. Does the solution meet the goal?
Answer
  • True
  • False

Question 5

Question
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 applicationInitialization configuration element. Specify custom initialization actions to run the scripts. Does the solution meet the goal?
Answer
  • True
  • False

Question 6

Question
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?
Answer
  • True
  • False

Question 7

Question
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?
Answer
  • True
  • False

Question 8

Question
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: Convert the Azure Storage account to a BlockBlobStorage storage account. Does the solution meet the goal?
Answer
  • True
  • False

Question 9

Question
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. NOTE: Each correct selection is worth one point. Answer Area Property || Value Client certificate location || [blank_start][Option 1][blank_end] Encoding type || [blank_start][Option 2][blank_end]
Answer
  • HTTP request header
  • Client cookie
  • HTTP message body
  • URL query string
  • HTML
  • URL
  • Unicode
  • Base64

Question 10

Question
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. Select and Place: Answer Area: [blank_start][Option 1][blank_end] [blank_start][Option 2][blank_end] [blank_start][Option 3][blank_end]
Answer
  • az group create
  • az appservice plan create
  • az webapp create
  • az group update
  • az webapp update

Question 11

Question
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: Azure CLI Commands [Command Option 1] az webapp config container set --docket-custom-image-name $dockerHubContainerPath -- name $appName --resource-group fourthCoffePublicWebResourceGroup [Command Option 2] az webapp config hostname add --webapp-name $appName --resource-group fourthCoffePublicWebResourceGroup --hostname $fqdn [Command Option 3] az webapp create --name $appName --plan AppServiceLinuxDockerPlan --resource-group fourthCoffePublicWebResourceGroup [Command Option 4] #/bin/bash appName="fourthCoffePublicWeb$random" location="WestUS" dockerHubContainerPath="FourthCoffe/publicweb:v1" fqdn="http://www.fourthcoffee.com">www.fourthcoffee.com Answer Area: [blank_start][Correct Option 1][blank_end] [blank_start][Correct Option 2][blank_end] [blank_start][Correct Option 3][blank_end] [blank_start][Correct Option 4][blank_end]
Answer
  • Command Option 4
  • Command Option 3
  • Command Option 1
  • Command Option 2

Question 12

Question
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: Actions: [Action 1] Create a user-assigned managed identity for the application. [Action 2] Create the Azure Functions app with a Premium plan type. [Action 3] Create an access policy in Azure Key Vault for the application identity [Action 4] Create an SSL certification in Azure Key Vault for the application identity. [Action 5] Create the Azure Functions app with an App Service plan type. [Action 6] Create the Azure Functions app with a Consumption plan type. [Action 7] Create a system-assigned managed identity for the application. Answer Area: [blank_start][Option 1][blank_end] [blank_start][Option 2][blank_end] [blank_start][Option 3][blank_end]
Answer
  • Action 2
  • Action 7
  • Action 3
  • Action 4
  • Action 5
  • Action 6
  • Action 1

Question 13

Question
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?
Answer
  • Deploy the website to a virtual machine. Configure the virtual machine to automatically scale when the CPU load is high.
  • Deploy the website to an App Service that uses the Shared service tier. Configure the App Service plan to automatically scale when the CPU load is high.
  • Deploy the website to a virtual machine. Configure a Scale Set to increase the virtual machine instance count when the CPU load is high.
  • 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.

Question 14

Question
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. Answer Area: gitrepo=https://github.com/Contoso/webapp webappname=businesswebapp resourcegroupname=BusinessAppResourceGroup az [blank_start][Option 1][blank_end] create --location centralus --name $resourcegroupname az [blank_start][Option 2][blank_end] create --name $webappname --resource-group $resourcegroupname --sku S3 az [blank_start][Option 3][blank_end] create --name $webappname --resource-group $resourcegroupname --plan $webappname az [blank_start][Option 4][blank_end] create --name $webappname --resource-group $resourcegroupname --slot staging az [blank_start][Option 5][blank_end] config --name $webappname --resource-group $resourcegroupname --slot staging --repo-url $gitrepo --branch master --manual integration
Answer
  • group
  • webapp
  • appservice plan
  • webapp deployment slot
  • webapp deployment source
  • group
  • webapp
  • appservice plan
  • webapp deployment slot
  • webapp deployment source
  • group
  • webapp
  • appservice plan
  • webapp deployment slot
  • webapp deployment source
  • group
  • webapp
  • appservice plan
  • webapp deployment slot
  • webapp deployment source
  • group
  • webapp
  • appservice plan
  • webapp deployment slot
  • webapp deployment source

Question 15

Question
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. Answer Area: function ensureTip(){ var r = [blank_start][Option 1][blank_end] var i = r.getBody(); [blank_start][Option 2][blank_end] i["tip"] = 0; } [blank_start][Option 3][blank_end] }
Answer
  • __.value();
  • __.readDocument('item');
  • getContext().getRequest();
  • getContext().getResponse();
  • if (!("tip" in i)) {
  • if (request.getValue("tip") === null) {
  • if(isNaN(i)["tip"]||i["tip"] === null) {
  • if (typeof__.pluck("tip") == 'number') {
  • r.setBody(i);
  • r.setValue(i);
  • __.upsertDocument(i);
  • __.replaceDocument(i);

Question 16

Question
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?
Answer
  • True
  • False

Question 17

Question
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?
Answer
  • True
  • False

Question 18

Question
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?
Answer
  • True
  • False

Question 19

Question
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?
Answer
  • True
  • False

Question 20

Question
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?
Answer
  • 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.

Question 21

Question
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: [blank_start][Option 1][blank_end] [blank_start][Option 2][blank_end] [blank_start][Option 3][blank_end] [blank_start][Option 4][blank_end] [blank_start][Option 5][blank_end]
Answer
  • FROM microsoft/aspnetcore:latest
  • WORKDIR /apps/ContosoApp
  • COPY ./ .
  • RUN powershell ./setupScript.ps1
  • CMD ["dotnet", "ContosoApp.dll"]

Question 22

Question
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?
Answer
  • 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.

Question 23

Question
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. Answer Area: { . . . "resources": [ { "apiVersion": "2016-01-01", "type": "Microsoft.Storage/storageAccounts", "name": "[concat([blank_start][Option 1][blank_end](), 'storage', uniqueString(resourceGroup().id))], "location": "[resourceGroup().location]", . . . "sku": { "name": "Standard_LRS" }, "kind": "Storage", "properties": {}, "[blank_start][Option 2][blank_end]": { "name": "storagesetup", "count": 3 } }, { "apiVersion": "2015-06-15", "type": "Microsoft.Compute/virtualMachines", "name": "[concat('VM', uniqueString(resourceGroup().id))], "[blank_start][Option 3][blank_end]": [ "[variables('loadBalancerName')]", "[variables('virtualNetworkName')]", "storagesetup", ], . . . } ], "outputs": {} }
Answer
  • copy
  • copyIndex
  • priority
  • dependsOn
  • copy
  • copyIndex
  • priority
  • dependsOn
  • copy
  • copyIndex
  • priority
  • dependsOn

Question 24

Question
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. NOTE: Each correct selection is worth one point. Answer Area: The code will log the time that the order was processed from the queue. [blank_start][Option 1][blank_end] When the ProcessOrders function fails, the function will retry up to five times for a given order, including the first try. [blank_start][Option 2][blank_end] When there are multiple orders in the queue, a batch of orders will be retrieved from the queue and the ProcessOrders function will return multiple instances concurrently to process the orders. [blank_start][Option 3][blank_end] The ProcessOrders function will output the order to an Orders table in Azure Table Storage. [blank_start][Option 4][blank_end]
Answer
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Question 25

Question
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. NOTE: Each correct selection is worth one point. Select and Place: Answer Area: Return the most recent patient status || [blank_start][Option 1][blank_end] Return health monitoring data that is no less than one version || [blank_start][Option 2][blank_end] After patient is discharged and all charges are assessed, retrieve the correct billing data with the final charges. || [blank_start][Option 3][blank_end]
Answer
  • Strong
  • Bounded Staleness
  • Eventual
  • Consistent Prefix

Question 26

Question
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. NOTE: Each correct selection is worth one point. Action || Tool or service Generalize the VM || [blank_start][Option 1][blank_end] Store images. || [blank_start][Option 2][blank_end]
Answer
  • Azure PowerShell
  • Visual Studio command prompt
  • Azure Migrate
  • Azure Backup
  • Azure Blob Storage
  • Azure Data Lake Storage
  • Azure File Storage
  • Azure Table Storage

Question 27

Question
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.
Answer
  • 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.

Question 28

Question
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: Options: [Option 1] Use AZCopy to copy the data to the new storage account. [Option 2] Deploy the template to create a new storage account in the target region [Option 3] Export a Resource Manager template [Option 4] Create a new template deployment [Option 5] Modify the template by changing the storage account name and region. Answer Area: [blank_start][Answer Option 1][blank_end] [blank_start][Answer Option 2][blank_end] [blank_start][Answer Option 3][blank_end] [blank_start][Answer Option 4][blank_end] [blank_start][Answer Option 5][blank_end]
Answer
  • Option 3
  • Option 5
  • Option 4
  • Option 2
  • Option 1

Question 29

Question
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. Select and Place: Answer Area: Requirement || feature Firewall configuration || [blank_start][Option 1][blank_end] Supporting services script || [blank_start][Option 2][blank_end]
Answer
  • Run Command
  • Hybrid Runbook Worker
  • Serial console
  • Custom Script Extension

Question 30

Question
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? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. $gitrepo="https://github.com/TailSpinToys/webapp" $webappname="TailSpinToysWeb" $location="WestUS2" [blank_start][Option 1][blank_end] -Name myResourceGroup -Location $location [blank_start][Option 2][blank_end] -Name $webappname -Location $location -ResourceGroupName myResourceGroup -Tier Standard [blank_start][Option 3][blank_end] -Name $webappname -Location $location -AppServicePlan $webappname -ResourceGroupName myResourceGroup [blank_start][Opcion 4][blank_end] -Name $webappname -ResourceGroupName myResourceGroup -Slot review $PropertiesObject = @{repoUrl = "$gitrepo";branch = "master";} Set-AzResource -PropertyObject $PropertiesObjext -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 production
Answer
  • New-AzWebAppSlot
  • New-AzWebApp
  • New-AzAppServicePlan
  • New-AzResourceGroup
  • New-AzWebAppSlot
  • New-AzWebApp
  • New-AzAppServicePlan
  • New-AzResourceGroup
  • New-AzWebAppSlot
  • New-AzWebApp
  • New-AzAppServicePlan
  • New-AzResourceGroup
  • New-AzWebAppSlot
  • New-AzWebApp
  • New-AzAppServicePlan
  • New-AzResourceGroup

Question 31

Question
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? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Answer area $vm = Get-AzVM -ResourceGroupName "ContosoRG" -Name "ContosoVM" Update-AzVM -ResourceGroupName "ContosoRG" -VM -$vm [blank_start][Option 1][blank_end] [blank_start][Option 2][blank_end]
Answer
  • -AssignIdentity:
  • -IdentityId:
  • $SystemAssigned
  • $UserAssigned

Question 32

Question
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: 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?
Answer
  • True
  • False

Question 33

Question
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?
Answer
  • True
  • False

Question 34

Question
You create the following PowerShell script: $source = New-AzScheduledQueryRuleSource -Query 'Heartbeat | where TimeGenerated > ago(1h)' -DataSourceId "contoso" $schedule = New-AzScheduledQueryRuleSchedule -FrequencyInMinutes 60 -TimeWindowInMinutes 60 $triggerCondition = New-AzScheduledQueryRuleTriggerCondition -ThresholdOperator "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" For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. A log alert is created that sends an email when the CPU porcentage is above 60 percen for five minus. [blank_start][Option 1][blank_end] A log alert is created that sends an email when the number of virtual machine heartbetas in the past hour is les than five. [blank_start][Option 2][blank_end] The log alert is scheduled to run every two hours [blank_start][Option 3][blank_end]
Answer
  • Yes
  • No
  • Yes
  • No
  • Yes
  • No

Question 35

Question
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. Select and Place: Answer Area: Requirement || feature Enable developers to write the functions by using the Rust language. || [blank_start][Option 1][blank_end] Declaratively connect to an Azure Blob Storage account || [blank_start][Option 2][blank_end]
Answer
  • Custom handler
  • Trigger
  • Extension bundle
  • Runtime
  • Policy
  • Hosting plan
Show full summary Hide full summary

Similar

Set 2 - Parte 2 - AZ-204
Eduardo Zelaya
Set 3 - Part 1 - AZ-204
Eduardo Zelaya
Set 3 - Part 2 - AZ-204
Eduardo Zelaya
LOGARITHMS
pelumi opabisi
Business Studies GCSE
phil.ianson666
ExamTime Quick Guide to Getting Started
Andrea Leyden
Key Biology Definitions/Terms
jane zulu
Teaching Using GoConqr's Tools
Micheal Heffernan
What You Can Do Using GoConqr
Micheal Heffernan
1PR101 2.test - Část 18.
Nikola Truong
Unit 1.1 Systems Architecture
Mathew Wheatley