Free AZ-204 Exam Braindumps (page: 25)

Page 24 of 116

HOTSPOT (Drag and Drop is not supported)
You develop a Python application for image rendering. The application uses GPU resources to optimize rendering processes.
You have the following requirements:
• The application must be deployed to a Linux container.
• The container must be stopped when the image rendering is complete.
• The solution must minimize cost.
You need to deploy the application to Azure.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



HOTSPOT (Drag and Drop is not supported)
You plan to develop an Azure Functions app with an Azure Blob Storage trigger. The app will be used infrequently, with a limited duration of individual executions.
The app must meet the following requirements:
• Event-driven scaling
• Support for deployment slots
• Minimize costs
You need to identify the hosting plan and the maximum duration when executing the app.
Which configuration setting values should you use? To answer, select the appropriate values in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



You are developing an ASP.NET Core app hosted in Azure App Service.
The app requires custom claims to be returned from Microsoft Entra ID for user authorization. The claims must be removed when the app registration is removed.
You need to include the custom claims in the user access token.
What should you do?

  1. Require the https://graph.microsoft.com/.default scope during authentication.
  2. Configure the app to use the OAuth 2.0 authorization code flow.
  3. Implement custom middleware to retrieve role information from Azure AD.
  4. Add the groups to the groupMembershipClaims attribute in the app manifest.
  5. Add the roles to the appRoles attribute in the app manifest.

Answer(s): E



You are developing a microservice to run on Azure Container Apps for a company. External HTTP ingress traffic has been enabled.
The company requires that updates to the microservice must not cause downtime.
You need to deploy an update to the microservices.
What should you do?

  1. Enable single revision mode.
  2. Use multiple environments for each container.
  3. Use a private container registry and single image for all containers.
  4. Use a single environment for all containers.
  5. Enable multiple revision mode.

Answer(s): A






Post your Comments and Discuss Microsoft AZ-204 exam with other Community members:

Exam Discussions & Posts