Microsoft Certified: Azure Developer Associate (AZ-204) practice questions

228 free questions with answers and explanations.

Practice test
  1. 201.A global media company is deploying a new video streaming platform that requires a highly available and scalable backend. The platform consists of several microservices, some of which require GPU acceleration for video transcoding, while others are standard web APIs. The company needs to manage container orchestration, ensure high availability, and optimize cost by using different types of compute resources within the same cluster. Which Azure compute solution is MOST appropriate for this scenario?Develop Azure compute solutions
  2. 202.A company is developing an Azure Function that needs to process a high volume of messages from an Azure Service Bus queue. The function must guarantee message delivery, support concurrent execution of up to 100 instances, and process messages efficiently with minimal latency. It also requires integration with a Virtual Network (VNet) for secure access to other Azure resources. Which Azure Function plan is the MOST appropriate for this scenario?Develop Azure compute solutions
  3. 203.A financial services company is migrating a legacy ASP.NET application to Azure. The application currently runs on Windows Server, requires specific IIS configurations, and has several dependencies on COM+ components. The company needs to maintain maximum control over the operating system and installed software to ensure compatibility. Which Azure compute solution is MOST suitable for this migration?Develop Azure compute solutions
  4. 204.A company is migrating a critical on-premises application to Azure. The application consists of several interconnected microservices, each packaged as a Docker container. The company requires robust container orchestration, automatic scaling based on demand, self-healing capabilities, and efficient resource utilization across a cluster of nodes. Which Azure compute solution is the most appropriate for this scenario?Develop Azure compute solutions
  5. 205.A company is migrating an existing ASP.NET web application to Azure. The application requires a Windows operating system, specific IIS configurations, and a custom global assembly cache (GAC) entry. The development team needs full control over the underlying server environment to install these dependencies. Which Azure compute solution should they choose?Develop Azure compute solutions
  6. 206.A global company is deploying a critical web application to Azure App Service. The application must be highly available and resilient to regional outages. It also needs to serve users with the lowest possible latency by directing them to the closest available instance. Which Azure service should be used in conjunction with Azure App Service to meet these requirements?Develop Azure compute solutions
  7. 207.A company is deploying a new web application to Azure App Service. The application is stateless and needs to be highly available across multiple geographical regions to minimize latency for global users and ensure business continuity in case of a regional outage. Which Azure service should be used in conjunction with Azure App Service to achieve global distribution and traffic routing capabilities?Develop Azure compute solutions
  8. 208.A company is developing a new serverless API that will be invoked by a mobile application. The API needs to handle authentication using Azure Active Directory (AAD) and integrate seamlessly with other Azure services like Azure Cosmos DB. The development team prefers C# and wants to use an HTTP trigger for the API. Which Azure compute solution should they choose?Develop Azure compute solutions
  9. 209.A software company is developing a new cloud-native application that needs to run containerized microservices. The company wants to minimize operational overhead and avoid managing underlying Kubernetes infrastructure directly, but still requires the ability to define scaling rules, traffic splitting, and integrate with Dapr (Distributed Application Runtime) for advanced microservices patterns. Which Azure compute solution should they choose?Develop Azure compute solutions
  10. 210.A developer is creating an Azure Function that needs to store and retrieve sensitive configuration settings, such as API keys and database connection strings, securely. The application also requires these secrets to be rotated periodically without redeploying the function. Which Azure service should the developer integrate for managing these secrets?Develop Azure compute solutions
  11. 211.A company is migrating a critical on-premises application to Azure. The application consists of several interconnected components, including a legacy COM+ component, a .NET console application for batch processing, and a RESTful API. The company requires full control over the operating system, specific network configurations, and the ability to install custom software dependencies for the COM+ component. Which Azure compute solution is the MOST appropriate for hosting the legacy COM+ component?Develop Azure compute solutions
  12. 212.A developer needs to deploy a Python-based web API to Azure. The API is stateless and receives frequent HTTP requests. The company prefers a Platform-as-a-Service (PaaS) offering that minimizes operational overhead for server management and patching, while providing built-in scaling and integration with other Azure services. Which Azure compute solution is MOST appropriate?Develop Azure compute solutions
  13. 213.A global e-commerce company is experiencing unpredictable traffic spikes for its main product catalog website during flash sales and holiday seasons. The website is hosted on Azure App Service. The company needs to ensure that the website can automatically scale out to handle these extreme loads without manual intervention and then scale back in when traffic subsides, optimizing costs. Which App Service feature should be configured to meet these requirements?Develop Azure compute solutions
  14. 214.A company is deploying a new application that uses a custom-built, highly specialized operating system. The application requires direct access to network interfaces, specific kernel modules, and low-level hardware virtualization features. The company needs full control over the operating system and the underlying infrastructure. Which Azure compute solution should the company choose?Develop Azure compute solutions
  15. 215.A development team is building a new microservices application composed of several independent services. Each service needs to be packaged as a Docker container and deployed to Azure. The team requires a solution that offers high density, efficient resource utilization, and advanced features like self-healing, rolling updates, and service discovery. Which Azure compute solution should the team choose?Develop Azure compute solutions
  16. 216.A developer is designing a batch processing solution that needs to execute a complex computational task on a large dataset. The task can be broken down into many independent sub-tasks. The company wants to leverage cost-effective, high-performance computing resources that can scale out massively and automatically shut down when the processing is complete. Manual server management should be avoided as much as possible. Which Azure compute solution is best suited for this scenario?Develop Azure compute solutions
  17. 217.A company is designing a new microservices application that will be deployed to Azure. Each microservice is stateless and needs to scale independently based on demand. The team wants to use a serverless container platform that handles infrastructure management, integrates with HTTP-based event sources, and supports custom domains. Which Azure compute solution meets these requirements?Develop Azure compute solutions
  18. 218.A company is developing a high-performance computing (HPC) application that requires running a large number of independent tasks in parallel. Each task involves complex scientific calculations and can take several hours to complete. The solution needs to dynamically scale compute resources based on the workload and integrate with a job scheduler. Which Azure compute solution is best suited for this scenario?Develop Azure compute solutions
  19. 219.A development team is building a new application that will use Azure Functions. They need to ensure that sensitive configuration information, such as API keys and database connection strings, is stored securely and accessed by the functions at runtime without being hardcoded or exposed in source control. Which Azure service should they integrate with their Azure Functions for this purpose?Develop Azure compute solutions
  20. 220.A financial institution is deploying a new service to Azure Kubernetes Service (AKS). The service needs to store sensitive customer data persistently. The data must be highly available, resilient to node failures, and accessible by multiple pods concurrently. Which storage solution should be integrated with AKS to meet these requirements?Develop Azure compute solutions
  21. 221.A development team is building a new application that uses Azure Functions. They need to ensure that the secrets (e.g., API keys, database connection strings) required by the functions are stored securely and are only accessible by authorized functions. The solution must also allow for easy rotation of these secrets without requiring code changes or redeployments. Which Azure service should be used to manage these secrets?Develop Azure compute solutions
  22. 222.A company is developing a new microservices application. Each microservice is packaged as a Docker container. The application needs to be deployed rapidly to Azure with minimal infrastructure management overhead. The microservices are relatively independent but need to communicate with each other. The company wants to start with a simple, cost-effective solution for running containers without the complexity of a full orchestrator like Kubernetes, but still needs some level of container group management. Which Azure compute solution is most suitable?Develop Azure compute solutions
  23. 223.A company is redesigning its backend infrastructure to use a message-driven architecture. A critical component is an Azure Function that processes messages from an Azure Service Bus queue. The function is occasionally failing due to transient network issues or temporary unavailability of a downstream service. The company needs to ensure that these messages are automatically retried a few times before being moved to a dead-letter queue for manual investigation. Which feature of Azure Functions or Service Bus should be configured?Develop Azure compute solutions
  24. 224.A company is developing an application that performs complex scientific simulations. Each simulation run is an independent, long-running task that requires significant compute resources (high CPU, large memory) and can take several hours to complete. The company needs to execute hundreds of these simulations concurrently, manage their execution, and distribute them across a pool of compute nodes. Which Azure compute solution is BEST suited for this high-performance computing (HPC) workload?Develop Azure compute solutions
  25. 225.A company is developing a new application with several microservices deployed to Azure Kubernetes Service (AKS). One of the microservices is a critical payment processing service that requires enhanced network isolation and dedicated compute resources to meet strict compliance requirements. The company wants to ensure that this specific microservice runs on dedicated nodes within the AKS cluster, separate from other less sensitive workloads. Which AKS feature should be used to achieve this isolation?Develop Azure compute solutions
  26. 226.A company is developing a new serverless application that uses Azure Functions. They need to ensure that when a new JSON file is uploaded to an Azure Blob Storage container, a specific Azure Function is triggered to process its content. This trigger should be highly reliable and efficient, minimizing latency. Which Azure Function trigger should they configure?Connect to and consume Azure services and third-party services
  27. 227.A development team is deploying a new web application to Azure App Service. The application utilizes WebSockets for real-time communication and requires session affinity to maintain consistent connections between clients and the correct backend instance. Which Azure App Service configuration should be enabled to meet these requirements?Develop Azure compute solutions
  28. 228.A development team is building a new microservices application. They need to implement a mechanism to reliably send messages between different services, ensuring that messages are delivered in order within a logical grouping and processed by only one consumer at a time. Which Azure messaging service feature should they use?Connect to and consume Azure services and third-party services