ExamGecko
Home / Microsoft / AZ-204 / List of questions
Ask Question

Microsoft AZ-204 Practice Test - Questions Answers, Page 7

List of questions

Question 61

Report
Export
Collapse

HOTSPOT

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.


Microsoft AZ-204 image Question 61 86132 10022024015000000
Correct answer: Microsoft AZ-204 image answer Question 61 86132 10022024015000000

Explanation:

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

asked 02/10/2024
Gage Adams
37 questions

Question 62

Report
Export
Collapse

You need to deploy the CheckUserContent Azure Function. The solution must meet the security and cost requirements.

Which hosting model should you use?

Premium plan
Premium plan
App Service plan
App Service plan
Consumption plan
Consumption plan
Suggested answer: B

Explanation:

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

asked 02/10/2024
Marco Romani
37 questions

Question 63

Report
Export
Collapse

HOTSPOT

You need to configure Azure Cosmos DB.

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

NOTE: Each correct selection is worth one point.


Microsoft AZ-204 image Question 63 86181 10022024015000000
Correct answer: Microsoft AZ-204 image answer Question 63 86181 10022024015000000

Explanation:

Box 1: Strong

When the consistency level is set to strong, the staleness window is equivalent to zero, and the clients are guaranteed to read the latest committed value of the write operation.

Scenario: Changes to the Order data must reflect immediately across all partitions. All reads to the Order data must fetch the most recent writes.

Note: You can choose from five well-defined models on the consistency spectrum. From strongest to weakest, the models are: Strong, Bounded staleness, Session, Consistent prefix, Eventual

Box 2: SQL

Scenario: You identify the following requirements for data management and manipulation:

Order data is stored as nonrelational JSON and must be queried using Structured Query Language (SQL).

asked 02/10/2024
corey shields
27 questions

Question 64

Report
Export
Collapse

HOTSPOT

You need to retrieve all order line items from Order.json and sort the data alphabetically by the city.

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

NOTE: Each correct selection is worth one point.


Microsoft AZ-204 image Question 64 86182 10022024015000000
Correct answer: Microsoft AZ-204 image answer Question 64 86182 10022024015000000

Explanation:

Box 1: orders o

Scenario: Order data is stored as nonrelational JSON and must be queried using SQL.

Box 2:li

Box 3: o.line_items

Box 4: o.city

The city field is in Order, not in the 2s.

asked 02/10/2024
michael brooks
37 questions

Question 65

Report
Export
Collapse

HOTSPOT

You need to add code at line PC26 of Processing.cs to ensure that security policies are met.

How should you complete the code that you will add at line PC26? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Microsoft AZ-204 image Question 65 86219 10022024015000000
Correct answer: Microsoft AZ-204 image answer Question 65 86219 10022024015000000

Explanation:

Box 1: var key = await Resolver.ResolveKeyAsyn(keyBundle,KeyIdentifier.CancellationToken.None);

Box 2: var x = new BlobEncryptionPolicy(key,resolver);

Example:

// We begin with cloudKey1, and a resolver capable of resolving and caching Key Vault secrets.

BlobEncryptionPolicy encryptionPolicy = new BlobEncryptionPolicy(cloudKey1, cachingResolver); client.DefaultRequestOptions.EncryptionPolicy = encryptionPolicy;

Box 3: cloudblobClient. DefaultRequestOptions.EncryptionPolicy = x;

Reference:

https://github.com/Azure/azure-storage-net/blob/master/Samples/GettingStarted/EncryptionSamples/KeyRotation/Program.cs

asked 02/10/2024
Anthony Wilson
42 questions

Question 66

Report
Export
Collapse

You need to ensure the security policies are met.

What code do you add at line CS07 of ConfigureSSE.ps1?

-PermissionsToKeys create, encrypt, decrypt
-PermissionsToKeys create, encrypt, decrypt
-PermissionsToCertificates create, encrypt, decrypt
-PermissionsToCertificates create, encrypt, decrypt
-PermissionsToCertificates wrapkey, unwrapkey, get
-PermissionsToCertificates wrapkey, unwrapkey, get
-PermissionsToKeys wrapkey, unwrapkey, get
-PermissionsToKeys wrapkey, unwrapkey, get
Suggested answer: B

Explanation:

Scenario: All certificates and secrets used to secure data must be stored in Azure Key Vault.

You must adhere to the principle of least privilege and provide privileges which are essential to perform the intended function.

The Set-AzureRmKeyValutAccessPolicy parameter -PermissionsToKeys specifies an array of key operation permissions to grant to a user or service principal. The acceptable values for this parameter: decrypt, encrypt, unwrapKey, wrapKey, verify, sign, get, list, update, create, import, delete, backup, restore, recover, purge

