최신 AZ-204 무료덤프 - Microsoft Developing Solutions for Microsoft Azure
Hotspot Question
You plan to deploy a web app to App Service on Linux. You create an App Service plan. You create and push a custom Docker image that contains the web app to Azure Container Registry.
You need to access the console logs generated from inside the container in real-time.
How should you complete the Azure CLI command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You plan to deploy a web app to App Service on Linux. You create an App Service plan. You create and push a custom Docker image that contains the web app to Azure Container Registry.
You need to access the console logs generated from inside the container in real-time.
How should you complete the Azure CLI command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

정답:

Explanation:
Box 1: config
To Configure logging for a web app use the command:
az webapp log config
Box 2: --docker-container-logging
Syntax include:
az webapp log config [--docker-container-logging {filesystem, off}]
Box 3: webapp
To download a web app's log history as a zip file use the command:
az webapp log download
Box 4: tail
It is the only way to access console log in real time.
Reference:
https://docs.microsoft.com/en-us/cli/azure/webapp/log
https://docs.microsoft.com/en-us/cli/azure/webapp/log?view=azure-cli-latest#az-webapp-log-tail
You develop an ASP.NET Core app that uses Azure App Configuration. You also create an App Configuration containing 100 settings.
The app must meet the following requirements:
- Ensure the consistency of all configuration data when changes to
individual settings occur.
- Handle configuration data changes dynamically without causing the
application to restart.
- Reduce the overall number of requests made to App Configuration APIs.
You must implement dynamic configuration updates in the app.
What are two ways to achieve this goal? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
The app must meet the following requirements:
- Ensure the consistency of all configuration data when changes to
individual settings occur.
- Handle configuration data changes dynamically without causing the
application to restart.
- Reduce the overall number of requests made to App Configuration APIs.
You must implement dynamic configuration updates in the app.
What are two ways to achieve this goal? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
정답: C,F
설명: (DumpTOP 회원만 볼 수 있음)
You develop and deploy an ASP.NET Core application that connects to an Azure Database for MySQL instance.
Connections to the database appear to drop intermittently and the application code does not handle the connection failure.
You need to handle the transient connection errors in code by implementing retries.
What are three possible ways to achieve this goal? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Connections to the database appear to drop intermittently and the application code does not handle the connection failure.
You need to handle the transient connection errors in code by implementing retries.
What are three possible ways to achieve this goal? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
정답: A,C,E
설명: (DumpTOP 회원만 볼 수 있음)
Drag and Drop Question
You develop a web app that uses tier D1 app service plan by using the Web Apps feature of Microsoft Azure App Service.
Spikes in traffic have caused increases in page load times.
You need to ensure that the web app automatically scales when CPU load is about 85 percent and minimize costs.
Which four 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.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

You develop a web app that uses tier D1 app service plan by using the Web Apps feature of Microsoft Azure App Service.
Spikes in traffic have caused increases in page load times.
You need to ensure that the web app automatically scales when CPU load is about 85 percent and minimize costs.
Which four 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.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.

정답:
Step 1: Configure the web app to the Standard App Service Tier
The Standard tier supports auto-scaling, and we should minimize the cost.
Step 2: Enable autoscaling on the web app
First enable autoscale
Step 3: Add a Scale condition
Step 4: Add a scale rule
Scale rule is within the Scale condition.
Reference:
https://docs.microsoft.com/en-us/learn/modules/app-service-autoscale-rules/6-autoscale-a-web-app
The Standard tier supports auto-scaling, and we should minimize the cost.
Step 2: Enable autoscaling on the web app
First enable autoscale
Step 3: Add a Scale condition
Step 4: Add a scale rule
Scale rule is within the Scale condition.
Reference:
https://docs.microsoft.com/en-us/learn/modules/app-service-autoscale-rules/6-autoscale-a-web-app
Hotspot Question
You are developing an IoT solution.
The solution requires bidirectional communication between a client .NET application and Azure IoT hub. A .NET back-end application will connect to the IoT Hub to process information.
You need to collect the values required for the back-end application to connect with the newly created IoT Hub.
How should you complete the commands? To answer, select the appropriate options in the answer area.

