Microsoft AZ-204 Online Practice
Questions and Exam Preparation
AZ-204 Exam Details
Exam Code
:AZ-204
Exam Name
:Developing Solutions for Microsoft Azure
Certification
:Microsoft Certifications
Vendor
:Microsoft
Total Questions
:588 Q&As
Last Updated
:May 25, 2026
Microsoft AZ-204 Online Questions &
Answers
Question 481:
DRAG DROP
You develop a web app that uses tier D1 app service plan by using the Web Apps feature of Microsoft Azure App Service.
Spikes in traffic have caused increases in page load times.
You need to ensure that the web app automatically scales when CPU load is about 85 percent and minimize costs.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Select and Place:
Step 1: Configure the web app to the Standard App Service Tier
The Standard tier supports auto-scaling, and we should minimize the cost.
Step 2: Enable autoscaling on the web app First enable autoscale
Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.
The app continues to time out after four minutes. The app must process the blob data.
You need to ensure the app does not time out and processes the blob data.
Solution: Configure the app to use an App Service hosting plan and enable the Always On setting.
Does the solution meet the goal?
A. Yes B. No
B. No
Explanation
Instead pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate HTTP success response.
Note: Large, long-running functions can cause unexpected timeout issues. General best practices include:
Whenever possible, refactor large functions into smaller function sets that work together and return responses fast. For example, a webhook or HTTP trigger function might require an acknowledgment response within a certain time limit; it's common for webhooks to require an immediate response. You can pass the HTTP trigger payload into a queue to be processed by a queue trigger function. This approach lets you defer the actual work and return an immediate response.
You are developing an Azure Static Web app that contains training materials for a tool company. Each tool's training material is contained In a static web page that Is linked from the tool's publicly available description page.
A user must be authenticated using Azure AD prior to viewing training.
You need to ensure.
That the user can view training material pages after authentication.
How should you complete the configuration file? To answer, select the appropriate options In the answer area.
NOTE: Each correct selection is worth one point.
Box 1: responseOverrides
Response overrides
The responseOverrides section provides an opportunity to define a custom response when the server would otherwise return an error code
Box 2: 401
401 Unauthorized - Request to restricted pages while unauthenticated
Incorrect:
400 Bad request - Invalid invitation link
403 Forbidden
User is logged in but doesn't have the roles required to view the page.
User is logged in but the runtime cannot get the user details from their identity claims.
There are too many users logged in to the site with custom roles, therefore the runtime can't log in the user
Box 3: add
Note: add likely a typo for aad
Example:
The following example configuration blocks anonymous access and redirects all unauthenticated users to the Azure Active Directory login page.
JSON
{
"routes": [
{
"route": "/*",
"allowedRoles": ["authenticated"]
}
],
"responseOverrides": {
"401": {
"statusCode": 302,
"redirect": "/.auth/login/aad"
}
}
} Box 4: =.referrer
Example:
Provide an auth redirect for any unauthorized response using responseOverrides in staticwebapp.config.json.
You have a Standard tier instance of Azure Cache for Radis named redis1 configured with the default settings.
You need to configure a Maxmemory policy to increase the amount of cache available for read operations.
How should you configure the Maxmemory policy?
A. Decrease the value of maxmemory-reserved. B. Increase the value of maxmemory-reserved. C. Set the Maxmemory policy to noeviction. D. Set the Maxmemory policy to volatile-lru.
A. Decrease the value of maxmemory-reserved.
Question 485:
HOTSPOT
You are developing several microservices to run on Azure Container Apps.
You need to monitor and diagnose the microservices.
Which features should you use? To answer, select the appropriate feature in the answer area.
NOTE: Each correct selection is worth one point.
Box 1: Log streaming
View console logs from a container in near real-time.
Log streaming: View real-time log streams from your containers.
Box 2: Container console
Debug the microservice from inside the container.
Container console: Access the container console to debug your application.
Note: Development and test
During the development and test phase, real-time access to your containers' application logs and console is critical for debugging issues. Container Apps provides:
Log streaming: View real-time log streams from your containers.
Container console: Access the container console to debug your application.
You create and publish a new Azure App Service web app.
User authentication and authorization must use Azure Active Directory (Azure AD).
You need to configure authentication and authorization.
What should you do first?
A. Add an identity provider. B. Map an existing custom DNS name. C. Create and configure a new app setting. D. Add a private certificate. E. Create and configure a managed identity.
A. Add an identity provider.
Explanation
Configure your App Service or Azure Functions app to use Azure AD login
You configure authentication for Azure App Service or Azure Functions so that your app signs in users with the Microsoft identity platform (Azure AD) as the authentication provider.
The App Service Authentication feature can automatically create an app registration with the Microsoft identity platform. You can also use a registration that you or a directory admin creates separately.
Option 1: Create a new app registration automatically
Use this option unless you need to create an app registration separately. It makes enabling authentication simple and requires just a few clicks. You can customize the app registration in Azure AD once it's created.
Sign in to the Azure portal and navigate to your app.
Select Authentication in the menu on the left. Click Add identity provider.
Select Microsoft in the identity provider dropdown. The option to create a new registration is selected by default. You can change the name of the registration or the supported account types.
You plan to create a Docker image that runs as ASP.NET Core application named ContosoApp. You have a setup script named setupScript.ps1 and a series of application files including ContosoApp.dll.
You need to create a Dockerfile document that meets the following requirements:
1. Call setupScript.ps1 when the container is built.
2. Run ContosoApp.dll when the container starts.
The Docker document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored.
Which four commands should you use to develop the solution? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
Select and Place:
Step 1: WORKDIR /apps/ContosoApp
Step 2: COPY ./- The Docker document must be created in the same folder where ContosoApp.dll and setupScript.ps1 are stored.
Step 3: EXPOSE ./ContosApp/ /app/ContosoApp
Step 4: CMD powershell ./setupScript.ps1
ENTRYPOINT ["dotnet", "ContosoApp.dll"]
You need to create a Dockerfile document that meets the following requirements: Call setupScript.ps1 when the container is built.
You are developing a software solution for an autonomous transportation system. The solution uses large data sets and Azure Batch processing to simulate navigation sets for entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?
A. In the Azure portal, create a Batch account. B. In a .NET method, call the method: BatchClient.PoolOperations.CreatePool C. In Python, implement the class: JobAddParameter D. In Python, implement the class: TaskAddParameter
B. In a .NET method, call the method: BatchClient.PoolOperations.CreatePool
Explanation
A Batch job is a logical grouping of one or more tasks. A job includes settings common to the tasks, such as priority and the pool to run tasks on. The app uses the BatchClient.JobOperations.CreateJob method to create a job on your pool.
Incorrect Answers:
C, D: To create a Batch pool in Python, the app uses the PoolAddParameter class to set the number of nodes, VM size, and a pool configuration.
A company develops a series of mobile games. All games use a single leaderboard service.
You have the following requirements:
1. Code should be scalable and allow for growth.
2. Each record must consist of a playerld, gameld. score, and time played.
3. When users reach a new high score, the system will save the new score using the SaveScore function below.
4. Each game is assigned an Id based on the series title.
You have the following code. (Line numbers are included for reference only.)
You store customer information in an Azure Cosmos database. The following data already exists in the database:
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point
Question 490:
You need to secure the corporate website to meet the security requirements.
What should you do?
A. Create an App Service instance with a standard plan. Configure the custom domain with a TLS/SSL certificate. B. Create an Azure Application Gateway with a Web Application Firewall (WAF). Configure end-to-end TLS encryption and the WAF. C. Create an Azure Cache for Radis instance. Update the code to support the cache. D. Create an Azure Content Delivery Network profile and endpoint. Configure the endpoint.
B. Create an Azure Application Gateway with a Web Application Firewall (WAF). Configure end-to-end TLS encryption and the WAF.
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Microsoft exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your AZ-204 exam preparations
and Microsoft certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.