Download Developing Solutions for Microsoft Azure.NetworkArmy.AZ-204.2021-08-04.5e.195q.vcex

Download Exam

File Info

Exam Developing Solutions for Microsoft Azure
Number AZ-204
File Name Developing Solutions for Microsoft Azure.NetworkArmy.AZ-204.2021-08-04.5e.195q.vcex
Size 26.62 Mb
Posted August 04, 2021
Downloads 181
Download Developing Solutions for Microsoft Azure.NetworkArmy.AZ-204.2021-08-04.5e.195q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%



 
 



Demo Questions

Question 1

You need to configure Azure CDN for the Shipping web site. 
Which configuration options should you use? To answer, select the appropriate options in the answer area. 
NOTE: Each correct selection is worth one point.

Correct Answer: Exam simulator is required

Scenario: Shipping website
Use Azure Content Delivery Network (CDN) and ensure maximum performance for dynamic content while minimizing latency and costs. 
Tier: Standard
Profile: Akamai
Optimization: Dynamic site acceleration
Dynamic site acceleration (DSA) is available for Azure CDN Standard from Akamai, Azure CDN Standard from Verizon, and Azure CDN Premium from Verizon profiles. 
DSA includes various techniques that benefit the latency and performance of dynamic content. Techniques include route and network optimization, TCP optimization, and more. 
You can use this optimization to accelerate a web app that includes numerous responses that aren't cacheable. Examples are search results, checkout transactions, or real-time data. You can continue to use core Azure CDN caching capabilities for static data. 
Reference:
https://docs.microsoft.com/en-us/azure/cdn/cdn-optimization-overview




Question 2

You need to correct the VM issues.
Which tools should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

Correct Answer: Exam simulator is required

Box 1: Azure Backup
The VM is critical and has not been backed up in the past. The VM must enable a quick restore from a 7-day snapshot to include in-place restore of disks in case of failure. 
In-Place restore of disks in IaaS VMs is a feature of Azure Backup. 
Performance: Accelerated Networking
Scenario: The VM shows high network latency, jitter, and high CPU utilization. 
Box 2: Accelerated networking
The VM shows high network latency, jitter, and high CPU utilization. 
Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, greatly improving its networking performance. This high-performance path bypasses the host from the datapath, reducing latency, jitter, and CPU utilization, for use with the most demanding network workloads on supported VM types. 
Reference:
https://azure.microsoft.com/en-us/blog/an-easy-way-to-bring-back-your-azure-vm-with-in-place-restore/




Question 3

You need to correct the RequestUserApproval Function app error. 
What should you do?

  • A: Update line RA13 to use the async keyword and return an HttpRequest object value.
  • B: Configure the Function app to use an App Service hosting plan. Enable the Always On setting of the hosting plan.
  • C: Update the function to be stateful by using Durable Functions to process the request payload.
  • D: Update the functionTimeout property of the host.json project file to 15 minutes.

Correct Answer: C

Async operation tracking 
The HTTP response mentioned previously is designed to help implement long-running HTTP async APIs with Durable Functions. This pattern is sometimes referred to as the polling consumer pattern. 
Both the client and server implementations of this pattern are built into the Durable Functions HTTP APIs. 
Function app 
You perform local testing for the RequestUserApproval function. The following error message displays:
'Timeout value of 00:10:00 exceeded by function: RequestUserApproval'
The same error message displays when you test the function in an Azure development environment when you run the following Kusto query:
FunctionAppLogs 
| where FunctionName = = "RequestUserApproval" 
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-http-features




Question 4

You need to resolve a notification latency issue. 
Which two actions should you perform? Each correct answer presents part of the solution. 
NOTE: Each correct selection is worth one point.

  • A: Set Always On to true.
  • B: Ensure that the Azure Function is using an App Service plan.
  • C: Set Always On to false.
  • D: Ensure that the Azure Function is set to use a consumption plan.

Correct Answer: AB

Azure Functions can run on either a Consumption Plan or a dedicated App Service Plan. If you run in a dedicated mode, you need to turn on the Always On setting for your Function App to run properly. The Function runtime will go idle after a few minutes of inactivity, so only HTTP triggers will actually "wake up" your functions. This is similar to how WebJobs must have Always On enabled. 
Scenario: Notification latency: Users report that anomaly detection emails can sometimes arrive several minutes after an anomaly is detected. 
Anomaly detection service: You have an anomaly detection service that analyzes log information for anomalies. It is implemented as an Azure Machine Learning model. The model is deployed as a web service. 
If an anomaly is detected, an Azure Function that emails administrators is called by using an HTTP WebHook. 
Reference:
https://github.com/Azure/Azure-Functions/wiki/Enable-Always-On-when-running-on-dedicated-App-Service-Plan 




Question 5