You are developing an IoT solution.
The solution requires bidirectional communication between a client .NET application and Azure IoT hub. A .NET back-end application will connect to the IoT Hub to process information.
You need to collect the values required for the back-end application to connect with the newly created IoT Hub.
How should you complete the commands? To answer, select the appropriate options in the answer area.

정답:

Explanation:
Box 1: show
Event Hub-compatible endpoint
az iot hub show --query properties.eventHubEndpoints.events.endpoint --name {your IoT Hub name} Box 2: show Event Hub-compatible name az iot hub show --query properties.eventHubEndpoints.events.path --name {your IoT Hub name} Box 3: show az iot hub policy show --name iothubowner --query primaryKey --hub-name {your IoT Hub name} Box 4: primaryKey References:
https://github.com/Azure-Samples/azure-iot-samples-csharp/blob/master/iot-hub/Quickstarts/read-d2c-messages/ReadDeviceToCloudMessages.cs
You develop and deploy a web application to Azure App Service. The application accesses data stored in an Azure Storage account. The account contains several containers with several blobs with large amounts of data. You deploy all Azure resources to a single region.
You need to move the Azure Storage account to the new region. You must copy all data to the new region.
What should you do first?
You need to move the Azure Storage account to the new region. You must copy all data to the new region.
What should you do first?
정답: F
설명: (DumpTOP 회원만 볼 수 있음)
You have to build a web application that would be deployed onto Azure. The web application would not allow anonymous access. The authentication would be carried out via Azure AD.
The application needs to above by the following requirements
- Users must be able to log into the web application using their Azure
AD credentials
- The personalization of the web application must be based on the
membership in Active Directory groups
You have to configure the application manifest file:

Which of the following would go into Slot 2?
The application needs to above by the following requirements
- Users must be able to log into the web application using their Azure
AD credentials
- The personalization of the web application must be based on the
membership in Active Directory groups
You have to configure the application manifest file:

Which of the following would go into Slot 2?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)
Members of the finance department for a company review and make changes to a Microsoft Excel workbook that is hosted on OneDrive. The workbook contains projected costs and revenue for a project.
You need to develop an Azure Function that ingests data from the modified workbook and places it into a Microsoft Word document.
Which two objects should you implement? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
You need to develop an Azure Function that ingests data from the modified workbook and places it into a Microsoft Word document.
Which two objects should you implement? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
정답: A,E
설명: (DumpTOP 회원만 볼 수 있음)
Hotspot Question
You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue.
A rule already exists to scale up the App Service when the average queue length of unprocessed and valid queue messages is greater than 1000.
You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met.
How should you configure the Scale rule? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue.
A rule already exists to scale up the App Service when the average queue length of unprocessed and valid queue messages is greater than 1000.
You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met.
How should you configure the Scale rule? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

정답:

Explanation:
Box 1: Service bus queue
You are developing a back-end Azure App Service that scales based on the number of messages contained in a Service Bus queue.
Box 2: ActiveMessage Count
ActiveMessageCount: Messages in the queue or subscription that are in the active state and ready for delivery.
Box 3: Average
For special metrics such as Storage or Service Bus Queue length metric, the threshold is the average number of messages available per current number of instances.
Box 4: Less than or equal to
You need to add a new rule that will continuously scale down the App Service as long as the scale up condition is not met.
Box 5: Decrease count by
Reference:
https://docs.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-best-practices#considerations-for-scaling-threshold-values-for-special-metrics
https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-counters
Case Study 4 - Best for You Organics
Background
Best for You Organics Company is a global restaurant franchise that has multiple locations. The company wants to enhance user experiences and vendor integrations. The company plans to implement automated mobile ordering and delivery services.
Best For You Organics hosts an Azure web app at the URL https://www.bestforyouorganics.com.
Users can use the web app to browse restaurant locations, menu items, nutritional, information, and company information. The company developed and deployed a cross-platform mobile app.
Requirements
You must develop a chartbot by using the Bot Builder SDK and Language Understanding Intelligence Service (LUIS). The chatbot must allow users to order food for pickup or delivery.
The chatbot must meet the following requirements:
* Ensure that chatbot endpoint can be accessed only by the Bot Framework connector.
* Use natural language processing and speech recognition so that users can interact with the
chatbot by using text and voice. Processing must be server-based.
* Alert users about promotions at local restaurants.
* Enable users to place an order for delivery or pickup by using their voice.
* Greet the user upon sign-in by displaying a graphical interface that contains action buttons.
* The chatbot greeting interface must match the formatting of the following example:

