AZ-204 Practice Exam — AZ-204:Azure Developer Associate

1. The question bank is cloud-based and updates automatically, with no need for re-acquisition.

2. Available in Chinese and English. It supports online practice, mock exams and PDF downloads.

3. You can practice questions via mini-program or desktop web page. The service is valid for one year.

4. Activation codes can be purchased directly or from our official Tmall flagship store.

5. For inquiries, please contact customer service via WeChat, WhatsApp or Line.

6. Drag-and-drop, hotspot and dropdown questions are currently under development.

Exam information

AZ-204: Azure Developer Associate

- Exam Overview: Targeted at cloud developers, this exam validates the ability to design, build, test, and maintain cloud applications using Azure services.

- Key Specifications:

 - Exam Duration: 120 minutes

 - Number of Questions: 40-60 (Including code analysis and scenario design questions)

 - Total Score / Passing Score: 1000 / 700

 - Exam Fee: Approximately $165 USD

 - Supported Languages: Simplified Chinese, English, etc.

 - Official Registration Link: https://learn.microsoft.com/zh-cn/credentials/certifications/exams/az-204/

- Core Topics:

 - Azure application development (25-30%)

 - Implementing Azure connected services and storage (20-25%)

 - Implementing Azure security and monitoring (20-25%)

 - Troubleshooting and performance optimization (15-20%)

Sample questions

AZ-204 · Q1
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 ResourceManager template.You need to move VM1 to Host2.What should you do?
  • A.
    From the Update management blade, click Enable.
  • B.
    From the Overview blade, move VM1 to a different subscription.
  • C.
    From the Redeploy blade, click Redeploy.
  • D.
    From the Profile blade, modify the usage location.

Answer: C

The scenario requires relocating an Azure virtual machine from one underlying Hyper-V host node in the Azure datacenter (Host1) to a different Hyper-V host node (Host2). The Azure VM redeploy feature is purpose-built for this exact use case: when you trigger a redeploy operation, Azure gracefully shuts down the VM, deallocates it from its current host, moves it to a new healthy host node in the same Azure region, and restarts the VM. This directly meets the stated requirement, and aligns with the AZ-204 domain of implementing and managing Azure IaaS compute resources. Option Analysis: A. This option is incorrect. The Update Management blade is part of Azure Automation, and is used exclusively to manage operating system patch deployment, compliance reporting, and update scheduling for VMs. It has no functionality related to moving VMs between underlying host hardware nodes. B. This option is incorrect. Moving a VM to a different subscription only changes the management and billing scope of the VM resource, it does not alter the physical placement of the VM on underlying Hyper-V host infrastructure. The VM will remain on Host1 after a subscription move, so this does not meet the requirement. C. This option is correct. The Redeploy operation explicitly moves the target VM to a new underlying Hyper-V host node in the Azure datacenter, which directly fulfills the requirement to move VM1 from Host1 to Host2. This action is a standard supported VM management operation in Azure. D. This option is incorrect. The usage location is an Azure Active Directory or resource identity property used for compliance checks and to validate service availability for a given geography. Modifying this property has no impact on the host placement of a virtual machine. Key Concepts: 1. Azure VM Redeploy Operation: This is a native Azure compute management operation that reallocates a VM to a new healthy underlying host node, used to resolve host-related performance issues, connectivity faults, or to move VMs off decommissioning hosts as required in this scenario. This is a core IaaS compute management concept tested in AZ-204. 2. Azure Resource Movement Scopes: AZ-204 tests understanding of the difference between management-plane resource moves (moving resources between resource groups or subscriptions, which do not alter infrastructure placement) and infrastructure-plane moves (such as redeploy, which changes the underlying host placement of a VM). 3. Azure VM Host Architecture: Azure virtual machines run on managed Hyper-V host nodes in Azure regional datacenters. By default, Azure manages host placement for VMs, but user-triggered actions like redeploy allow manual initiation of host relocation when required. References: Redeploy a Windows virtual machine to a new Azure node, https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/redeploy-to-new-node-windows AZ-204: Develop for Azure compute solutions, https://learn.microsoft.com/en-us/certifications/resources/study-guides/az-204#develop-for-azure-compute-solutions
AZ-204 · Q2
Topic 1 Question #2 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: " target="_blank" rel="nofollow noopener">https://www.examtopics.com/assets/media/exam-media/04273/0000300001.jpg">
  • A.
    错误
  • B.
    正确

