AZ-204 Practice Test

AZ-204 Practice Test practice questions, page 19 of 20, with answer review and explanations.

Question 91

You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. A deployed microservice must be updated to allow users to test new features. You have the following requirements: • Enable and maintain a single URL for the updated microservice to provide to test users. • Update the microservice that corresponds to the current microservice version. You need to configure Azure Container Apps. Which features should you configure? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

Question 92

You plan to develop an Azure Functions app with an HTTP trigger. The app must support the following requirements: • Event-driven scaling • Ability to use custom Linux images for function execution You need to identify the app’s hosting plan and the maximum amount of time that the app function can take to respond to incoming requests. 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.

Question 93

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.

Question 94

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.

Question 95

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.