Vendor API
Vendors receive and provide updates for the restaurant inventory and delivery services by using Azure API Management hosted APIs. Each vendor uses their own subscription to access each of the APIs.
APIs must meet the following conditions:
* API usage must not exceed 5,000 calls and 50,000 kilobytes of bandwidth per hour per vendor.
* If a vendor is nearing the number of calls or bandwidth limit, the API must trigger email
notifications to the vendor.
* APIs must prevent API usage spikes on a per-subscription basis by limiting the call rate to 100
calls per minute.
* The Inventory API must be written by using ASP.NET Core and Node.js.
* The API must be updated to provide an interface to Azure SQL Database. Database objects
must be managed by using code.
* The Delivery API must be protected by using the OAuth 2.0 protocol with Azure Active Directory
(Azure AD) when called from the Azure web app. You register the Delivery API and web app in Azure AD. You enable OAuth 2.0 in the web app.
* The delivery API must update the Products table, the Vendor transactions table, and the Billing
table in a single transaction.
The Best For You Organics Company architecture team has created the following diagram depicting the expected deployments into Azure:

Delivery API
The Delivery API intermittently throws the following exception:

Chatbot greeting
The chatbot's greeting does not show the user's name. You need to debug the chatbot locally.
Language processing
Users report that the bot fails to understand when a customer attempts to order dishes that use Italian names.
Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.
Startup.cs

You need to resolve the delivery API error.
What should you do?
Background
Best for You Organics Company is a global restaurant franchise that has multiple locations. The company wants to enhance user experiences and vendor integrations. The company plans to implement automated mobile ordering and delivery services.
Best For You Organics hosts an Azure web app at the URL https://www.bestforyouorganics.com.
Users can use the web app to browse restaurant locations, menu items, nutritional, information, and company information. The company developed and deployed a cross-platform mobile app.
Requirements
You must develop a chartbot by using the Bot Builder SDK and Language Understanding Intelligence Service (LUIS). The chatbot must allow users to order food for pickup or delivery.
The chatbot must meet the following requirements:
* Ensure that chatbot endpoint can be accessed only by the Bot Framework connector.
* Use natural language processing and speech recognition so that users can interact with the
chatbot by using text and voice. Processing must be server-based.
* Alert users about promotions at local restaurants.
* Enable users to place an order for delivery or pickup by using their voice.
* Greet the user upon sign-in by displaying a graphical interface that contains action buttons.
* The chatbot greeting interface must match the formatting of the following example:

Vendor API
Vendors receive and provide updates for the restaurant inventory and delivery services by using Azure API Management hosted APIs. Each vendor uses their own subscription to access each of the APIs.
APIs must meet the following conditions:
* API usage must not exceed 5,000 calls and 50,000 kilobytes of bandwidth per hour per vendor.
* If a vendor is nearing the number of calls or bandwidth limit, the API must trigger email
notifications to the vendor.
* APIs must prevent API usage spikes on a per-subscription basis by limiting the call rate to 100
calls per minute.
* The Inventory API must be written by using ASP.NET Core and Node.js.
* The API must be updated to provide an interface to Azure SQL Database. Database objects
must be managed by using code.
* The Delivery API must be protected by using the OAuth 2.0 protocol with Azure Active Directory
(Azure AD) when called from the Azure web app. You register the Delivery API and web app in Azure AD. You enable OAuth 2.0 in the web app.
* The delivery API must update the Products table, the Vendor transactions table, and the Billing
table in a single transaction.
The Best For You Organics Company architecture team has created the following diagram depicting the expected deployments into Azure:

