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

228 free questions with answers and explanations.

Practice test
  1. 201.A global e-commerce company uses an Azure App Service web application to handle customer orders. During peak sales events, traffic can surge dramatically, requiring the application to scale out rapidly to hundreds of instances. The company needs to ensure that the application can handle these sudden spikes in demand without manual intervention and then scale back down to minimize costs during off-peak hours. Which Azure App Service scaling feature is MOST suitable for this requirement?Develop Azure compute solutions
  2. 202.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
  3. 203.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
  4. 204.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
  5. 205.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
  6. 206.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
  7. 207.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
  8. 208.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
  9. 209.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
  10. 210.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
  11. 211.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
  12. 212.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
  13. 213.A development team is building a new microservices application that will run in Azure. Each microservice is packaged as a Docker container. The team needs a solution that allows them to quickly deploy and run individual containers without managing underlying virtual machines or a full Kubernetes cluster. The solution should also provide per-second billing and be suitable for burstable, short-lived workloads. Which Azure compute service should they choose?Develop Azure compute solutions
  14. 214.A company is developing a new application that will process a high volume of messages from an Azure Service Bus queue. The processing involves complex business logic, and each message must be processed reliably, even if there are transient errors. The application needs to be able to scale out automatically based on the queue length and process messages concurrently. Which Azure Functions trigger and hosting plan combination is MOST appropriate for this scenario?Develop Azure compute solutions
  15. 215.A developer is creating an Azure Function that needs to access a secret (e.g., a database connection string) securely. The secret should not be hardcoded in the application code or stored directly in the Function App settings. The solution must follow best practices for secret management and integrate seamlessly with the Azure Function environment. Which Azure service should be used to store and retrieve the secret?Develop Azure compute solutions
  16. 216.A software company is developing a new cloud-native application that needs to run containerized microservices. The application experiences unpredictable traffic patterns with frequent scaling to zero during idle periods to minimize costs. The team wants to avoid managing Kubernetes clusters directly but requires advanced traffic management capabilities, such as traffic splitting for A/B testing and revision management for safe deployments. Which Azure compute solution is the MOST suitable for this scenario?Develop Azure compute solutions
  17. 217.A developer needs to deploy a legacy ASP.NET web application to Azure. The application requires specific older versions of .NET Framework components and has some dependencies on Windows-specific features. The company wants to migrate this application with minimal code changes while ensuring high availability and scalability. Which Azure compute solution should the developer choose?Develop Azure compute solutions
  18. 218.A manufacturing company uses an Azure App Service web application to display real-time production metrics. During peak shifts, the application experiences high load, requiring increased compute capacity. The company wants to automatically adjust the number of instances based on CPU utilization to ensure responsiveness and optimize costs. Which App Service feature should be configured?Develop Azure compute solutions
  19. 219.A company is developing an Azure Function that needs to periodically fetch data from an external API, transform it, and store it in Azure Cosmos DB. The function should run automatically every hour without requiring any explicit HTTP requests. Which trigger type is most suitable for this Azure Function?Develop Azure compute solutions
  20. 220.A manufacturing company uses an Azure App Service web application to display real-time production line data. During peak shifts, the application experiences high load, and it must scale out to ensure responsiveness. During off-peak hours, the application should scale in to reduce costs. The company wants to implement a robust autoscaling solution that adjusts the number of instances based on the average CPU utilization of the existing instances. What is the PRIMARY metric that should be configured for the autoscaling rule?Develop Azure compute solutions
  21. 221.A media company uses Azure Container Instances (ACI) to run a series of short-lived, burstable containerized tasks for video transcoding. Each task processes a segment of a video, and the number of tasks varies significantly throughout the day. The company wants to optimize costs by only paying for the exact compute resources consumed during the container's execution, without managing any underlying virtual machines or orchestration. Which ACI billing model is most relevant for this scenario?Develop Azure compute solutions
  22. 222.A company is deploying a new web application that requires a highly scalable and fault-tolerant backend. The application processes user-uploaded images, which are then stored in Azure Blob Storage. The image processing is a CPU-intensive task and can take varying amounts of time. The company wants to minimize operational overhead and only pay for compute resources when the processing is actively running. Which Azure compute solution is most appropriate for the image processing workload?Develop Azure compute solutions
  23. 223.A company is redesigning its backend infrastructure to use a message-driven architecture. They are using Azure Service Bus queues for reliable message delivery. A critical requirement is to prevent poison messages from indefinitely blocking the queue or being repeatedly processed, which could lead to resource exhaustion or data corruption. What Azure Service Bus feature should be configured to handle these problematic messages effectively?Develop Azure compute solutions
  24. 224.A company is deploying a new containerized application to Azure Kubernetes Service (AKS). The application requires persistent storage that can be shared across multiple pods and dynamically provisioned as needed. The storage solution must be highly available and resilient to node failures. Which type of Azure storage should be used for this requirement?Develop Azure compute solutions
  25. 225.A developer is configuring an Azure Function with an HTTP trigger. The function needs to accept JSON payloads up to 10 MB in size. The default timeout for HTTP-triggered functions in a Consumption plan is 5 minutes. The processing logic for some payloads might take up to 7 minutes due to complex calculations. Which configuration change is MOST critical to ensure the function completes successfully?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 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
  28. 228.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