πŸ”

AZ-204 β€” all questions

139 practice questions with answers and explanations.

Topic 1 Β· Question 1

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?

  • AFrom the Update management blade, click Enable.
  • BFrom the Overview blade, move VM1 to a different subscription.
  • CFrom the Redeploy blade, click Redeploy. (correct answer)
  • DFrom the Profile blade, modify the usage location.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: From the Redeploy blade, click Redeploy.

Topic 1 Β· Question 3

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?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 1 Β· Question 4

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?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 1 Β· Question 5

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?

  • ALogic Apps
  • BWebJobs (correct answer)
  • CFlow
  • DFunctions
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: WebJobs.

Topic 1 Β· Question 6

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?

  • A10
  • B30
  • CMin Value
  • DMax Value (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Max Value.

Topic 1 Β· Question 7

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?

  • A10
  • B20 (correct answer)
  • C30
  • D40
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: 20.

Topic 1 Β· Question 9

This question requires that you evaluate the underlined text to determine if it is correct. 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.

  • ANo change required
  • Bmongorestore (correct answer)
  • CAzure Storage Explorer
  • DAzCopy
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: mongorestore.

Topic 1 Β· Question 10

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?

  • ARun the az keyvault secret command.
  • BEnable Azure AD Connect.
  • CEnable Managed Service Identity (MSI). (correct answer)
  • DCreate an Azure AD service principal.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Enable Managed Service Identity (MSI).

Topic 1 Β· Question 11

This question requires that you evaluate the underlined text to determine if it is correct. 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.

  • ANo change required. (correct answer)
  • Ba secret
  • Ca login hint
  • Da client ID
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: No change required.

Topic 1 Β· Question 12 Β· Select all that apply

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.)

  • AEnabledForDeployment
  • BEnablePurgeProtection (correct answer)
  • CEnabledForTemplateDeployment
  • DEnableSoftDelete (correct answer)
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: EnablePurgeProtection Option D: EnableSoftDelete.

Topic 1 Β· Question 14

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?

  • AAzure AD token.
  • BAzure Multi-Factor authentication.
  • CActive Directory integrated authentication. (correct answer)
  • DOATH software tokens.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Active Directory integrated authentication.

Topic 1 Β· Question 15

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?

  • ARun the Add-AzKeyVaultKey cmdlet.
  • BRun the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI. (correct answer)
  • CImplement virtual network service endpoints for Azure Key Vault.
  • DRun the az keyvault update --enable-soft-delete false CLI.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Run the az keyvault update --enable-soft-delete true --enable-purge-protection true CLI.

Topic 1 Β· Question 17

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. 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?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 18

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. 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?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 19

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. 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?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No By spanning multiple Availability Zones / adding redundancy, this option provides the high availability and resilience required.

Topic 1 Β· Question 20

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?

  • AEnable autoscaling on the Web App.
  • BSwitch to the Premium App Service tier plan.
  • CSwitch to the Standard App Service tier plan. (correct answer)
  • DSwitch to the Azure App Services consumption plan.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Switch to the Standard App Service tier plan.

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 21

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?

  • AThe Activity log signal type.
  • BThe Application Log signal type.
  • CThe Metric signal type. (correct answer)
  • DThe Audit Log signal type.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The Metric signal type.

Topic 1 Β· Question 22

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?

  • AConfigure the SearchMode property of the SearchParameters class.
  • BConfigure the QueryType property of the SearchParameters class. (correct answer)
  • CConfigure the Facets property of the SearchParameters class.
  • DConfigure the Filter property of the SearchParameters class.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Configure the QueryType property of the SearchParameters class.

Topic 1 Β· Question 23

You are a developer at your company. You need to update the definitions for an existing Logic App. What should you use?

  • Athe Enterprise Integration Pack (EIP)
  • Bthe Logic App Code View (correct answer)
  • Cthe API Connections
  • Dthe Logic Apps Designer
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: the Logic App Code View.

Topic 1 Β· Question 24

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. 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?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Showing questions 1–20 of 139 Β· Page 1 of 7