← All AZ-204 Flashcard Decks

Case Studies & Practical Application Flashcards

7 cards from real AZ-204 practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Case Studies & Practical Application flashcards as text
  1. A developer needs to push IoT device data to 500 downstream consumers in real time with minimal latency. Individual consumers need to replay events from the last 7 days. Which Azure service is the best fit?

    Answer: Azure Event Hubs with a 7-day retention period

    Event Hubs is designed for high-throughput event streaming with configurable retention and consumer group replay, supporting thousands of concurrent consumers.

  2. A company's App Service web app must access an internal SQL Server hosted on-premises without exposing it to the public internet. What is the recommended connectivity option?

    Answer: Configure Hybrid Connections on the App Service to reach the on-premises SQL Server

    Hybrid Connections use an outbound TCP relay via Service Bus, requiring no inbound firewall rules and no VNet, making it the simplest option for App Service to on-premises connectivity.

  3. A developer needs to implement optimistic concurrency for updates to an Azure Cosmos DB document. Which approach should be used?

    Answer: Use the _etag property and pass it as an AccessCondition with IfMatch on each update request

    Cosmos DB's _etag enables optimistic concurrency; the IfMatch header causes the operation to fail with a 412 if another process has modified the document since it was read.

  4. A containerized API on Azure Container Apps is returning 503 errors under load. The developer checks metrics and sees the replica count has reached the maximum of 10 but CPU is at 95%. What should be changed first?

    Answer: Increase the maximum replica count and review CPU-based scaling rules

    When replicas are at max and CPU is saturated, increasing the replica ceiling and verifying scaling triggers are correctly configured is the immediate action to restore capacity.

  5. A developer implements retry logic for an Azure Blob Storage SDK call using an exponential backoff strategy. Calls are failing with HTTP 409 (Conflict) errors. Should 409 be retried?

    Answer: No; 409 indicates a conflict condition that won't resolve by retrying—handle it explicitly in application logic

    HTTP 409 Conflict in Blob Storage (e.g., lease conflict or blob already exists) is a business-logic error that retrying will not resolve—it requires explicit handling.

  6. An Azure API Management gateway must transform an XML response from a legacy SOAP backend into JSON before returning it to REST clients. Which APIM policy accomplishes this?

    Answer: xml-to-json in the outbound policy section

    The xml-to-json APIM policy in the outbound section automatically converts the XML response body to JSON before it reaches the REST client.

  7. A developer must ensure that messages published to an Azure Service Bus topic are processed in strict FIFO order by a single consumer. What must be configured?

    Answer: Enable sessions on the topic subscription and use a session-aware receiver with a consistent session ID

    Service Bus sessions group related messages under a session ID, and a session-aware receiver processes them sequentially, guaranteeing FIFO order within a session.