πŸ”

AZ-204 β€” questions

Page 2 of 7 Β· 139 total questions.

Topic 1 Β· Question 25

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Client cert gateway credentials for the HTTP(s) endpoint. 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 1 Β· Question 26

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Basic gateway credentials for the HTTP(s) endpoint. 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 1 Β· Question 27

Note: The question is included in a number of questions that depicts the identical set-up. However, every question has a distinctive result. Establish if the solution satisfies the requirements. You are developing a solution for a public facing API. The API back end is hosted in an Azure App Service instance. You have implemented a RESTful service for the API back end. You must configure back-end authentication for the API Management service instance. Solution: You configure Client cert gateway credentials for the Azure resource. 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 1 Β· Question 28

You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers. You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation venues. You want the application to list holiday accommodation venues that fall within a specific price range and are within a specified distance to an airport. What should you do?

  • AConfigure the SearchMode property of the SearchParameters class.
  • BConfigure the QueryType property of the SearchParameters class.
  • CConfigure the Facets property of the SearchParameters class.
  • DConfigure the Filter property of the SearchParameters class. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Configure the Filter property of the SearchParameters class.

Topic 1 Β· Question 29

You are a developer at your company. You need to edit the workflows for an existing Logic App. What should you use?

  • Athe Enterprise Integration Pack (EIP)
  • Bthe Logic App Code View
  • Cthe API Connections
  • Dthe Logic Apps Designer (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: the Logic Apps Designer

Explanation

Azure Logic Apps orchestrates workflows and integrations with low-code connectors.

Topic 1 Β· Question 31

You are developing an application that applies a set of governance policies for internal and external services, as well as for applications. You develop a stateful ASP.NET Core 2.1 web application named PolicyApp and deploy it to an Azure App Service Web App. The PolicyApp reacts to events from Azure Event Grid and performs policy actions based on those events. You have the following requirements: β€’ Authentication events must be used to monitor users when they sign in and sign out. β€’ All authentication events must be processed by PolicyApp. β€’ Sign outs must be processed as fast as possible. What should you do?

  • ACreate a new Azure Event Grid subscription for all authentication events. Use the subscription to process sign-out events.
  • BCreate a separate Azure Event Grid handler for sign-in and sign-out events.
  • CCreate separate Azure Event Grid topics and subscriptions for sign-in and sign-out events. (correct answer)
  • DAdd a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.

Explanation

Azure Event Grid routes events between services for reactive, event-driven architectures.

Topic 2 Β· Question 42

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: Trigger the photo processing from Blob storage events. 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 43

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 web.config file to include the applicationInitialization configuration element. Specify custom initialization actions to run the scripts. 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 44

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: Enable auto swap for the Testing slot. Deploy the app to the Testing slot. Does the solution meet the goal?

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

The correct answer is A. Option A: No.

Topic 2 Β· Question 45

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: Disable auto swap. Update the app with a method named statuscheck to run the scripts. Re-enable auto swap and deploy the app to the Production slot. Does the solution meet the goal?

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

The correct answer is A. Option A: No.

Topic 2 Β· Question 46

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: Convert the Azure Storage account to a BlockBlobStorage storage account. 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 51

You develop a website. You plan to host the website in Azure. You expect the website to experience high traffic volumes after it is published. You must ensure that the website remains available and responsive while minimizing cost. You need to deploy the website. What should you do?

  • ADeploy the website to a virtual machine. Configure the virtual machine to automatically scale when the CPU load is high.
  • BDeploy the website to an App Service that uses the Shared service tier. Configure the App Service plan to automatically scale when the CPU load is high.
  • CDeploy the website to a virtual machine. Configure a Scale Set to increase the virtual machine instance count when the CPU load is high.
  • DDeploy the website to an App Service that uses the Standard service tier. Configure the App Service plan to automatically scale when the CPU load is high. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Deploy the website to an App Service that uses the Standard service tier. Configure the App Service plan to automatically scale when the CPU load is high.

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching.

Topic 2 Β· Question 54

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: Use the Durable Function async pattern to process the blob data. 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 55

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: 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. 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 56

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?

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

The correct answer is B. Option B: No.

Topic 2 Β· Question 57

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: Move photo processing to an Azure Function triggered from the blob upload. 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 58

You are developing an application that uses Azure Blob storage. The application must read the transaction logs of all the changes that occur to the blobs and the blob metadata in the storage account for auditing purposes. The changes must be in the order in which they occurred, include only create, update, delete, and copy operations and be retained for compliance reasons. You need to process the transaction logs asynchronously. What should you do?

  • AProcess all Azure Blob storage events by using Azure Event Grid with a subscriber Azure Function app.
  • BEnable the change feed on the storage account and process all changes for available events. (correct answer)
  • CProcess all Azure Storage Analytics logs for successful blob events.
  • DUse the Azure Monitor HTTP Data Collector API and scan the request body for successful blob events.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Enable the change feed on the storage account and process all changes for available events.

Explanation

An Azure Storage Account is the container that groups blob, file, queue, and table storage with unified access control. This option decouples the components so they scale independently and absorb load spikes.

Topic 2 Β· Question 60

You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container. Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when the Function App is triggered. You need to configure the Function App. What should you do?

  • AUse an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.
  • BUse a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.
  • CUse a Consumption plan. Configure the Function App to use a Timer trigger.
  • DUse an App Service plan. Configure the Function App to use an Azure Blob Storage trigger. (correct answer)
  • EUse a Consumption plan. Configure the Function App to use an Azure Blob Storage input trigger.
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.

Explanation

Azure App Service is a fully managed platform for hosting web apps and APIs with built-in scaling and patching. Azure Blob Storage provides durable, scalable object storage for unstructured data. Azure Blob Storage provides durable, scalable object storage with hot, cool, and archive tiers for cost control.

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

You are preparing to deploy a website to an Azure Web App from a GitHub repository. The website includes static content generated by a script. You plan to use the Azure Web App continuous deployment feature. You need to run the static generation script before the website starts serving traffic. What are two possible ways to achieve this goal? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.

  • AAdd the path to the static content generation tool to WEBSITE_RUN_FROM_PACKAGE setting in the host.json file.
  • BAdd a PreBuild target in the websites csproj project file that runs the static content generation script. (correct answer)
  • CCreate a file named run.cmd in the folder /run that calls a script which generates the static content and deploys the website.
  • DCreate a file named .deployment in the root of the repository that calls a script which generates the static content and deploys the website. (correct answer)
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Add a PreBuild target in the websites csproj project file that runs the static content generation script. Option D: Create a file named.deployment in the root of the repository that calls a script which generates the static content and deploys the website.

Topic 2 Β· Question 70

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: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload. 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 21–40 of 139 Β· Page 2 of 7