Answer: B

" target="_blank" rel="nofollow noopener">https://www.examtopics.com/assets/media/exam-media/04273/0000400001.jpg">
AZ-204 · Q3
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?
  • A.
    Yes
  • B.
    No

Answer: A

The goal of the scenario is to deploy a containerized application packaged as a Kubernetes YAML manifest to an existing Azure Kubernetes Service (AKS) cluster. To interact with an AKS cluster from a local device, users need valid cluster access credentials and the kubectl command-line tool, which is used to manage Kubernetes resources. The Azure CLI provides native integration for AKS access: when installed on an Azure AD-joined device, users can authenticate to their Azure tenant using their existing Azure AD identity (which has permissions to manage the AKS cluster per the scenario context), retrieve the cluster's kubeconfig file with the az aks get-credentials command, and then run kubectl commands against the cluster. The kubectl apply -f myapp.yaml command is the standard, supported declarative command to create or update all resources defined in the myapp.yaml manifest file on the target Kubernetes cluster, including the containerized MyApp workload. This solution follows the official recommended workflow for AKS application deployment, so it meets the stated goal. Option Analysis: A. Correct. The combination of Azure CLI for AKS authentication and credential retrieval, paired with the standard kubectl apply command for manifest deployment, is the native, supported approach to deploy YAML application manifests to AKS. The scenario specifies the device is Azure AD-joined, so Azure CLI can leverage the existing device identity to authenticate to Azure and access the AKS cluster without additional custom configuration, making the provided solution valid. B. Incorrect. There is no gap or limitation in the provided solution that prevents successful deployment of the MyApp manifest. Alternative deployment methods (such as using Azure Portal or Azure Resource Manager templates) are not required here, as the Azure CLI and kubectl workflow is fully supported and meets all requirements of the scenario. Key Concepts: 1. AKS Access Management: To run commands against an AKS cluster, users require a kubeconfig file that contains cluster access details and credentials. The Azure CLI az aks get-credentials command retrieves this kubeconfig and configures the local kubectl context, with built-in support for Azure AD authentication to enforce role-based access control for cluster operations. 2. Kubectl Declarative Deployment: The kubectl apply command is the standard declarative deployment method for Kubernetes. It compares the desired state defined in the provided YAML manifest with the current state of the cluster, and only creates, updates, or deletes resources as needed to align the cluster with the desired configuration, making it the recommended approach for application workload deployment to AKS. References: Tutorial: Deploy an application to Azure Kubernetes Service (AKS), https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-application Access an Azure Kubernetes Service (AKS) cluster
AZ-204 · Q4
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?
  • A.
    Yes
  • B.
    No

Answer: B

The goal of the scenario is to deploy a YAML application manifest to an existing Azure Kubernetes Service (AKS) cluster. The proposed solution only installs the Docker client and runs an outdated Azure CLI container image (version 0.10.17). This solution is insufficient for multiple reasons: first, the specified Azure CLI version is end-of-life and does not include modern AKS management commands required to retrieve cluster access credentials. Second, running the Azure CLI container alone does not install kubectl, the mandatory Kubernetes command-line tool required to apply YAML manifests to a Kubernetes cluster. Third, the solution does not include any steps to authenticate to the target AKS cluster, retrieve the cluster's kubeconfig file, or run the required kubectl apply command to deploy the manifest. None of the actions required to actually deploy the application to AKS are performed, so the solution does not meet the stated goal. Option Analysis: A. Option A is incorrect because the proposed solution does not enable or perform any of the required steps to deploy the YAML manifest to AKS. The outdated Azure CLI image lacks support for AKS credential retrieval, the solution does not provide the kubectl tool required for manifest deployment, and no actions to apply the manifest are executed. B. Option B is correct because the proposed solution fails to address the core requirements for AKS manifest deployment. It lacks the necessary tooling, uses an unsupported Azure CLI version, and does not include any of the authentication or deployment steps needed to deploy MyApp to the AKS cluster. Key Concepts: 1. AKS Deployment Tooling Requirements: Deploying workloads to AKS requires both an authenticated Azure CLI (to retrieve cluster access credentials) and the kubectl Kubernetes command-line client (to apply YAML manifests to the cluster). 2. Azure CLI Version Support for AKS: Azure CLI versions prior to 2.0.81 do not support many core AKS operations including the az aks get-credentials command used to fetch cluster access configuration, making the 0.10.17 version specified unsuitable for AKS management. 3. Kubernetes Manifest Deployment Workflow: The standard method to deploy a YAML manifest to a Kubernetes cluster is the kubectl apply -f command, which must be run against an authenticated cluster context to successfully deploy workloads. References: Tutorial: Deploy an application in Azure Kubernetes Service (AKS), https://learn.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-application Install Kubernetes command-line tool (kubectl) for AKS
AZ-204 · Q5
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?
  • A.
    Logic Apps
  • B.
    WebJobs
  • C.
    Flow
  • D.
    Functions

