exam practice

Microsoft AZ-204 exam “Developing Solutions for Microsoft Azure”, get the latest updated AZ-204 exam questions and answers online, we share the AZ-204 exam questions in a variety of ways, you can practice the test online, download the free AZ-204 PDF.
Complete Microsoft AZ-204 exam dumps https://www.leads4pass.com/az-204.html (PDF +VCE). 324 exam questions and answers. 99.5% exam pass rate.
All issues are updated and corrected to ensure that they are true and effective.

Free Microsoft AZ-204 dumps PDF

The free AZ-204 dumps PDF comes from a part of the leads4pass AZ-204 exam dumps. leads4pass AZ-204 includes two modes of VCE and PDF, you can choose any.

Microsoft AZ-204 free online practice test

Annotation: 1. The question-answer is displayed at the end 2. The picture answer is displayed in the current

QUESTION 1

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 on the review screen.

You develop Azure solutions.

You must grant a virtual machine (VM) access to specific resource groups in Azure Resource Manager.

You need to obtain an Azure Resource Manager access token.

Solution: Use the Reader role-based access control (RBAC) role to authenticate the VM with Azure Resource Manager.

Does the solution meet the goal?

A. Yes
B. No

QUESTION 2

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 event filtering to evaluate the device identifier.
Does the solution meet the goal?

A. Yes
B. No

QUESTION 3

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.

QUESTION 4

DRAG-DROP

You plan to create a Docker image that runs as an ASP.NET Core application named ContosoApp.

You have a setup script named setup script. ps1 and a series of application files including ContosoApp.dll.

You need to create a Dockerfile document that meets the following requirements: Call setup script.ps1 when the container is built. Run ContosoApp.dll when the container starts.

The Docker document must be created in the same folder where ContosoApp.dll and setup script.ps1 is stored.

Which four commands should you use to develop the solution?

To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order. Select and Place:

microsoft az-204 exam questions q4
Correct Answer:
microsoft az-204 exam questions q4-1

Step 1: WORKDIR /apps/ContosoApp
Step 2: COPY ./The Docker document must be created in the same folder where ContosoApp.dll and setup script.ps1
are stored.
Step 3: EXPOSE ./ContosApp/ /app/ContosoApp
Step 4: CMD powershell ./setupScript.ps1
ENTRYPOINT [“dotnet”, “ContosoApp.dll”]
You need to create a Dockerfile document that meets the following requirements:
Call setup script.ps1 when the container is built.
Run ContosoApp.dll when the container starts.

References:
https://docs.microsoft.com/en-us/azure/app-service/containers/tutorial-custom-docker-image

QUESTION 5

A company is developing a solution that allows smart refrigerators to send temperature information to a central location. You have an existing Service Bus. The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance by providing a name, pricing tier, subscription, resource group, and location.
You need to complete the configuration.

Which Azure CLI or PowerShell command should you run?

microsoft az-204 exam questions q5

A. Option A
B. Option B
C. Option C
D. Option D

QUESTION 6

You are developing an e-commerce solution that uses a microservice architecture.
You need to design a communication backplane for communicating transactional messages between various parts of
the solution. Messages must be communicated in a first-in-first-out (FIFO) order.

What should you use?

A. Azure Storage Queue
B. Azure Event Hub
C. Azure Service Bus
D. Azure Event Grid

QUESTION 7

DRAG-DROP

You are developing a solution for a hospital to support the following use cases:
1. The most recent patient status details must be retrieved even if multiple users in different locations have updated the
patient record.
2. Patient health monitoring data retrieved must be the current version or the prior version.
3. After a patient is discharged and all charges have been assessed, the patient billing record contains the final charges.
You provision a Cosmos DB NoSQL database and set the default consistency level for the database account to Strong.
You set the value for Indexing Mode to Consistent.
You need to minimize latency and any impact on the availability of the solution. You must override the default
consistency level at the query level to meet the required consistency guarantees for the scenarios.
Which consistency levels should you implement? To answer, drag the appropriate consistency levels to the correct
requirements. Each consistency level may be used once, more than once, or not at all. You may need to drag the split
bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Select and Place:

