Developing Solutions for Microsoft Azure

Here you have the best Microsoft AZ-204 practice exam questions

  • You have 397 total questions to study from
  • Each page has 5 questions, making a total of 80 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on November 19, 2024
Question 1 of 397

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?

    Correct Answer: C

    To move a VM within the Azure infrastructure, you would use the Redeploy option. This action moves the VM to a new physical node in the Azure data center while retaining all your settings and configurations. This process ensures minimal downtime and allows you to maintain all associated resources without any additional configuration. The other options provided do not align with the task of moving the VM to a different host. Therefore, the correct choice is to use the Redeploy blade and click Redeploy.

Question 2 of 397

DRAG DROP -

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.

Select and Place:

    Correct Answer:

Question 3 of 397

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?

    Correct Answer: B

    The solution of installing only the Azure CLI on the device and running the 'kubectl apply -f myapp.yaml' command does not fully meet the goal. In addition to installing Azure CLI, you need to install 'kubectl', the Kubernetes command-line tool, to run 'kubectl apply'. Therefore, simply installing Azure CLI is insufficient. You must also ensure that 'kubectl' is installed and properly configured to interact with the Azure Kubernetes Service (AKS) cluster.

Question 4 of 397

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?

    Correct Answer: B

    To deploy a YAML manifest file to an Azure Kubernetes Service (AKS) cluster, you need to use the 'kubectl apply' command. The provided solution suggests using the 'docker run -it microsoft/azure-cli:0.10.17' command, which is related to Docker and not Kubernetes. Therefore, this approach does not meet the requirements for deploying the application to AKS.

Question 5 of 397

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?

    Correct Answer: B

    The service you should use is WebJobs. WebJobs is a feature of Azure App Service that allows you to run background tasks and is designed specifically to integrate with the WebJobs SDK. This makes it perfect for triggered tasks that need to process data from a queue, aligning with the described requirements of automatically invoking a function in the code whenever new data is received in a queue.