Answer: B

This question assesses knowledge of Azure App Service background processing features, a core domain area for the AZ-204 certification. The scenario explicitly states you are using the WebJobs SDK to build a triggered App Service background task associated with the existing WebApp1, which invokes code automatically when new queue data arrives. WebJobs are purpose-built for this exact use case: they run as background processes within the same App Service environment as their associated web app, natively integrate with the WebJobs SDK, and support queue triggers that eliminate the need for custom polling logic to process new queue items. This aligns perfectly with all requirements stated in the scenario. Option Analysis: A. Incorrect. Azure Logic Apps is a low-code, no-code integration service designed for building cross-service workflow automations, not a developer-focused App Service background task built with the WebJobs SDK. It is not tied to the WebApp1 App Service instance and does not match the scenario requirements. B. Correct. WebJobs are a native feature of Azure App Service that enable background code execution alongside web apps, APIs, or mobile apps. The WebJobs SDK is designed exclusively for building WebJobs, with out-of-the-box support for queue triggers that automatically run functions when new items are added to Azure Queue Storage, exactly matching the scenario’s requirements. C. Incorrect. Power Automate (formerly Microsoft Flow) is a business user-focused low-code workflow tool, not a developer tool for building App Service background tasks with the WebJobs SDK. It is unsuitable for the described use case. D. Incorrect. While Azure Functions is built on the WebJobs SDK and supports queue triggers, the scenario explicitly specifies the task is an App Service background task associated directly with WebApp1, not a standalone Azure Functions resource. WebJobs are the correct service for background tasks tightly coupled to an existing App Service web app, as described. Key Concepts: 1. Azure App Service WebJobs: A feature of Azure App Service that allows running background tasks in the same App Service plan as a hosted web application, with no additional cost. WebJobs support both continuous execution and triggered execution (event-driven or on-demand), and are developed using the WebJobs SDK for simplified event handling. 2. WebJobs SDK Triggers and Bindings: The WebJobs SDK provides pre-built triggers and bindings for common Azure services, including Queue Storage, Blob Storage, and Service Bus, removing the need for developers to write custom polling or integration code for event-driven background tasks. 3. WebJobs vs Azure Functions: Azure Functions is a standalone serverless compute service built on the WebJobs SDK, while WebJobs are tightly integrated with an existing App Service instance. WebJobs are the preferred choice for background tasks that need to run in the same context as an existing App Service web application. References: Run background tasks with WebJobs in Azure App Service, https://learn.microsoft.com/en-us/azure/app-service/webjobs-create Develop WebJobs using the WebJobs SDK, https://learn.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to

FAQ

How many practice questions are available for AZ-204?

This question bank includes 487 AZ-204 practice questions covering single and multiple choice, each with answers and explanations.

Are AZ-204 practice questions available in Chinese and English?

Yes, AZ-204 practice questions are provided in both Chinese and English.

Can I try AZ-204 practice questions for free?

Yes. Free sample questions are available on this page, and the full question bank is available after signing up on Zhangxuetu.