Font size
WorksheetsAZ204 quiz 2
Total questions: 40
Worksheet time: 1hrs 20mins
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 ResourceManager template.You need to move VM1 to Host2.What should you do?
From the Update management blade, click Enable.
From the Overview blade, move VM1 to a different subscription.
From the Redeploy blade, click Redeploy.
From the Profile blade, modify the usage location.
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? Answer by dragging the correct option from the list to the answer area.(DRAG AND DROP WONT WORK CHOOSE ANSWER BELOW)
1 and 4
2 and 3
3 and 5
1 and 6
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
No
our 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?
Yes
No
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?
Logic Apps
WebJobs
Flow
Functions
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?
10
30
Min Value
Max Value
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?
10
20
30
40
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:
1 and 3
2 and 5
3 and 5
3 and 4
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 ActiveDirectory (AAD).What should you do on the e-Commerce Web App?
Run the az keyvault secret command.
Enable Azure AD Connect.
Enable Managed Service Identity (MSI).
Create an Azure AD service principal.
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.)
EnabledForDeployment
EnablePurgeProtection
EnabledForTemplateDeployment
EnableSoftDelete
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? To answer, select the appropriate settings in the answer area.NOTE: Each correct selection is worth one point.
2,3,5
1,2,3
1,3,5
2,3,4
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?
Azure AD token.
Azure Multi-Factor authentication.
Active Directory integrated authentication.
OATH software tokens.
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 Add-AzKeyVaultKey cmdlet.
Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI.
Implement virtual network service endpoints for Azure Key Vault.
Run the az keyvault update --enable-soft-delete false CLI.
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.NOTE: Each correct selection is worth one point.Hot Area:
1.window size
1.CPU Usage
2.evaluation frequency
2.Percentage CPU
1.window size
1.avg Percentage CPU
3.auto mitigate
1.CPU Usage
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
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 Azure Redis Cache in your design.Does the solution meet the goal?
Yes
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?
Yes
No
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?
Enable autoscaling on the Web App.
Switch to the Premium App Service tier plan.
Switch to the Standard App Service tier plan.
Switch to the Azure App Services consumption 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 Activity log signal type.
The Application Log signal type.
The Metric signal type.
The Audit Log signal type.
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 SearchMode property of the SearchParameters class.
Configure the QueryType property of the SearchParameters class.
Configure the Facets property of the SearchParameters class.
Configure the Filter property of the SearchParameters class.
You are a developer at your company.You need to update the definitions for an existing Logic App.What should you use?
the Enterprise Integration Pack (EIP)
the Logic App Code View
the API Connections
the Logic Apps Designer
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?
Yes
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 HTTP(s) endpoint.Does the solution meet the goal?
Yes
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 HTTP(s) endpoint.Does the solution meet the goal?
Yes
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?
Yes
No
You are a developer at your company.You need to edit the workflows for an existing Logic App.What should you use?
the Enterprise Integration Pack (EIP)
the Logic App Code View
the API Connections
the Logic Apps Designer
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.
Box 1. =1
Box2.=2
Box3.=5
Box 1. =3
Box2.=2
Box3.=5
Box 1. =4
Box2.=2
Box3.=3
Box 1. =2
Box2.=4
Box3.=5
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 fromAzure 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 a new Azure Event Grid subscription for all authentication events. Use the subscription to process sign-out events.
Create a separate Azure Event Grid handler for sign-in and sign-out events.
Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
Add a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter.
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.NOTE: Each correct selection is worth one point.
Premium SSD
Geo-redundant storage(GRS)
Standard SSD
Zone-redundant storage(ZRS)
Standard HDD
Locally-redundant storage(LRS)
Premium SSD
Zone-redundant storage(ZRS)
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.NOTE: Each correct selection is worth one point.Hot Area:
2
Standard
4
Isolated
8
Premium
16
Consumption
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? 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.Select and Place:
Box 1: Deployment
Box 2: ScaledObject
Box 3: Secret
Box 1: Trigger Authentication
Box 2: ScaledObject
Box 3: Deployment
Box 1: Deployment
Box 2: Trigger Authentication
Box 3: ScaledObject
Box 1: Deployment
Box 2: ScaledObject
Box 3: TriggerAuthentication
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You develop a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in 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?
Yes
No
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.You need to ensure that scripts run and resources are available before a swap operation occurs.Solution: 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?
Yes
No
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You develop and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot.You need to ensure that scripts run and resources are available before a swap operation occurs.Solution: Enable auto swap for the Testing slot. Deploy the app to the Testing slot.Does the solution meet the goal?
Yes
No
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.
HTTP message body
Unicode
HTTP request header
Base64
Client cookie
URL
URL query string
HTML
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 aDocker 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.
Step 1: az web create
Step 2: az appservice plan create
Step 3: az group create
Step 1: az group update
Step 2: az appservice plan create
Step 3: az webapp create
Step 1: az group create
Step 2: az appservice plan create
Step 3: az webapp create
Step 1: az webapp create
Step 2: az appservice plan create
Step 3: az group create
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 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.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.The app continues to time out after four minutes. The app must process the blob data.You need to ensure the app does not time out and processes the blob data.Solution: Use the Durable Function async pattern to process the blob data.Does the solution meet the goal?
Yes
No
You are developing an application that uses Azure Blob storage.The application must read the transaction logs of all the changes that occur to the blobs and the blob metadata in the storage account for auditing purposes. The changes must be in the order in which they occurred, include only create, update, delete, and copy operations and be retained for compliance reasons.You need to process the transaction logs asynchronously.What should you do?
Process all Azure Blob storage events by using Azure Event Grid with a subscriber Azure Function app.
Enable the change feed on the storage account and process all changes for available events.
Process all Azure Storage Analytics logs for successful blob events.
Use the Azure Monitor HTTP Data Collector API and scan the request body for successful blob events.
You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container.Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when theFunction App is triggered.You need to configure the Function App.What should you do?
Use an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.
Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.
Use a Consumption plan. Configure the Function App to use a Timer trigger.
Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.
Use a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger
