Why Choose Lead4Pass AZ-204 Dumps?

why choose lead4pass az-204 dumps

Lead4Pass AZ-204 Dumps: https://www.leads4pass.com/az-204.html is currently the latest exam preparation materials, including 393 exam questions and answers, verified by a professional team to be true and effective.

And provide PDF and VCE two of the most portable learning tools to help candidates complete all exam questions efficiently and finally successfully pass the Developing Solutions for Microsoft Azure exam.

Latest AZ-204 exam questions and answers

Read some AZ-204 exam questions and answers online

Number of exam questionsExam nameExam code
15Developing Solutions for Microsoft AzureAZ-204
Question 1:

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 on 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

Correct Answer: B

Instead 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 2:

HOTSPOT

A company is developing a Node.js web app. The web app code is hosted in a GitHub repository located at https://github.com/TailSpinToys/webapp.

The web app must be reviewed before it is moved to production. You must deploy the initial code release to a deployment slot named review.

You need to create the web app and deploy the code.

How should you complete the commands? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 2

Correct Answer:

az-204 questions 2-1

Box 1: New-AzResourceGroup

The New-AzResourceGroup cmdlet creates an Azure resource group. Box 2: New-AzAppServicePlan The New-AzAppServicePlan cmdlet creates an Azure App Service plan in a given location

Box 3: New-AzWebApp

The New-AzWebApp cmdlet creates an Azure Web App in a given resource group Box 4: New-AzWebAppSlot The New-AzWebAppSlot cmdlet creates an Azure Web App slot.

Reference: https://docs.microsoft.com/en-us/powershell/module/az.resources/new-azresourcegroup?view=azps-2.3.2 https://docs.microsoft.com/en-us/powershell/module/az.websites/new-azappserviceplan?view=azps-2.3.2 https://docs.microsoft.com/en-us/powershell/module/az.websites/new-azwebapp?view=azps-2.3.2 https://docs.microsoft.com/en-us/powershell/module/az.websites/new-azwebappslot?view=azps-2.3.2

Question 3:

You are building a website that uses Azure Blob storage for data storage. You configure the Azure Blob storage lifecycle to move all blobs to the archive tier after 30 days.

Customers have requested a service-level agreement (SLA) for viewing data older than 30 days.

You need to document the minimum SLA for data recovery.

Which SLA should you use?

A. at least two days

B. between one and 15 hours

C. at least one day

D. between zero and 60 minutes

Correct Answer: B

The archive access tier has the lowest storage cost. But it has higher data retrieval costs compared to the hot and cool tiers. Data in the archive tier can take several hours to retrieve depending on the priority of the rehydration. For small objects, a high-priority rehydrate may retrieve the object from the archive in under 1 hour.

Reference: https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers?tabs=azure-portal

Question 4:

HOTSPOT

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.

Hot Area:

az-204 questions 4

Correct Answer:

az-204 questions 4-1

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: Count

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

Question 5:

HOTSPOT

You are creating a CLI script that creates Azure web app-related services in Azure App Service. The web app uses the following variables:

az-204 questions 5

You need to automatically deploy code from GitHub to the newly created web app.

How should you complete the script? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 5-1

Correct Answer:

az-204 questions 5-2

Box 1: az appservice plan create

The azure group creates a command that successfully returns JSON results. Now we can use the resource group to create an azure app service plan

Box 2: az webapp create

Create a new web app.

Box 3: –plan $webappname

..with the service plan, we created in step.

Box 4: az web app deployment

Continuous Delivery with GitHub. Example:

az webapp deployment source config –name firstsamplewebsite1 –resource-group websites–repo-URL $gitrepo –branch master –git-token $token

Box 5: –repo-URL $gitrepo –branch master –manual-integration

References:

https://medium.com/@satish1v/devops-your-way-to-azure-web-apps-with-azure-cli-206ed4b3e9b1

Question 6:

HOTSPOT

A company is developing a gaming platform. Users can join teams to play online and see leaderboards that include player statistics. The solution includes an entity named Team.

You plan to implement an Azure Redis Cache instance to improve the efficiency of data operations for entities that rarely change.

You need to invalidate the cache when team data is changed.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 6

Correct Answer:

az-204 questions 6-1

Box 1: IDatabase cache = connection.GetDatabase();

Connection refers to a previously configured ConnectionMultiplexer.

Box 2: cache.StringSet(“teams”,”)

To specify the expiration of an item in the cache, use the TimeSpan parameter of StringSet.

