πŸ”

AZ-204 β€” questions

Page 3 of 7 Β· 139 total questions.

Topic 2 Β· Question 71

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 and deploy an Azure App Service API app to a Windows-hosted deployment slot named Development. You create additional deployment slots named Testing and Production. You enable auto swap on the Production deployment slot. You need to ensure that scripts run and resources are available before a swap operation occurs. Solution: Update the app with a method named statuscheck to run the scripts. Update the app settings for the app. Set the WEBSITE_SWAP_WARMUP_PING_PATH and WEBSITE_SWAP_WARMUP_PING_STATUSES with a path to the new method and appropriate response codes. Does the solution meet the goal?

  • ANo
  • BYes (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Yes.

Topic 2 Β· Question 75 Β· Select all that apply

You are developing a web app that is protected by Azure Web Application Firewall (WAF). All traffic to the web app is routed through an Azure Application Gateway instance that is used by multiple web apps. The web app address is contoso.azurewebsites.net. All traffic must be secured with SSL. The Azure Application Gateway instance is used by multiple web apps. You need to configure the Azure Application Gateway for the web app. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AIn the Azure Application Gateway's HTTP setting, enable the Use for App service setting. (correct answer)
  • BConvert the web app to run in an Azure App service environment (ASE).
  • CAdd an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway. (correct answer)
  • DIn the Azure Application Gateway's HTTP setting, set the value of the Override backend path option to contoso22.azurewebsites.net.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: In the Azure Application Gateway's HTTP setting, enable the Use for App service setting. Option C: Add an authentication certificate for contoso.azurewebsites.net to the Azure Application Gateway.

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching. Azure Application Gateway is a layer-7 load balancer with WAF, path-based routing, and SSL termination.

Topic 2 Β· Question 76

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 a software as a service (SaaS) offering to manage photographs. Users upload photos to a web service which then stores the photos in Azure Storage Blob storage. The storage account type is General-purpose V2. When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image. The process to produce a mobile-friendly version of the image must start in less than one minute. You need to design the process that starts the photo processing. Solution: Use the Azure Blob Storage change feed to trigger photo processing. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 77

You are developing a web application that runs as an Azure Web App. The web application stores data in Azure SQL Database and stores files in an Azure Storage account. The web application makes HTTP requests to external services as part of normal operations. The web application is instrumented with Application Insights. The external services are OpenTelemetry compliant. You need to ensure that the customer ID of the signed in user is associated with all operations throughout the overall system. What should you do?

  • AAdd the customer ID for the signed in user to the CorrelationContext in the web application (correct answer)
  • BOn the current SpanContext, set the TraceId to the customer ID for the signed in user
  • CSet the header Ocp-Apim-Trace to the customer ID for the signed in user
  • DCreate a new SpanContext with the TraceFlags value set to the customer ID for the signed in user
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Add the customer ID for the signed in user to the CorrelationContext in the web application.

Topic 2 Β· Question 80

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: Update the functionTimeout property of the host.json project file to 10 minutes. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 82 Β· Select all that apply

You are developing an Azure Durable Function to manage an online ordering process. The process must call an external API to gather product discount information. You need to implement the Azure Durable Function. Which Azure Durable Function types should you use? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

  • AOrchestrator (correct answer)
  • BEntity
  • CClient
  • DActivity (correct answer)
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Orchestrator Option D: Activity.

Topic 2 Β· Question 84

You develop Azure Durable Functions to manage vehicle loans. The loan process includes multiple actions that must be run in a specified order. One of the actions includes a customer credit check process, which may require multiple days to process. You need to implement Azure Durable Functions for the loan process. Which Azure Durable Functions type should you use?

  • Aorchestrator (correct answer)
  • Bclient
  • Centity
  • Dactivity
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: orchestrator.

Topic 2 Β· Question 86 Β· Select all that apply

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 auto scaling configurations to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • ARecurrence profile
  • BCPU usage-based autoscaling (correct answer)
  • CFixed date profile
  • DPredictive autoscaling (correct answer)
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: CPU usage-based autoscaling Option D: Predictive autoscaling.

Topic 2 Β· Question 90

You are developing several microservices to run on Azure Container Apps. External HTTP ingress traffic has been enabled for the microservices. The microservices must be deployed to the same virtual network and write logs to the same Log Analytics workspace. You need to deploy the microservices. What should you do?

  • AEnable single revision mode.
  • BUse a separate environment for each container.
  • CUse a private container registry image and single image for all containers.
  • DUse a single environment for all containers. (correct answer)
  • EEnable multiple revision mode.
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use a single environment for all containers.

Topic 2 Β· 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?

  • ARequire the https://graph.microsoft.com/.default scope during authentication.
  • BConfigure the app to use the OAuth 2.0 authorization code flow.
  • CImplement custom middleware to retrieve role information from Azure AD.
  • DAdd the groups to the groupMembershipClaims attribute in the app manifest.
  • EAdd the roles to the appRoles attribute in the app manifest. (correct answer)
Reveal answer & explanation
Correct answer: E

The correct answer is E. Option E: Add the roles to the appRoles attribute in the app manifest.

Topic 2 Β· Question 96

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?

  • AEnable single revision mode. (correct answer)
  • BUse multiple environments for each container.
  • CUse a private container registry and single image for all containers.
  • DUse a single environment for all containers.
  • EEnable multiple revision mode.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Enable single revision mode.

Topic 2 Β· Question 98

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 deploy an Azure Container Apps app and disable ingress on the container app. Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances. You need to resolve the issue with the container app. Solution: Enable ingress, create an HTTP scale rule, and apply the rule to the container app. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 99

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 deploy an Azure Container Apps app and disable ingress on the container app. Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances. You need to resolve the issue with the container app. Solution: Enable ingress, create a custom scale rule, and apply the rule to the container app. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 100

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 deploy an Azure Container Apps app and disable ingress on the container app. Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances. You need to resolve the issue with the container app. Solution: Enable ingress and configure the minimum replicas to 1 for the container app. Does the solution meet the goal?

  • AYes (correct answer)
  • BNo
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Yes.

Topic 2 Β· Question 104

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 have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1. You plan to enable schedule-based autoscaling for APSPlan1. You need to minimize the cost of running WebApp1. Solution: Scale down ASPPlan1 to the Shared pricing tier. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 105

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 have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1. You plan to enable schedule-based autoscaling for APSPlan1. You need to minimize the cost of running WebApp1. Solution: Scale out APSPlan1. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 106

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 have an Azure App Service plan named APSPlan1 set to the Basic B1 pricing tier. APSPlan1 contains an App Service web app named WebApp1. You plan to enable schedule-based autoscaling for APSPlan1. You need to minimize the cost of running WebApp1. Solution: Scale up ASPPlan1 to the Premium V2 pricing tier. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 2 Β· Question 108

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 deploy an Azure Container Apps app and disable ingress on the container app. Users report that they are unable to access the container app. You investigate and observe that the app has scaled to 0 instances. You need to resolve the issue with the container app. Solution: Enable ingress, create an TCP scale rule, and apply the rule to the container app. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Topic 3 Β· Question 113

You are building a website that uses Azure Blob storage for data storage. You configure Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days. Customers have requested a service-level agreement (SLA) for viewing data older than 30 days. You need to document the minimum SLA for data recovery. Which SLA should you use?

  • Aat least two days
  • Bbetween one and 15 hours (correct answer)
  • Cat least one day
  • Dbetween zero and 60 minutes
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: between one and 15 hours.

Topic 3 Β· Question 118

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 are developing an Azure solution to collect point-of-sale (POS) device data from 2,000 stores located throughout the world. A single device can produce 2 megabytes (MB) of data every 24 hours. Each store location has one to five devices that send data. You must store the device data in Azure Blob storage. Device data must be correlated based on a device identifier. Additional stores are expected to open in the future. You need to implement a solution to receive the device data. Solution: Provision an Azure Event Grid. Configure the machine identifier as the partition key and enable capture. Does the solution meet the goal?

  • AYes
  • BNo (correct answer)
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: No.

Showing questions 41–60 of 139 Β· Page 3 of 7