← All AZ-204 Flashcard Decks

Mixed Deck — All AZ-204 Topics Flashcards

100 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 20 Mixed Deck — All AZ-204 Topics flashcards as text
  1. An application writes telemetry to Application Insights. In production, the volume is very high and costs are excessive. The developer wants to reduce data volume but retain all exceptions and slow requests. Which strategy should be applied?

    Answer: Configure adaptive sampling with a rule to exclude exceptions and dependency failures from sampling

    Adaptive sampling intelligently reduces volume while allowing exclusion of critical telemetry types like exceptions, preserving diagnostic fidelity at lower cost.

  2. Your Cosmos DB application experiences 429 (Too Many Requests) errors during peak traffic. You have provisioned 1000 RU/s. What is the recommended first step to address this?

    Answer: Implement retry with exponential backoff in the client and review partition key design for hot partitions

    Retries with exponential backoff handle transient 429s, while reviewing partition key design eliminates hot partitions that cause 429s even when total RUs are sufficient.

  3. Which Application Insights SDK method should you call to record a custom named event representing a user action or business milestone?

    Answer: TrackEvent()

    TrackEvent() emits a named event telemetry item that you can query and count in the portal to measure specific user behaviors or business KPIs.

  4. You create and launch a web app using Azure App Service. Azure Traffic Manager is used to deploy the app across various regions. The app has Application Insights turned on. You must examine the app's uptime for each month. Which of the two solutions will be the most successful in achieving the goal? Each accurate response provides a comprehensive solution.

    Answer: Application Insights alerts

    The correct answer: Azure Monitor metrics and Application Insights alerts

  5. What is a compliance management system in AZ-204 - Microsoft Azure Developer Associate practice?

    Answer: A structured framework of policies, procedures, and controls that ensure regulatory adherence

    This is fundamental to AZ-204 - Microsoft Azure Developer Associate practice. A structured framework of policies, procedures, and controls that ensure regulatory adherence represents the professional standard for regulatory in the AZ-204 certification framework.

  6. What is the primary value of case study analysis in AZ-204 - Microsoft Azure Developer Associate training?

    Answer: Developing critical thinking by applying theory to realistic professional scenarios

    This is fundamental to AZ-204 - Microsoft Azure Developer Associate practice. Developing critical thinking by applying theory to realistic professional scenarios represents the professional standard for practical in the AZ-204 certification framework.

  7. What is the purpose of regular risk reviews in AZ-204 - Microsoft Azure Developer Associate practice?

    Answer: To identify new risks, evaluate control effectiveness, and update mitigation strategies

    This is fundamental to AZ-204 - Microsoft Azure Developer Associate practice. To identify new risks, evaluate control effectiveness, and update mitigation strategies represents the professional standard for risk management in the AZ-204 certification framework.

  8. What is a risk mitigation strategy in AZ-204 - Microsoft Azure Developer Associate practice?

    Answer: Implementing controls that reduce the likelihood or impact of identified risks

    This is fundamental to AZ-204 - Microsoft Azure Developer Associate practice. Implementing controls that reduce the likelihood or impact of identified risks represents the professional standard for risk management in the AZ-204 certification framework.

  9. What is the primary purpose of geo-replication in Azure Container Registry?

    Answer: To distribute registry replicas to multiple regions for faster image pulls

    Geo-replication creates registry replicas in chosen Azure regions so that image pulls are served from the nearest replica, reducing latency.

  10. Which OAuth 2.0 flow should a daemon application use to acquire an Azure AD token when acting on its own behalf with no user interaction?

    Answer: Client Credentials flow

    The Client Credentials flow authenticates the application itself using a client ID and secret/certificate, with no user involved.

  11. When using the Azure.Messaging.ServiceBus SDK, which class provides a higher-level message pump that continuously processes messages and automatically renews message locks?

    Answer: ServiceBusProcessor

    ServiceBusProcessor provides a higher-level API that continuously receives messages, invokes registered handlers, and automatically renews message locks while processing is in progress.

  12. You create an application that lets users upload photographs and movies to Azure storage. The media is uploaded to a blob storage account named Account1 via a storage REST API call. Container1 and Container2 are two blob storage containers that you have. Video uploading is done on a sporadic basis. When a new movie is uploaded, you must copy specified blobs from Container1 to Container2. What are your options?

    Answer: Use the Start-AzureStorageBlobCopy cmdlet to create an Event Grid topic.

    Explanation: The Start-AzureStorageBlobCopy cmdlet starts to copy a blob. Example 1: Copy a named blob C:PS>Start-AzureStorageBlobCopy -SrcBlob "ContosoPlanning2015" -DestContainer "ContosoArchives" -SrcContainer "ContosoUploads" This command starts the copy operation of the blob named ContosoPlanning2015 from the container named ContosoUploads to the container named ContosoArchives

  13. A developer has received a Service Bus message that cannot be processed immediately but should be retried after other pending messages are handled. Which operation preserves the message in the queue without incrementing the delivery count?

    Answer: Defer the message using DeferMessageAsync

    DeferMessageAsync moves the message to a deferred state where it is invisible to normal receivers and can be retrieved later by its sequence number, without incrementing the delivery count.

  14. What is the maximum execution timeout for an Azure Function running on the Consumption plan?

    Answer: 10 minutes

    Azure Functions on the Consumption plan have a default timeout of 5 minutes and a maximum configurable timeout of 10 minutes.

  15. What is the maximum message size supported by Azure Service Bus Premium tier?

    Answer: 100 MB

    Azure Service Bus Premium tier supports messages up to 100 MB in size, a significant increase over the 256 KB limit of the Standard tier, making it suitable for larger payloads.

  16. What is the importance of data security in AZ-204 digital applications?

    Answer: Protecting sensitive information from unauthorized access, breaches, and loss is essential

    This is fundamental to AZ-204 - Microsoft Azure Developer Associate practice. Protecting sensitive information from unauthorized access, breaches, and loss is essential represents the professional standard for technology in the AZ-204 certification framework.

  17. You are implementing chaos engineering for an Azure-hosted microservice. Which Azure service provides built-in fault injection experiments such as CPU pressure and network latency?

    Answer: Azure Chaos Studio

    Azure Chaos Studio lets you define experiments that inject faults—CPU stress, network delay, pod failures—into Azure resources to validate application resilience.

  18. What header must a client include when calling an Azure AD-protected API to prove it has a valid access token?

    Answer: Authorization: Bearer {token}

    APIs protected by Azure AD expect the access token in the HTTP `Authorization` header using the `Bearer` scheme.

  19. 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.

  20. A developer is configuring an Azure App Service deployment slot swap. After the swap, some users on the production slot still see the old version. What is the most likely cause?

    Answer: Users have existing affinity cookies routing them to an instance that has not yet processed the swap

    ARR affinity cookies pin sessions to specific instances; if an instance was in-flight during the swap, users with that cookie are still routed to it until the cookie expires or is cleared.