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
A startup's Azure Function processes uploaded images by resizing them and storing results in Blob Storage. During peak hours, the function times out after 5 minutes before completing. What is the BEST solution?
Answer: Switch to Durable Functions with a fan-out/fan-in pattern to parallelize image processing
Durable Functions with fan-out/fan-in allows parallel processing of multiple images, reducing total execution time rather than just extending the timeout.
A company stores customer records in Azure Cosmos DB with a partition key of /country. Analytics queries frequently filter by /productCategory across all countries. Performance is poor. What should the developer recommend?
Answer: Create a new container with /productCategory as the partition key for analytics
Cross-partition queries are expensive; creating a dedicated container with /productCategory as the partition key allows efficient fan-in queries for analytics workloads.
A developer needs to deploy a containerized web app that automatically scales to zero when idle to minimize costs, but must start within 30 seconds on first request. Which Azure service fits best?
Answer: Azure Container Apps with scale-to-zero enabled
Azure Container Apps supports scale-to-zero natively and is designed for containerized microservices with fast cold starts, unlike ACI which lacks automatic HTTP-triggered scaling.
An e-commerce app uses Azure Service Bus to process orders. Occasionally, a malformed order message causes the consumer to throw an exception repeatedly. After how many delivery attempts does Service Bus move the message to the Dead Letter Queue by default?
Answer: 10
Azure Service Bus moves a message to the Dead Letter Queue after 10 failed delivery attempts by default (MaxDeliveryCount = 10).
A developer must cache API responses in Azure API Management for GET requests but only when the response status is 200. Which APIM policy should be used?
Answer: cache-store with a condition checking context.Response.StatusCode
The cache-store policy supports a condition attribute, allowing you to cache only successful 200 responses by checking context.Response.StatusCode.
A microservice on Azure App Service needs to read a secret from Azure Key Vault without storing credentials in code or config files. What is the correct approach?
Answer: Enable a system-assigned managed identity on the App Service and grant it Key Vault Secrets User role
A system-assigned managed identity eliminates credential management; granting it the Key Vault Secrets User role is the recommended zero-secret pattern.
A developer has a Blob Storage container with public access disabled. Users must download files for exactly 1 hour without requiring an Azure account. What should the developer generate?
Answer: A Shared Access Signature (SAS) token with 1-hour expiry on the specific blob
A SAS token grants time-limited, scoped access to a blob without exposing the storage account key or requiring user authentication.