You need to ensure that validation testing is triggered per the requirements. 
How should you complete the code segment? To answer, select the appropriate values in the answer area. 
NOTE: Each correct selection is worth one point.

Correct Answer: Exam simulator is required

Box 1: RepositoryUpdated
When a new version of the ContentAnalysisService is available the previous seven days of content must be processed with the new version to verify that the new version does not significantly deviate from the old version. 
Box 2: service
Box 3: imageCollection
Reference:
https://docs.microsoft.com/en-us/azure/devops/notifications/oob-supported-event-types




Question 6

You need to deploy the CheckUserContent Azure Function. The solution must meet the security and cost requirements. 
Which hosting model should you use?

  • A: Premium plan
  • B: App Service plan
  • C: Consumption plan

Correct Answer: B

Scenario: 
You must minimize costs for all Azure services. 
All Internal services must only be accessible from internal Virtual Networks (VNets). 
Best for long-running scenarios where Durable Functions can't be used. Consider an App Service plan in the following situations:
You have existing, underutilized VMs that are already running other App Service instances. 
You want to provide a custom image on which to run your functions. 
Predictive scaling and costs are required. 
Note: When you create a function app in Azure, you must choose a hosting plan for your app. There are three basic hosting plans available for Azure Functions: Consumption plan, Premium plan, and Dedicated (App Service) plan. 
Incorrect Answers:
A: A Premium plan would be more costly.
C: Need the VNET functionality.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale




Question 7

You need to access data from the user claim object in the e-commerce web app.
What should you do first?

  • A: Write custom code to make a Microsoft Graph API call from the e-commerce web app.
  • B: Assign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment API.
  • C: Update the e-commerce web app to read the HTTP request header values.
  • D: Using the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.

Correct Answer: C

Methods to Get User Identity and Claims in a .NET Azure Functions App include:
ClaimsPrincipal from the Request Context 
The ClaimsPrincipal object is also available as part of the request context and can be extracted from the HttpRequest.HttpContext. 
User Claims from the Request Headers. 
App Service passes user claims to the app by using special request headers. 
Reference:
https://levelup.gitconnected.com/four-alternative-methods-to-get-user-identity-and-claims-in-a-net-azure-functions-app-df98c40424bb 




Question 8

You need to deploy a new version of the LabelMaker application. 
Which three 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. 

Correct Answer: Exam simulator is required

Step 1: Build a new application image by using dockerfile
Step 2: Create an alias if the image with the fully qualified path to the registry
Before you can push the image to a private registry, you’ve to ensure a proper image name. This can be achieved using the docker tag command. For demonstration purpose, we’ll use Docker’s hello world image, rename it and push it to ACR. 
# pulls hello-world from the public docker hub 
$ docker pull hello-world 
# tag the image in order to be able to push it to a private registry 
$ docker tag hello-word <REGISTRY_NAME>/hello-world 
# push the image 
$ docker push <REGISTRY_NAME>/hello-world 
Step 3: Log in to the registry and push image
In order to push images to the newly created ACR instance, you need to login to ACR form the Docker CLI. 
Once logged in, you can push any existing docker image to your ACR instance. 
Scenario:
Coho Winery plans to move the application to Azure and continue to support label creation. 
LabelMaker app 
Azure Monitor Container Health must be used to monitor the performance of workloads that are deployed to Kubernetes environments and hosted on Azure Kubernetes Service (AKS). 
You must use Azure Container Registry to publish images that support the AKS deployment. 
References:
https://thorsten-hans.com/how-to-use-a-private-azure-container-registry-with-kubernetes-9b86e67b93b6
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-quick-task




Question 9

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?

  • A: Yes
  • B: No

Correct Answer: B

You need to catch the triggered event, so move the photo processing to an Azure Function triggered from the blob upload. 
Note: Azure Storage events allow applications to react to events. Common Blob storage event scenarios include image or video processing, search indexing, or any file-oriented workflow. 
Events are pushed using Azure Event Grid to subscribers such as Azure Functions, Azure Logic Apps, or even to your own http listener. 
However, the processing must start in less than one minute. 
Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. Storage (general purpose v1) does not support integration with Event Grid. 
Reference:
https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview




Question 10

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?

  • A: No
  • B: Yes

Correct Answer: A

Specify custom warm-up. 
Some apps might require custom warm-up actions before the swap. The applicationInitialization configuration element in web.config lets you specify custom initialization actions. The swap operation waits for this custom warm-up to finish before swapping with the target slot. Here's a sample web.config fragment. 
<system.webServer> 
    <applicationInitialization> 
        <add initializationPage="/" hostName="[app hostname]" /> 
        <add initializationPage="/Home/About" hostName="[app hostname]" /> 
    </applicationInitialization> 
</system.webServer> 
Reference:
https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots#troubleshoot-swaps










CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files