microsoft az-204 exam questions q7

Correct Answer:

microsoft az-204 exam questions q7-1

Explanation:

Box 1: Strong
Strong: Strong consistency offers a linearizability guarantee. The reads are guaranteed to return the most recent
committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read
the latest committed write.

Box 2: Bounded staleness
Bounded staleness: The reads are guaranteed to honor the consistent prefix guarantee. The reads might lag behind
writes by at most “K” versions (that is “updates”) of an item or by “t” time interval. When you choose bounded staleness, the “staleness” can be configured in two ways:
The number of versions (K) of the item The time interval (t) by which the reads might lag behind the writes

Box 3: Eventual
Eventual: There\’s no ordering guarantee for reads. In the absence of any further writes, the replicas eventually
converge.
Incorrect Answers:
Consistent prefix: Updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix
guarantees that read never see out-of-order writes.

Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels

QUESTION 8

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.

A. Service Bus
B. Event Hub
C. Event Grid
D. Queue

QUESTION 9

HOTSPOT

You are configuring a new development environment for a Java application.
The environment requires a Virtual Machine Scale Set (VMSS), several storage accounts, and networking components.
The VMSS must not be created until the storage accounts have been successfully created and an associated load
balancer and virtual network are configured.

How should you complete the Azure Resource Manager template? To answer, select the appropriate options in the
answer area.

NOTE: Each correct selection is worth one point.
Hot Area:

microsoft az-204 exam questions q9
microsoft az-204 exam questions q9-1

Box 1: copyIndex
Notice that the name of each resource includes the copyIndex() function, which returns the current iteration in the loop. copy index() is zero-based.

Box 2: copy
By adding the copy element to the resources section of your template, you can dynamically set the number of resources to deploy.

Box 3: dependsOn
Example:
“type”: “Microsoft.Compute/virtualMachineScaleSets”, “apiVersion”: “2020-06-01”, “name”: “[variables(\’namingInfix\’)]”,
“location”: “[parameters(\’location\’)]”, “sku”: { “name”: “[parameters(\’vmSku\’)]”, “tier”: “Standard”, “capacity”:
“[parameters(\’instanceCount\’)]” }, “dependsOn”: [ “[resourceId(\’Microsoft.Network/loadBalancers\’,
variables(\’loadBalancerName\’))]”, “[resourceId(\’Microsoft.Network/virtualNetworks\’,
variables(\’virtualNetworkName\’))]” ],

Reference: https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/copy-resources
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/quick-create-template-windows

QUESTION 10

A company is developing a solution that allows smart refrigerators to send temperature information to a central location.

You have an existing Service Bus.

The solution must receive and store messages until they can be processed. You create an Azure Service Bus instance
by providing a name, pricing tier, subscription, resource group, and location. You need to complete the configuration.

microsoft az-204 exam questions q10

Which Azure CLI or PowerShell command should you run?

A. Option A
B. Option B
C. Option C
D. Option D

QUESTION 11

You need to monitor ContentUploadService according to the requirements. Which command should you use?

A. az monitor metrics alert create –n alert –g … – -scopes … – -condition “avg Percentage CPU > 8”
B. az monitor metrics alert create –n alert –g … – -scopes … – -condition “avg Percentage CPU > 800”
C. az monitor metrics alert create –n alert –g … – -scopes … – -condition “CPU Usage > 800”
D. az monitor metrics alert create –n alert –g … – -scopes … – -condition “CPU Usage > 8”

QUESTION 12

DRAG-DROP

You need to add code at line EG15 in EventGridController.cs to ensure that the Log policy applies to all services.
How should you complete the code? To answer, drag the appropriate code segments to the correct locations. Each
code segment may be used once, more than once, or not at all. You may need to drag the split bar between panes or
scroll to view content.