Incorrect Answers:

A, C: The Set-AzureRmKeyValutAccessPolicy parameter -PermissionsToCertificates specifies an array of certificate permissions to grant to a user or service principal. The acceptable values for this parameter: get, list, delete, create, import, update, managecontacts, getissuers, listissuers, setissuers, deleteissuers, manageissuers, recover, purge, backup, restore

Reference:

https://docs.microsoft.com/en-us/powershell/module/azurerm.keyvault/set-azurermkeyvaultaccesspolicy

asked 02/10/2024
frederic Morteau
31 questions

Question 67

Report
Export
Collapse

You need to ensure receipt processing occurs correctly.

What should you do?

Use blob properties to prevent concurrency problems
Use blob properties to prevent concurrency problems
Use blob SnapshotTime to prevent concurrency problems
Use blob SnapshotTime to prevent concurrency problems
Use blob metadata to prevent concurrency problems
Use blob metadata to prevent concurrency problems
Use blob leases to prevent concurrency problems
Use blob leases to prevent concurrency problems
Suggested answer: B

Explanation:

You can create a snapshot of a blob. A snapshot is a read-only version of a blob that's taken at a point in time. Once a snapshot has been created, it can be read, copied, or deleted, but not modified. Snapshots provide a way to back up a blob as it appears at a moment in time.

Scenario: Processing is performed by an Azure Function that uses version 2 of the Azure Function runtime. Once processing is completed, results are stored in Azure Blob Storage and an Azure SQL database. Then, an email summary is sent to the user with a link to the processing report. The link to the report must remain valid if the email is forwarded to another user.

Reference:

https://docs.microsoft.com/en-us/rest/api/storageservices/creating-a-snapshot-of-a-blob

asked 02/10/2024
Leon Duke
37 questions

Question 68

Report
Export
Collapse

You need to resolve the capacity issue.

What should you do?

Convert the trigger on the Azure Function to an Azure Blob storage trigger
Convert the trigger on the Azure Function to an Azure Blob storage trigger
Ensure that the consumption plan is configured correctly to allow scaling
Ensure that the consumption plan is configured correctly to allow scaling
Move the Azure Function to a dedicated App Service Plan
Move the Azure Function to a dedicated App Service Plan
Update the loop starting on line PC09 to process items in parallel
Update the loop starting on line PC09 to process items in parallel
Suggested answer: D

Explanation:

If you want to read the files in parallel, you cannot use forEach. Each of the async callback function calls does return a promise. You can await the array of promises that you'll get with Promise.all.

Scenario: Capacity issue: During busy periods, employees report long delays between the time they upload the receipt and when it appears in the web application.

Microsoft AZ-204 image Question 2 explanation 86271 10022024015000000000

Reference:

https://stackoverflow.com/questions/37576685/using-async-await-with-a-foreach-loop

asked 02/10/2024
Perry Schoenmaker
37 questions

Question 69

Report
Export
Collapse

You need to resolve the log capacity issue.

What should you do?

Create an Application Insights Telemetry Filter
Create an Application Insights Telemetry Filter
Change the minimum log level in the host.json file for the function
Change the minimum log level in the host.json file for the function
Implement Application Insights Sampling
Implement Application Insights Sampling
Set a LogCategoryFilter during startup
Set a LogCategoryFilter during startup
Suggested answer: C

Explanation:

Scenario, the log capacity issue: Developers report that the number of log message in the trace output for the processor is too high, resulting in lost log messages.

Sampling is a feature in Azure Application Insights. It is the recommended way to reduce telemetry traffic and storage, while preserving a statistically correct analysis of application data. The filter selects items that are related, so that you can navigate between items when you are doing diagnostic investigations. When metric counts are presented to you in the portal, they are renormalized to take account of the sampling, to minimize any effect on the statistics.

Sampling reduces traffic and data costs, and helps you avoid throttling.

Reference:

https://docs.microsoft.com/en-us/azure/azure-monitor/app/sampling

asked 02/10/2024
Moinuddin Mohammed
44 questions

Question 70

Report
Export
Collapse

DRAG DROP

You need to deploy a new version of the LabelMaker application to ACR.

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.


Microsoft AZ-204 image Question 70 86134 10022024015000000
Correct answer: Microsoft AZ-204 image answer Question 70 86134 10022024015000000

Explanation:

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.

Reference:

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

asked 02/10/2024
Rambo Jhon
40 questions
Total 377 questions
Go to page: of 38
Search

Related questions