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

228 free questions with answers and explanations.

Practice test
  1. 51.A developer is designing a system where sensitive customer documents need to be stored in Azure Blob Storage. The company's compliance policy mandates that encryption keys for this data must be managed and controlled entirely by the company, not by Microsoft. Which encryption option should the developer implement for the Blob Storage account?Develop for Azure storage
  2. 52.A large-scale multiplayer online game uses Azure Cosmos DB to store player profiles, game states, and high scores. Player profiles and game states are updated frequently. The game experiences peak loads with millions of concurrent players during events. The data needs to be globally distributed for low-latency access from any region. The development team needs to programmatically manage the throughput (Request Units per second) for specific containers to handle fluctuating demand and optimize costs. Which Cosmos DB feature allows for this dynamic throughput management?Develop for Azure storage
  3. 53.A financial application needs to store transaction details in Azure Cosmos DB. Each transaction has a unique TransactionId, a CustomerId, and a TransactionDate. Queries will frequently retrieve all transactions for a specific CustomerId, sometimes filtered by TransactionDate. Point reads by TransactionId are also common. To optimize for these query patterns, which partitioning strategy should be implemented?Develop for Azure storage
  4. 54.A developer needs to implement a solution to store configuration settings for a microservice. The settings are small, structured key-value pairs (e.g., `featureToggle: true`, `apiEndpoint: 'https://...'`). The solution requires high availability, strong consistency within a single region, and low cost for small data volumes. The data will be frequently read by the microservice instances.Develop for Azure storage
  5. 55.A developer is writing code to manage blobs in Azure Blob Storage. The application needs to list all blobs within a specific container that have a particular prefix and were modified after a certain date. Which method from the Azure Blob Storage client library for .NET should the developer use for the most efficient retrieval?Develop for Azure storage
  6. 56.A company is migrating an existing application to Azure. The application currently uses a shared file system to store configuration files and user-uploaded documents. These files need to be accessible from multiple virtual machines (VMs) simultaneously using standard file system protocols (SMB). Which Azure storage service should you recommend?Develop for Azure storage
  7. 57.A global e-commerce platform uses Azure Cosmos DB for its product catalog. The platform experiences high read volumes from users located worldwide. The development team needs to ensure that read operations are routed to the closest replica of the Cosmos DB account to minimize latency, while write operations are consistently directed to a single primary region.Develop for Azure storage
  8. 58.A manufacturing plant uses Azure Queue Storage to process messages from factory sensors. Currently, a single worker role processes these messages. A new requirement dictates that if a message fails to process due to a transient error, it should automatically become visible again after a short delay for retry, without immediately going back to the front of the queue, potentially blocking other messages. Which Queue Storage property should the developer configure to achieve this behavior?Develop for Azure storage
  9. 59.A company is building an IoT solution where millions of devices will send small data packets (telemetry) frequently. The data needs to be ingested into Azure for real-time processing and long-term storage in Data Lake. The solution must handle massive scale, allow multiple consumer groups to read the same data stream independently, and provide retention for historical analysis. Which Azure service should be used for the data ingestion layer?Connect to and consume Azure services and third-party services
  10. 60.A developer is creating an Azure Function that processes incoming messages from an Azure Service Bus Queue. To ensure that messages are not lost if the function encounters an error during processing, and can be retried later, the function needs to explicitly acknowledge successful processing. If the processing fails, the message should eventually be returned to the queue or moved to a dead-letter queue. Which message receiving mode should the Azure Function use?Connect to and consume Azure services and third-party services
  11. 61.A company is building an IoT solution where millions of devices will send small data packets (e.g., sensor readings, telemetry) every few seconds. The solution requires a highly scalable, low-latency data ingestion service that can handle a massive number of concurrent connections and allow multiple consumers to read the same data stream independently. Which Azure service should be used for data ingestion?Connect to and consume Azure services and third-party services
  12. 62.A company uses Azure Logic Apps to automate business processes. One critical Logic App needs to integrate with a third-party API that has strict rate limits of 10 requests per minute and a burst capacity of 15 requests for short periods. The Logic App often exceeds this limit, leading to failures. Which feature should be implemented to respect the third-party API's rate limits?Connect to and consume Azure services and third-party services
  13. 63.A manufacturing company uses Azure IoT Edge devices to collect sensor data from machinery on the factory floor. This data needs to be processed locally on the Edge devices to filter out noise and perform initial aggregation before being sent to the cloud for further analysis. Which component of Azure IoT Edge allows for custom logic to be deployed and executed directly on the Edge device?Connect to and consume Azure services and third-party services
  14. 64.A developer is creating an Azure Function that processes incoming messages from an Azure Service Bus Queue. The function needs to ensure that if processing fails, the message is returned to the queue for reprocessing. Additionally, if a message repeatedly fails, it should be moved to a separate location for manual inspection. Which Service Bus message processing mode and related feature should the developer configure?Connect to and consume Azure services and third-party services
  15. 65.A company is integrating a legacy on-premises application with a new Azure-based microservices architecture. The on-premises application can only communicate via HTTP/HTTPS and needs to reliably send messages to a specific Azure Service Bus topic. The messages must be processed by multiple microservices, each subscribing to different filters on the topic. Which Azure API Management policy should be used to ensure the messages are correctly routed to the Service Bus topic with the necessary headers, while also ensuring secure communication?Connect to and consume Azure services and third-party services
  16. 66.A company is building an e-commerce platform where customer orders need to be processed by a series of independent microservices. Each order should be processed exactly once, and the order of processing is critical for certain steps. If a microservice fails, the message should be redelivered. Which Azure Service Bus feature ensures reliable, ordered, and exactly-once processing for this scenario?Connect to and consume Azure services and third-party services
  17. 67.A company is redesigning its order processing system. They need to ensure that when a customer places an order, the inventory service, payment service, and shipping service all receive the order details. The services should operate independently, and the order details must be delivered to each service exactly once. Which Azure service is most appropriate for reliable, fan-out messaging to multiple independent subscribers?Connect to and consume Azure services and third-party services
  18. 68.A developer is building an API using Azure Functions. They need to expose this API securely to external partners and ensure that usage is monitored, and access is controlled via subscription keys. The solution should also allow for request throttling and caching. Which Azure service should be used to achieve these requirements?Connect to and consume Azure services and third-party services
  19. 69.A software company is building a new microservices application. They need a way to publish domain events (e.g., 'OrderCreated', 'ProductUpdated') efficiently and reliably to multiple interested consumers within the application, as well as potentially to external systems. The solution must support a publish-subscribe model and offer filtering capabilities for consumers. Which Azure service is most appropriate?Connect to and consume Azure services and third-party services
  20. 70.A company is migrating an existing on-premises application that sends messages to MSMQ (Microsoft Message Queuing) to Azure. The new solution requires a cloud-based messaging service that supports transactional send/receive operations across multiple operations to ensure atomicity and reliable delivery. Which Azure service should be used?Connect to and consume Azure services and third-party services
  21. 71.A company is developing an Azure Function App that processes images uploaded to Azure Blob Storage. The function needs to be triggered whenever a new image (JPG or PNG) is added to a specific container. The solution must minimize costs and ensure that the function is only active when new images arrive. Which trigger type should the Azure Function use?Connect to and consume Azure services and third-party services
  22. 72.A development team is building a new application that uses Azure API Management (APIM) to expose its backend APIs. They need to implement a policy that transforms the request body by adding a new property to the JSON payload before forwarding the request to the backend service. This new property contains an internal identifier that should not be exposed to external consumers. Which APIM policy should be used?Connect to and consume Azure services and third-party services
  23. 73.A healthcare provider is building a system to process patient medical records. Due to compliance regulations, all operations that modify a patient's record must be treated as a single, atomic unit of work. This means either all steps of the operation succeed, or none of them do, and the message should not be visible to other consumers during this process. The system uses Azure Service Bus for messaging. Which Service Bus feature ensures this transactional behavior for message processing?Connect to and consume Azure services and third-party services
  24. 74.A company is developing a new serverless application that needs to process high volumes of streaming data from thousands of IoT devices. The data needs to be ingested with very high throughput and low latency into Azure for real-time analytics. Which Azure service is best suited for this scenario?Connect to and consume Azure services and third-party services
  25. 75.A company is developing a serverless application that needs to execute a long-running, multi-step business process. This process involves calling external APIs, waiting for human approval, and then updating several databases. The entire workflow can take hours or even days to complete. Which Azure compute service is best suited for implementing this orchestration?Connect to and consume Azure services and third-party services
  26. 76.A company uses Azure Logic Apps to automate workflows. One Logic App needs to periodically check an external API for updates every 15 minutes. If the API call fails due to transient network issues, the Logic App should automatically retry the call a few times before failing. Which Logic App feature should be configured to handle these transient failures?Connect to and consume Azure services and third-party services
  27. 77.A developer is implementing a serverless function that needs to process messages from an Azure Service Bus Queue. The function must ensure that if processing fails due to a transient issue, the message is returned to the queue for a limited number of retries before being moved to a dead-letter queue. The message should also be invisible to other consumers while it's being processed. Which message receive mode and property configuration should the developer use?Connect to and consume Azure services and third-party services
  28. 78.A company is developing a system to monitor manufacturing equipment. Each piece of equipment sends telemetry data (e.g., temperature, pressure) every second. This data needs to be collected, stored efficiently, and made available for real-time dashboards and historical analysis. The solution must handle potential network intermittency from the devices. Which Azure service is best suited for reliable and high-volume ingestion from IoT devices?Connect to and consume Azure services and third-party services
  29. 79.A development team is building a new microservices application. They need to implement a mechanism to distribute events from various services to multiple independent consumers in a pub/sub model, ensuring reliable message delivery even if consumers are temporarily offline. Which Azure service should they use?Connect to and consume Azure services and third-party services
  30. 80.A company is building an IoT solution where millions of devices will send small data packets (telemetry) frequently. The data needs to be ingested at high velocity and then processed by multiple downstream analytics services. The solution must support massive scale and provide ordering guarantees within each device's data stream. Which Azure service is optimized for this scenario?Connect to and consume Azure services and third-party services
  31. 81.A company is building an API using Azure Functions and needs to expose it securely to external partners. The API requires custom authentication logic and should enforce usage quotas for different partners. Which Azure service should be used to manage and secure this Function App API?Connect to and consume Azure services and third-party services
  32. 82.A developer is designing an Azure Function App that needs to be triggered whenever a new file is uploaded to a specific Azure Blob Storage container. The function should process the file contents without significant delay. Which trigger binding should the developer use?Connect to and consume Azure services and third-party services
  33. 83.A company needs to implement a serverless solution that automatically resizes images uploaded to Azure Blob Storage. The resizing process can take varying amounts of time, and the solution must be cost-effective, scaling down to zero when idle. Which Azure service combination provides the most efficient and scalable solution?Connect to and consume Azure services and third-party services
  34. 84.A company is building an application that needs to respond to events from various Azure services (e.g., new file uploaded to Blob Storage, a resource created in Azure Resource Manager) and custom application events. The responses involve triggering Azure Functions or Logic Apps. The solution must be highly scalable, serverless, and allow for flexible routing of events to different handlers based on event type. Which Azure service should be used to manage these events?Connect to and consume Azure services and third-party services
  35. 85.A financial institution uses Azure API Management (APIM) to expose its APIs to partner applications. They need to ensure that the partner applications do not overwhelm the backend systems by making too many requests within a short period. Each partner application has a different agreed-upon request limit. Which APIM policy should be implemented?Connect to and consume Azure services and third-party services
  36. 86.A financial institution is developing a system where every transaction must be processed in the exact order it was initiated by a specific customer. Multiple customers can initiate transactions concurrently, but each customer's transactions must maintain strict sequential processing. Which Azure Service Bus feature enables this specific ordering requirement?Connect to and consume Azure services and third-party services
  37. 87.A company is integrating a legacy on-premises application with a new Azure-based microservice. The legacy application only supports SOAP-based web services, while the microservice exposes a RESTful API. To facilitate this integration, they need a solution that can transform SOAP requests into RESTful calls and vice-versa, apply security policies, and monitor API usage. Which Azure service should be used?Connect to and consume Azure services and third-party services
  38. 88.A company is building a serverless application that needs to perform CPU-intensive image processing tasks. These tasks can take several minutes to complete and should run on demand when an image is uploaded to Azure Blob Storage. However, the company wants to optimize costs by only paying for the compute time used, without provisioning or managing servers. Which Azure Function plan and trigger should be used?Connect to and consume Azure services and third-party services
  39. 89.A company is developing a new microservices application. They need to ensure that when a new order is placed, several independent actions are triggered, such as updating inventory, sending a confirmation email, and initiating shipping. These actions should be executed asynchronously and in parallel, without any direct coupling between the order placement service and the downstream services. Which Azure service is best suited to orchestrate these event-driven actions?Connect to and consume Azure services and third-party services
  40. 90.A global e-commerce company needs to process customer orders. The order processing workflow involves several steps: validating the order, checking inventory, processing payment, and updating shipping. If any step fails, the entire workflow must be rolled back, and the order should be retried or flagged for manual intervention. Which Azure service can best orchestrate this transactional workflow with compensation logic?Connect to and consume Azure services and third-party services
  41. 91.A financial institution is developing a system where every transaction must be processed in a strict order for each customer. Messages for different customers can be processed concurrently, but messages for the same customer must be processed sequentially to maintain data consistency. Which feature of Azure Service Bus should be utilized to guarantee this behavior?Connect to and consume Azure services and third-party services
  42. 92.A company is developing a new API using Azure Functions. They need to expose this API securely and reliably to external partners, apply transformation logic to requests and responses, and enforce usage quotas. Which Azure service should be used to achieve these requirements?Connect to and consume Azure services and third-party services
  43. 93.A company has an existing on-premises application that sends messages to MSMQ (Microsoft Message Queuing). They are migrating to Azure and need to replace MSMQ with an Azure messaging service that supports transactional message processing, ensuring that a message is either successfully sent and processed, or neither occurs. Which Azure service should they use?Connect to and consume Azure services and third-party services
  44. 94.A development team is building a new e-commerce platform. They need to implement a mechanism for processing customer orders that ensures messages are delivered in the order they were sent for a specific customer, even if multiple instances of the processing logic are running. The solution must also guarantee that a message is processed completely by only one receiver at a time. Which Azure Service Bus feature should the team use?Connect to and consume Azure services and third-party services
  45. 95.A company is developing a new microservices application. They need to implement a solution that allows different microservices to react to events occurring within other services, such as a new user registration or an order status update. The solution must be highly decoupled, serverless, and support a wide variety of event sources and handlers. Which Azure service is best suited for this event-driven architecture?Connect to and consume Azure services and third-party services
  46. 96.A company uses Azure Logic Apps to automate workflows. One Logic App needs to periodically check an external REST API for new data and, if data is found, process it. The external API has a rate limit of 100 requests per minute and returns a 429 Too Many Requests status code if exceeded. How should the Logic App be configured to handle this rate limit gracefully and ensure data is processed without overwhelming the API?Connect to and consume Azure services and third-party services
  47. 97.A company is developing a new serverless application that needs to process high volumes of telemetry data from IoT devices. The data arrives as a continuous stream and must be ingested quickly and reliably for real-time analytics. Which Azure service should the company use to ingest this data?Connect to and consume Azure services and third-party services
  48. 98.A developer is building a serverless application that needs to perform long-running, stateful orchestrations. This orchestration involves multiple steps, including human interaction for approval, and needs to reliably resume execution after delays or external events. Which Azure service is best suited for this scenario?Connect to and consume Azure services and third-party services
  49. 99.A manufacturing company uses Azure IoT Edge devices to collect sensor data. This data needs to be processed locally on the edge device to filter out noise and aggregate readings before being sent to the cloud. The processing logic involves custom code and needs to be deployed and updated remotely. Which Azure service should be used to deploy and manage this custom processing logic on the IoT Edge devices?Connect to and consume Azure services and third-party services
  50. 100.A company is developing a new order processing system. They need to ensure that when a customer places an order, a message is sent to a messaging service, and this message is then delivered to multiple independent microservices (e.g., Inventory, Shipping, CRM) that need to react to the 'OrderPlaced' event. Each microservice should receive its own copy of the message. Which Azure Service Bus feature should the company use?Connect to and consume Azure services and third-party services