cache.StringSet(“key1”, “value1”, TimeSpan.FromMinutes(90));

Reference:

https://azure.microsoft.com/sv-se/blog/lap-around-azure-redis-cache-preview/

https://docs.microsoft.com/en-us/cli/azure/webapp/config/container

Question 7:

HOTSPOT

You need to configure Azure Service Bus to Event Grid integration.

Which Azure Service Bus settings should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 7

Correct Answer:

az-204 questions 7-1

Box 1: Premium Service Bus can now emit events to Event Grid when there are messages in a queue or a subscription when no receivers are present.

You can create Event Grid subscriptions to your Service Bus namespaces, listen to these events, and then react to the events by starting a receiver.

With this feature, you can use Service Bus in reactive programming models.

To enable the feature, you need the following items:

A Service Bus Premium namespace with at least one Service Bus queue or a Service Bus topic with at least one subscription. Contributor access to the Service Bus namespace.

Box 2: Contributor

Reference: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-to-event-grid-integration-concept

Question 8:

DRAG DROP

You are maintaining an existing application that uses an Azure Blob GPv1 Premium storage account. Data older than three months is rarely used.

Data newer than three months must be available immediately. Data older than a year must be saved but does not need to be available immediately.

You need to configure the account to support a lifecycle management rule that moves blob data to archive storage for data not modified in the last year.

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.

Select and Place:

az-204 questions 8

Correct Answer:

az-204 questions 8-1

Step 1: Upgrade the storage account to GPv2

Object storage data tiering between hot, cool, and archive is supported in Blob Storage and General Purpose v2 (GPv2) accounts. General Purpose v1 (GPv1) accounts don’t support tiering.

You can easily convert your existing GPv1 or Blob Storage accounts to GPv2 accounts through the Azure portal.

Step 2: Copy the data to be archived to a Standard GPv2 storage account and then delete the data from the original storage account

Step 3: Change the storage account access tier from hot to cool

Note Hot – Optimized for storing data that is accessed frequently.

Cool – Optimized for storing data that is infrequently accessed and stored for at least 30 days.

Archive – Optimized for storing data that is rarely accessed and stored for at least 180 days with flexible latency requirements, on the order of hours.

Only the hot and cool access tiers can be set at the account level. The archive access tier can only be set at the blob level.

Reference:

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-storage-tiers

Question 9:

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 setupScript.ps1 are 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:

az-204 questions 9

Correct Answer:

az-204 questions 9-1

Step 1: WORKDIR /apps/ContosoApp

Step 2: COPY ./The Docker document must be created in the same folder where ContosoApp.dll and setupScript.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 setupScript.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 10:

You are developing an Azure Cosmos DB solution by using the Azure Cosmos DB SQL API. The data includes millions of documents. Each document may contain hundreds of properties.

The properties of the documents do not contain distinct values for partitioning. Azure Cosmos DB must scale individual containers in the database to meet the performance needs of the application by spreading the workload evenly across all partitions over time.

You need to select a partition key.

Which two partition keys can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

A. a single property value that does not appear frequently in the documents

B. a value containing the collection name

C. a single property value that appears frequently in the documents

D. a concatenation of multiple property values with a random suffix appended

E. a hash suffix appended to a property value

Correct Answer: DE

You can form a partition key by concatenating multiple property values into a single artificial partition key property. These keys are referred to as synthetic keys.

Another possible strategy to distribute the workload more evenly is to append a random number at the end of the partition key value. When you distribute items in this way, you can perform parallel write operations across partitions.

Note: It\’s the best practice to have a partition key with many distinct values, such as hundreds or thousands.

The goal is to distribute your data and workload evenly across the items associated with these partition key values. If such a property doesn’t exist in your data, you can construct a synthetic partition key.

Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/synthetic-partition-keys

Question 11:

HOTSPOT

You need to secure the Shipping Function app.

How should you configure the app? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 11

Correct Answer:

az-204 questions 11-1

Scenario: Shipping Function app: Implement secure function endpoints by using app-level security and include Azure Active Directory (Azure AD). Box 1: Function

Box 2: JSON-based Token (JWT)

Azure AD uses JSON-based tokens (JWTs) that contain claims

Box 3: HTTP

How a web app delegates sign-in to Azure AD and obtains a token

User authentication happens via the browser. The OpenID protocol uses standard HTTP protocol messages.

Reference:

https://docs.microsoft.com/en-us/azure/active-directory/develop/authentication-scenarios

Question 12:

HOTSPOT

