AZ-204 Exam Questions & Answers
Developing Solutions for Microsoft Azure Exam • Microsoft
100% money-back guarantee
Sample AZ-204 Questions
Practice with real exam-style questions, each with the verified correct answer and explanation.
You are developing an ASP.NET Core Web API web service. The web service uses Azure Application Insights for all telemetry and dependency tracking. The web service reads and writes data to a database other than Microsoft SQL Server.
You need to ensure that dependency tracking works for calls to the third-party database.
Which two Dependency Telemetry properties should you store in the database? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-operations-tracking
Example:
public async Task Enqueue(string payload)
{
// StartOperation is a helper method that initializes the telemetry item
// and allows correlation of this operation with its parent and children.
var operation = telemetryClient.StartOperation<DependencyTelemetry>('enqueue ' + queueName);
operation.Telemetry.Type = 'Azure Service Bus';
operation.Telemetry.Data = 'Enqueue ' + queueName;
var message = new BrokeredMessage(payload);
// Service Bus queue allows the property bag to pass along with the message.
// We will use them to pass our correlation identifiers (and other context)
// to the consumer.
message.Properties.Add('ParentId', operation.Telemetry.Id);
message.Properties.Add('RootId', operation.Telemetry.Context.Operation.Id);
https://docs.microsoft.com/en-us/azure/azure-monitor/app/custom-operations-tracking
You create and publish a new Azure App Service web app. User authentication and authorization must use Microsoft Entra ID. You need to configure authentication and authorization. What should you do first?
You are developing an Azure Function that calls external APIs by providing an access token for the API. The access token is stored in a secret named token in an Azure Key Vault named mykeyvault.
You need to ensure the Azure Function can access to the token. Which value should you store in the Azure Function App configuration?
A.

B.

C.

D.

You are developing an online game that includes a feature that allows players to interact with other players on the same team within a certain distance. The calculation to determine the players in range occurs when players move and are cached in an Azure Cache for Redis instance.
The system should prioritize players based on how recently they have moved and should not prioritize players who have logged out of the game. You need to select an eviction policy. Which eviction policy should you use?
You develop Azure Web Apps for a commercial diving company. Regulations require that all divers fill out a health questionnaire every 15 days after each diving job starts.
You need to configure the Azure Web Apps so that the instance count scales up when divers are filling out the questionnaire and scales down after they are complete.
You need to configure autoscaling.
What are two possible autoscaling configurations to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Get access to all 490 verified questions with detailed answers.
Unlock All AZ-204 Questions