Microsoft Developing Solutions for Microsoft Azure - AZ-204 Exam Practice Test

You develop and deploy an Azure Logic app that calls an Azure Function app. The Azure Function app includes an OpenAPI (Swagger) definition and uses an Azure Blob storage account.
All resources are secured by using Azure Active Directory (Azure AD).
The Azure Logic app must securely access the Azure Blob storage account. Azure AD resources must remain if the Azure Logic app is deleted.
You need to secure the Azure Logic app.
What should you do?
Correct Answer: E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Hotspot Question
You have an Azure Blob Storage account named account1.
You plan to grant permissions for access to blobs in account1 by using a combination of a shared access signature token and a stored access policy. You must set the duration of the token validity by using the stored access policy.
You need to complete the configuration of the stored access policy and generate the shared access signature token.
Which token setting and token type should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:
You are designing a web application to manage user satisfaction surveys. The number of questions that a survey includes is variable.
Application users must be able to display results for a survey as quickly as possible. Users must also be able to quickly compute statistical measures including average values across various groupings of answers.
Which Azure Cosmos 06 API should you use for the application?
Correct Answer: D
You develop an Azure App Service web app and deploy to a production environment. You enable Application Insights for the web app.
The web app is throwing multiple exceptions in the environment.
You need to examine the state of the source code and variables when the exceptions are thrown.
Which Application Insights feature should you configure?
Correct Answer: D
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
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 web app named WebApp1 and an Azure Functions app named Function1. WebApp1 is associated with an Application Insights instance named appinsights1.
You configure a web test and a corresponding alert for WebApp1 in appinsights1. Each alert triggers a delivery of email to your mailbox.
You need to ensure that each alert also triggers execution of Function1.
Solution: Configure an Azure Monitor Insights workbook.
Does the solution meet the goal?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You are developing a solution that will use Azure messaging services.
You need to ensure that the solution uses a publish-subscribe model and eliminates the need for constant polling.
What are two possible ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Correct Answer: A,B
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
A company maintains multiple web and mobile applications. Each application uses custom in- house identity providers as well as social identity providers.
You need to implement single sign-on (SSO) for all the applications.
What should you do?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Drag and Drop Question
You have an Azure subscription.
You must create a file share with a quota of 2,048 GB. You create the following variables:

In which order should you arrange the Azure CLI commands to develop the solution? To answer, move all the commands from the list of commands to the answer area and arrange them in the correct order.
Correct Answer:

Explanation:
Step 1:
Create a resource group
A resource group is a logical container in which Azure resources are deployed and managed. If you don't already have an Azure resource group, you can use the az group create command to create one.
The following example creates a resource group named myResourceGroup in the East US location:
az group create --name myResourceGroup --location eastus
Step 2:
Create a storage account
The following example creates a storage account named mystorageaccount<random number> by using the az storage account create command, and then puts the name of that storage account in the $STORAGEACCT variable.
STORAGEACCT=$(az storage account create \
--resource-group "myResourceGroup" \
--name "mystorageacct$RANDOM" \
--location eastus \
--sku Standard_LRS \
--query "name" | tr -d '"')
Step 3:
Get the storage account key
Storage account keys control access to resources in a storage account. The keys are automatically created when you create a storage account. You can get the storage account keys for your storage account by using the az storage account keys list command:
STORAGEKEY=$(az storage account keys list \
--resource-group "myResourceGroup" \
--account-name $STORAGEACCT \
--query "[0].value" | tr -d '"')
Step 4:
Now, you can create your Azure file share. Create file shares by using the az storage share create command. This example creates an Azure file share named myshare:
az storage share create \
--account-name $STORAGEACCT \
--account-key $STORAGEKEY \
--name "myshare"
References:
https://docs.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-cli
You are developing an application to store business-critical data in Azure Blob storage.
The application must meet the following requirements:
- Data must not be modified or deleted for a user-specified interval.
- Data must be protected from overwrites and deletes.
- Data must be written once and allowed to be read many times.
You need to protect the data in the Azure Blob storage account.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.
Correct Answer: D,E
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
Drag and Drop Question
You are developing a software solution for an autonomous transportation system. The solution uses large data sets and Azure Batch processing to simulate navigation sets for entire fleets of vehicles.
You need to create compute nodes for the solution on Azure Batch.
What should you do?
Correct Answer:

Explanation:
With Python:
Step 1: In the Azure portal, create a Batch account.
First we create a batch account.
Step 2: In Python, implement the class: PoolAddParameter Now that you have a Batch account, create a sample pool of Windows compute nodes for test purposes. To create a Batch pool, the app uses the PoolAddParameter class to set the number of nodes, VM size, and a pool configuration.
Step 3: In Python, implement the class: JobAddParameter
Now that you have a pool, create a job to run on it. A Batch job is a logical group for one or more tasks. A job includes settings common to the tasks, such as priority and the pool to run tasks on.
Initially the job has no tasks. The app uses the JobAddParameter class to create a job on your pool.
Step 4: In Python, implement the class: TaskAddParameter Now create sample tasks to run in the job. Typically you create multiple tasks that Batch queues and distributes to run on the compute nodes. The app creates a list of task objects using the TaskAddParameter class.
References:
https://docs.microsoft.com/en-us/azure/batch/quick-create-portal
https://docs.microsoft.com/en-us/azure/batch/quick-run-python
You are developing a set of RESTful APIs that will be consumed by external partners.
You must expose the APIs securely through Azure API Management. You have the following requirements:
- Only authenticated and authorized clients must be able to access the
APIs.
- Control over the number of API calls to prevent abuse and ensure fair usage must be implemented.
- Data transformation and validation on incoming requests and outgoing
responses must be performed without modifying the back-end services.
- Insights into API usage patterns, performance metrics, and anomaly
detection must be gathered.
You need to implement the APIs.
What should you do?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
You develop an ASP. Net Care application by integrating the Application Insights SDK into your solution.
The application sends a very high rate of telemetry in a short time interval. You observe a reduced number of events, traces, and metrics being recorded and increased error rates for telemetry ingestion. Telemetry data must synchronize the client and server information to allow HTTP request and response correlation.
You need to reduce telemetry traffic, data costs, and storage costs while preserving a statistically correct analysis of application telemetry data.
What should you do?
Correct Answer: A
Explanation: Only visible for TrainingDump members. You can sign-up / login (it's free).
0
0
0
0