NOTE: Each correct selection is worth one point.
Select and Place:

microsoft az-204 exam questions q12

Correct Answer:

microsoft az-204 exam questions q12-1

Scenario, Log policy: All Azure App Service Web Apps must write logs to Azure Blob storage.

Box 1: Status

Box 2: Succeeded

Box 3: operation name
Microsoft.Web/sites/write is a resource provider operation. It creates a new Web App or updates an existing one.

Reference: https://docs.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations

QUESTION 13

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains
a unique solution. Determine whether the solution meets the stated goals.

You are developing and deploying several ASP.NET web applications to Azure App Service.

You plan to save session state information and HTML output. You must use a storage mechanism with the following requirements:

1. Share session state across all ASP.NET web applications.
2. Support controlled concurrent access to the same session state data for multiple readers and a single writer.
3. Save full HTTP responses for concurrent requests. You need to store the information.

Proposed Solution: Deploy and configure Azure Cache for Redis. Update the web applications.
Does the solution meet the goal?

A. Yes
B. No

QUESTION 14

HOTSPOT

You need to configure security and compliance for the corporate website files.
Which Azure Blob storage settings should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Correct Answer:

Box 1: role-based access control (RBAC)
Azure Storage supports authentication and authorization with Azure AD for the Blob and Queue services via Azure role-based access control (Azure RBAC).
Scenario: File access must restrict access by IP, protocol, and Azure AD rights.

Box 2: storage account type
Scenario: The website uses files stored in Azure Storage
Auditing of the file updates and transfers must be enabled to comply with General Data Protection Regulation (GDPR).

Creating a diagnostic setting:
1. Sign in to the Azure portal.
2. Navigate to your storage account.
3. In the Monitoring section, click Diagnostic settings (preview).
4. Choose the file as the type of storage that you want to enable logs for.
5. Click Add diagnostic setting.

Reference: https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction https://docs.microsoft.com/enus/azure/storage/files/storage-files-monitoring

QUESTION 15

A company uses Azure SQL Database to store data for an app. The data includes sensitive information.
You need to implement measures that allow only members of the manager’s group to see sensitive information.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

A. Include the manager’s group.
B. Exclude the manager’s group.
C. Exclude the administrator’s group.
D. Navigate to the following URL: PUT https://management.azure.com/subscriptions/00000000-1111-2222-3333-44444
4444444/resouceGroupos/rg01/providers/Microsoft.Sql/servers/server01/databases/customers/transparentDataEncryption/current?api-version=2014-04-01
E. Run the following Azure PowerShell command: New-AzureRmSqlDatabaseDataMaskingRule -SchemaName “dbo”
-TableName “customers” -ColumnName “ssn” -MaskingFunction “Default”

Solutions:

NumberAnswerWhy
QUESTION 1BInstead, run the Invoke-RestMethod cmdlet to make a request to the local managed identity for the Azure resource’s endpoint.

Reference: https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/tutorial-windowsvm-access-arm
QUESTION 2BInstead use an Azure Service Bus, which is used for order processing and financial transactions.
Note: An event is a lightweight notification of a condition or a state change. Event hubs are usually used to react to status changes.

Reference:
https://docs.microsoft.com/en-us/azure/event-grid/compare-messaging-services
QUESTION 3ABAzure 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-ServicePlan
QUESTION 5AA service bus instance has already been created (Step 2 below). Next is step 3, Create a Service Bus queue.
Note:
Steps:

Step 1: # Create a resource group
resourceGroupName=”myResourceGroup”
az group create –name $resourceGroupName –location Erastus

Step 2: # Create a Service Bus messaging namespace with a unique name
namespaceName=myNameSpace$RANDOM az servicebus namespace create –resource-group $resourceGroupName –name $namespaceName –location eastus

Step 3: # Create a Service Bus queue
az servicebus queue create –resource-group $resourceGroupName –namespace-name $namespaceName –name BasicQueue