Delivery API
The Delivery API intermittently throws the following exception:

Chatbot greeting
The chatbot's greeting does not show the user's name. You need to debug the chatbot locally.
Language processing
Users report that the bot fails to understand when a customer attempts to order dishes that use Italian names.
Relevant portions of the app files are shown below. Line numbers are included for reference only and include a two-character prefix that denotes the specific file to which they belong.
Startup.cs

You need to resolve the delivery API error.
What should you do?
정답: D
설명: (DumpTOP 회원만 볼 수 있음)
Drag and Drop Question
You have downloaded an Azure Resource Manager template to deploy numerous virtual machines. The template is based on a current virtual machine, but must be adapted to reference an administrative password.
You need to make sure that the password is not stored in plain text.
You are preparing to create the necessary components to achieve your goal.
Which of the following should you create to achieve your goal? Answer by dragging the correct option from the list to the answer area.

You have downloaded an Azure Resource Manager template to deploy numerous virtual machines. The template is based on a current virtual machine, but must be adapted to reference an administrative password.
You need to make sure that the password is not stored in plain text.
You are preparing to create the necessary components to achieve your goal.
Which of the following should you create to achieve your goal? Answer by dragging the correct option from the list to the answer area.

정답:

Explanation:
Using Key Vault we create a secret containing our Password.
https://docs.microsoft.com/en-us/azure/key-vault/secrets/quick-create-portal .
Using an Access Policy we allow access to the previously created secret.
https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/key-vault-parameter?tabs=azure-cli
You are developing several microservices to run on Azure Container Apps for a company.
External TCP ingress traffic from the internet has been enabled for the microservices.
The company requires that the microservices must scale based on an Azure Event Hub trigger.
You need to scale the microservices by using a custom scaling rule.
Which two Kubernetes Event-driven Autoscaling (KEDA) trigger fields should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
External TCP ingress traffic from the internet has been enabled for the microservices.
The company requires that the microservices must scale based on an Azure Event Hub trigger.
You need to scale the microservices by using a custom scaling rule.
Which two Kubernetes Event-driven Autoscaling (KEDA) trigger fields should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
정답: A,E
Hotspot Question
You are developing a solution that uses the Azure Storage Client library for .NET. You have the following code: (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

You are developing a solution that uses the Azure Storage Client library for .NET. You have the following code: (Line numbers are included for reference only.)

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.

정답:

Explanation:
Box 1: Yes
AcquireLeaseAsync does not specify leaseTime.
leaseTime is a TimeSpan representing the span of time for which to acquire the lease, which will be rounded down to seconds. If null, an infinite lease will be acquired. If not null, this must be 15 to 60 seconds.
Box 2: No
The GetBlockBlobReference method just gets a reference to a block blob in this container.
Box 3: Yes
The BreakLeaseAsync method initiates an asynchronous operation that breaks the current lease on this container.
Reference:
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.acquireleaseasync
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.getblockblobreference
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.storage.blob.cloudblobcontainer.breakleaseasync
You manage an Azure SQL database that allows for Azure AD authentication.
You need to make sure that database developers can connect to the SQL database via Microsoft SQL Server Management Studio (SSMS). You also need to make sure the developers use their on-premises Active Directory account for authentication. Your strategy should allow for authentication prompts to be kept to a minimum.
Which of the following should you implement?
You need to make sure that database developers can connect to the SQL database via Microsoft SQL Server Management Studio (SSMS). You also need to make sure the developers use their on-premises Active Directory account for authentication. Your strategy should allow for authentication prompts to be kept to a minimum.
Which of the following should you implement?
정답: B
설명: (DumpTOP 회원만 볼 수 있음)