You are developing an application that uses Azure Storage Queues.

You have the following code:

az-204 questions 12

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 12-1

Correct Answer:

az-204 questions 12-2

Box 1: No

The code does not configure the lock duration.

Note: Default lock duration is 30 seconds. Lock duration will be set even if it is not specified in the code.

Box 2: Yes

Peeking messages will not remove them from the queue.

Box 3: Yes

Reference:

https://docs.microsoft.com/en-us/azure/storage/queues/storage-dotnet-how-to-use-queues

https://docs.microsoft.com/en-us/dotnet/api/microsoft.servicebus.messaging.queuedescription.lockduration

Question 13:

DRAG DROP

You manage several existing Logic Apps.

You need to change definitions, add new logic, and optimize these apps on a regular basis.

What should you use? To answer, drag the appropriate tools to the correct functionalities. Each tool 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:

az-204 questions 13

Correct Answer:

az-204 questions 13-1

Box 1: Enterprise Integration Pack

For business-to-business (B2B) solutions and seamless communication between organizations, you can build automated scalable enterprise integration workflows by using the Enterprise Integration Pack (EIP) with Azure Logic Apps.

Box 2: Code View Editor

Edit JSON – Azure portal

1.

Sign in to the Azure portal.

2.

From the left menu, choose All services. In the search box, find “logic apps”, and then from the results, select your logic app.

3.

On your logic app\’s menu, under Development Tools, select Logic App Code View.

4.

The Code View editor opens and shows your logic app definition in JSON format.

Box 3: Logic Apps Designer

Reference: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-overview https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-author-definitions

Question 14:

HOTSPOT

You are developing an Azure App Service hosted ASP.NET Core web app to deliver video-on-demand streaming media.

You enable an Azure Content Delivery Network (CDN) Standard for the web endpoint. Customer videos are downloaded from the web app by using the following example URL:http//www.contoso.com/content.p4?quality=1

All media content must expire from the cache after one hour. Customer videos with varying quality must be delivered to the closest regional point of presence (POP) node.

You need to configure Azure CDN caching rules.

Which options should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 14

Correct Answer:

az-204 questions 14-1

Box 1: Override

Override: Ignore the origin-provided cache duration; use the provided cache duration instead. This will not override cache-control: no-cache.

Set if missing: Honor origin-provided cache-directive headers, if they exist; otherwise, use the provided cache duration.

Incorrect:

Bypass cache: Do not cache and ignore origin-provided cache-directive headers.

Box 2: 1 hour

All media content must expire from the cache after one hour.

Box 3: Cache every unique URL

Cache every unique URL: In this mode, each request with a unique URL, including the query string, is treated as a unique asset with its own cache. For example, the response from the origin server for a request for example. ashx?q=test1 is

cached at the POP node and returned for subsequent caches with the same query string. A request for example.ashx?q=test2 is cached as a separate asset with its own time-to-live setting.

Incorrect Answers:

Bypass caching for query strings: In this mode, requests with query strings are not cached at the CDN POP node. The POP node retrieves the asset directly from the origin server and passes it to the requestor with each request.

Ignore query strings: Default mode. In this mode, the CDN point-of-presence (POP) node passes the query strings from the requestor to the origin server on the first request and caches the asset. All subsequent requests for the asset that are served from the POP ignore the query strings until the cached asset expires.

References:

https://docs.microsoft.com/en-us/azure/cdn/cdn-query-string

Question 15:

HOTSPOT

You are building a traffic monitoring system that monitors traffic along six highways. The system produces time series analysis-based reports for each highway. Data from traffic sensors are stored in Azure Event Hub.

Traffic data is consumed by four departments. Each department has an Azure Web App that displays the time-series-based reports and contains a WebJob that processes the incoming data from Event Hub. All Web Apps run on App Service Plans with three instances.

Data throughout must be maximized. Latency must be minimized.

You need to implement the Azure Event Hub.

Which settings should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Hot Area:

az-204 questions 15

Correct Answer:

az-204 questions 15-1

Box 1: 6

The number of partitions is specified at creation and must be between 2 and 32.

There are 6 highways.

Box 2: Highway

References:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-features


Check out more AZ-204 exam questions and answers: https://www.leads4pass.com/az-204.html (393 Q&A), the latest and most effective Developing Solutions for Microsoft Azure certification exam materials, guarantee 100% success in passing the exam.

BTW, Microsoft AZ-204 is related to more exam PDF online download: https://www.exampdfdownload.com/latest-microsoft-dumps/