Step 4: # Get the connection string for the namespace
connectionString=$(az servicebus namespace authorization-rule keys list –resource-group $resourceGroupName –namespace-name $namespaceName –name RootManageSharedAccessKey –query primaryConnectionString
–output tsv)

Reference:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli
QUESTION 6AAs a solution architect/developer, you should consider using Service Bus queues when:
Your solution requires the queue to provide a guaranteed first-in-first-out (FIFO) ordered delivery.
Reference:

https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-azure-and-service-bus-queues-comparedcontrasted
QUESTION 8ACIt is strongly recommended to use available messaging products and services that support a publish-subscribe model, rather than building your own. In Azure, consider using Service Bus or Event Grid. Other technologies that can be used for pub/sub messaging include Redis, RabbitMQ, and Apache Kafka.

Reference: https://docs.microsoft.com/en-us/azure/architecture/patterns/publisher-subscriber
QUESTION 10DA service bus instance has already been created (Step 2 below). Next is step 3, Create a Service Bus queue. Note: Steps:

Step 1: # Create a resource group
resourceGroupName=”myResourceGroup” az group create –name $resourceGroupName –location Erastus

Step 2: # Create a Service Bus messaging namespace with a unique name
namespaceName=myNameSpace$RANDOM az servicebus namespace create –resource-group $resourceGroupName –name $namespaceName –location eastus

Step 3: # Create a Service Bus queue
az servicebus queue create –resource-group $resourceGroupName –namespace-name $namespaceName –name BasicQueue

Step 4: # Get the connection string for the namespace
connectionString=$(az servicebus namespace authorization-rule keys list –resource-group $resourceGroupName –namespace-name $namespaceName –name RootManageSharedAccessKey –query primaryConnectionString –output tsv)

References:
https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-quickstart-cli
QUESTION 11BScenario: An alert must be raised if the ContentUploadService uses more than 80 percent of available CPU-cores

Reference: https://docs.microsoft.com/sv-se/cli/azure/monitor/metrics/alert
QUESTION 13AThe session state provider for Azure Cache for Redis enables you to share session information between different instances of an ASP.NET web application.
The same connection can be used by multiple concurrent threads.
Redis supports both read and write operations.
The output cache provider for Azure Cache for Redis enables you to save the HTTP responses generated by an ASP.NET web application.

Note: Using the Azure portal, you can also configure the eviction policy of the cache, and control access to the cache by adding users to the roles provided. These roles, which define the operations that members can perform, include Owner, Contributor, and Reader. For example, members of the Owner role have complete control over the cache (including security) and its contents, members of the Contributor role can read and write information in the cache, and members of the Reader role can only retrieve data from the cache.

Reference: https://docs.microsoft.com/en-us/azure/architecture/best-practices/caching
QUESTION 15BEDynamic data masking helps prevent unauthorized access to sensitive data by enabling customers to designate how much of the sensitive data to reveal with minimal impact on the application layer.
SQL users excluded from masking – A set of SQL users or AAD identities that get unmasked data in the SQL query results.

Note: The New-AzureRmSqlDatabaseDataMaskingRule cmdlet creates a data masking rule for an Azure SQL database.

References: https://docs.microsoft.com/en-us/powershell/module/azurerm.sql/newazurermsqldatabasedatamaskingrule?view=azurermps-6.13.0
Get MoreAZ-204 Dumpshttps://www.leads4pass.com/az-204.html (Total Questions: 324 Q&A)

Summary:

We share the latest updated Microsoft Azure 204 exam practice questions for free to help you understand the current exam situation and improve your exam experience.
The free AZ-204 exam practice questions cannot help you pass the exam 100% successfully. If you want to pass the exam successfully for the first time, please choose leads4pass Azure 204 exam dumps

ps.

The free AZ-204 dumps PDF comes from a part of the leads4pass AZ-204 exam dumps. leads4pass AZ-204 includes two modes of VCE and PDF, you can choose any

Author