Labour Day Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

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

Page: 1 / 38
Total 383 questions

Developing Solutions for Microsoft Azure Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$47.25  $134.99

PDF Study Guide

  • Product Type: PDF Study Guide
$40.25  $114.99
Question 1

You need to correct the VM issues.

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

NOTE: Each correct selection is worth one point.

Options:

Question 2

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.

Options:

Question 3

You need to migrate on-premises shipping data to Azure.

What should you use?

Options:

A.

Azure Migrate

B.

Azure Cosmos DB Data Migration tool (dt.exe)

C.

AzCopy

D.

Azure Database Migration service

Question 4

You need to configure Azure CDN for the Shipping web site.

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

NOTE: Each correct selection is worth one point.

Options:

Question 5

You need to secure the Shipping Logic App.

What should you use?

Options:

A.

Azure App Service Environment (ASE)

B.

Azure AD B2B integration

C.

Integration Service Environment (ISE)

D.

VNet service endpoint

Question 6

You need to resolve the Shipping web site error.

How should you configre the Azure Table Storage service? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 7

You need to update the APIs to resolve the testing error.

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.

Options:

Question 8

You need to support the requirements for the Shipping Logic App.

What should you use?

Options:

A.

Azure Active Directory Application Proxy

B.

Point-to-Site (P2S) VPN connection

C.

Site-to-Site (S2S) VPN connection

D.

On-premises Data Gateway

Question 9

You need to support the message processing for the ocean transport workflow.

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.

Options:

Question 10

You need to configure Azure App Service to support the REST API requirements.

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

NOTE: Each correct selection is worth one point.

Options:

Question 11

You need to ensure the security policies are met.

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

Options:

A.

–PermissionsToKeys create, encrypt, decrypt

B.

–PermissionsToCertificates create, encrypt, decrypt

C.

–PermissionsToCertificates wrapkey, unwrapkey, get

D.

–PermissionsToKeys wrapkey, unwrapkey, get

Question 12

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.

Options:

Question 13

You need to ensure receipt processing occurs correctly.

What should you do?

Options:

A.

Use blob properties to prevent concurrency problems

B.

Use blob SnapshotTime to prevent concurrency problems

C.

Use blob metadata to prevent concurrency problems

D.

Use blob leases to prevent concurrency problems

Question 14

You need to resolve the log capacity issue.

What should you do?

Options:

A.

Create an Application Insights Telemetry Filter

B.

Change the minimum log level in the host.json file for the function

C.

Implement Application Insights Sampling

D.

Set a LogCategoryFilter during startup

Question 15

You need to add code at line PC32 in Processing.cs to implement the GetCredentials method in the Processing class.

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.

Options:

Question 16

You need to ensure that network security policies are met.

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

NOTE: Each correct selection is worth one point.

Options:

Question 17

You need to configure the ContentUploadService deployment.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Add the following markup to line CS23:

types: Private

B.

Add the following markup to line CS24:

osType: Windows

C.

Add the following markup to line CS24:

osType: Linux

D.

Add the following markup to line CS23:

types: Public

Question 18

You need to store the user agreements.

Where should you store the agreement after it is completed?

Options:

A.

Azure Storage queue

B.

Azure Event Hub

C.

Azure Service Bus topic

D.

Azure Event Grid topic

Question 19

You need to implement the bindings for the CheckUserContent function.

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

NOTE: Each correct selection is worth one point.

Options:

Question 20

You need to investigate the http server log output to resolve the issue with the ContentUploadService.

Which command should you use first?

Options:

A.

az webapp log

B.

az ams live-output

C.

az monitor activity-log

D.

az container attach

Question 21

You need to monitor ContentUploadService accourding to the requirements.

Which command should you use?

Options:

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 22

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.

Options:

Question 23

You need to add code at line AM09 to ensure that users can review content using ContentAnalysisService.

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

NOTE: Each correct selection is worth one point.

Options:

Question 24

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

Which hosting model should you use?

Options:

A.

Consumption plan

B.

Premium plan

C.

App Service plan

Question 25

You need to add YAML markup at line CS17 to ensure that the ContentUploadService can access Azure Storage access keys.

How should you complete the YAML markup? To answer, drag the appropriate YAML segments to the correct locations. Each YAML 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.

Options:

Question 26

You need to add code at line AM10 of the application manifest to ensure that the requirement for manually reviewing content can be met.

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

NOTE: Each correct selection is worth one point.

Options:

Question 27

You need to add markup at line AM04 to implement the ContentReview role.

How should you complete the markup? To answer, drag the appropriate json segments to the correct locations. Each json 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.

Options:

Question 28

You need to implement event routing for retail store location data.

Which configuration should you use?

Options:

Question 29

You need to secure the Azure Functions to meet the security requirements.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Store the RSA-HSM key in Azure Cosmos DB. Apery the built-in policies for customer-managed keys and allowed locations.

B.

Create a free tier Azure App Configuration instance with a new Azure AD service principal.

C.

Store the RSA-HSM key in Azure Key Vault with soft-delete and purge-protection features enabled.

D.

Store the RSA-HSM key in Azure Blob storage with an Immutability policy applied to the container.

E.

Create a standard tier Azure App Configuration instance with an assigned Azure AD managed identity.

Question 30

You need to Implement the retail store location Azure Function.

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

NOTE: Each correct selection is worth one point.

Options:

Question 31

You need to authenticate the user to the corporate website as indicated by the architectural diagram.

Which two values should you use? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

ID token signature

B.

ID token claims

C.

HTTP response code

D.

Azure AD endpoint URI

E.

Azure AD tenant ID

Question 32

You need to retrieve the database connection string.

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

NOTE: Each correct selection is worth one point.

Options:

Question 33

QUESTION 1

You need to correct the RequestUserApproval Function app error.

What should you do?

Options:

A.

Update line RA13 to use the async keyword and return an HttpRequest object value.

B.

Configure the Function app to use an App Service hosting plan. Enable the Always On setting of the hosting plan.

C.

Update the function to be stateful by using Durable Functions to process the request payload.

D.

Update the functionTimeout property of the host.json project file to 15 minutes.

Question 34

You need to ensure that all messages from Azure Event Grid are processed.

What should you use?

Options:

A.

Azure Event Grid topic

B.

Azure Service Bus topic

C.

Azure Service Bus queue

D.

Azure Storage queue

E.

Azure Logic App custom connector

Question 35

You need to configure API Management for authentication.

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

NOTE: Each correct selection is worth one point.

Options:

Question 36

You need to investigate the Azure Function app error message in the development environment.

What should you do?

Options:

A.

Connect Live Metrics Stream from Application Insights to the Azure Function app and filter the metrics.

B.

Create a new Azure Log Analytics workspace and instrument the Azure Function app with Application Insights.

C.

Update the Azure Function app with extension methods from Microsoft.Extensions.Logging to log events by using the log instance.

D.

Add a new diagnostic setting to the Azure Function app to send logs to Log Analytics.

Question 37

You need to configure the Account Kind, Replication, and Storage tier options for the corporate website’s Azure Storage account.

How should you complete the configuration? To answer, select the appropriate options in the dialog box in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 38

You need to configure the integration for Azure Service Bus and Azure Event Grid.

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

NOTE: Each correct selection is worth one point.

Options:

Question 39

You need to correct the corporate website error.

Which four actions should you recommend be performed in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Options:

Question 40

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.

Options:

Question 41

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.

Options:

Question 42

You need to correct the Azure Logic app error message.

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

NOTE: Each correct selection is worth one point.

Options:

Question 43

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.

Options:

Question 44

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.

Options:

Question 45

You need to access data from the user claim object in the e-commerce web app.

What should you do first?

Options:

A.

Write custom code to make a Microsoft Graph API call from the e-commerce web app.

B.

Assign the Contributor RBAC role to the e-commerce web app by using the Resource Manager create role assignment API.

C.

Update the e-commerce web app to read the HTTP request header values.

D.

Using the Azure CLI, enable Cross-origin resource sharing (CORS) from the e-commerce checkout API to the e-commerce web app.

Question 46

You have an Azure App Services Web App. Azure SQL Database instance. Azure Storage Account and an Azure Redis Cache instance in a resource group.

A developer must be able to publish code to the web app. You must grant the developer the Contribute role to the web app

You need to grant the role.

What two commands can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Options:

A.

New-AzureRmRoleAssignment

B.

az role assignment create

C.

az role definition create

D.

New-AzureRmRoleDefinition

Question 47

You are designing a multi-tiered application that will be hosted on Azure virtual machines. The virtual machines will run Windows Server. Front-end servers will be accessible from the Internet over port 443. The other servers will NOT be directly accessible over the internet

You need to recommend a solution to manage the virtual machines that meets the following requirement

• Allows the virtual machine to be administered by using Remote Desktop.

• Minimizes the exposure of the virtual machines on the Internet Which Azure service should you recommend?

Options:

A.

Azure Bastion

B.

Service Endpoint

C.

Azure Private Link

D.

Azure Front Door

Question 48

You are developing a C+ + application that compiles to a native application named process.exe. The application accepts images as input and returns images in one of the following image formats: GIF, PNG, or JPEG.

You must deploy the application as an Azure Function.

You need to configure the function and host json files.

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

NOTE: Each correct selection is worth one point.

Options:

Question 49

You are developing several microservices to deploy to a Azure Service cluster. The microservices manage data stored in Azure Cosmos DB and Azure Blob storage. The data is secured by using customer-managed keys stored in Aue Key Vault.

You must automate key rotation for all Key Vault keys and allow for manual key rotation. Keys must rotate every three months. Notifications Of expiring keys must be sent before key expiry.

You need to configure key rotation and enable key expiry notifications.

Which two actions should you perform? Each correct answer presents part Of solution.

NOTE: Each correct selection is worth

Options:

A.

Create and configure a new Azure Event Grid instance.

B.

Create configure a key rotation policy during key creation

C.

Create and assign an Azure Key Vault access

D.

Configure Azure Key Vault

Question 50

An organization deploys Azure Cosmos DB.

You need to ensure that the index is updated as items are created, updated, or deleted.

What should you do?

Options:

A.

Set the value of the EnableScanlnQuery option to True.

B.

Set the indexing mode to Consistent.

C.

Set the indexing mode to Lazy.

D.

Set the value of the automatic property of the indexing policy to False.

Question 51

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 develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.

The app continues to time out after four minutes. The app must process the blob data.

You need to ensure the app does not time out and processes the blob data.

Solution: Update the functionTimeout property of the host.json project file to 10 minutes.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 52

You have an existing Azure storage account that stores large volumes of data across multiple containers.

You need to copy all data from the existing storage account to a new storage account. The copy process must meet the following requirements:

  • Automate data movement.
  • Minimize user input required to perform the operation.
  • Ensure that the data movement process is recoverable.

What should you use?

Options:

A.

AzCopy

B.

Azure Storage Explorer

C.

Azure portal

D.

.NET Storage Client Library

Question 53

You are building a web application that performs image analysis on user photos and returns metadata containing objects identified. The image analysis is very costly in terms of time and compute resources. You are planning to use Azure Redo Cache so Cache uploads do not need to be reprocessed.

In case of an Azure data center outage metadata loss must be kept to a minimum.

You need to configure the Azure Redis cache instance.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection in worth one point.

Options:

A.

Configure Azure Redis with persistence

B.

Configure second storage account for persistence

C.

Set backup frequency to the minimum value

D.

Configure Azure Redis with RDS persistence

Question 54

You have an App Service plan named aspl based on the Free pricing tier.

You plan to use aspl to implement an Azure Function app with a queue trigger. Your solution must minimize cost.

You need to identify the configuration options that will meet the requirements.

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

NOTE: Each correct selection is worth one point.

Options:

Question 55

You deploy an API to API Management

You must secure all operations on the API by using a client certificate.

You need to secure access to the backend service of the API by using client certificates.

Which two security features can you use?

Options:

A.

Azure AD token

B.

Self-signed certificate

C.

Certificate Authority (CA) certificate

D.

Triple DES (3DES) cipher

E.

Subscription key

Question 56

An organization hosts web apps in Azure. The organization uses Azure Monitor You discover that configuration changes were made to some of the web apps. You need to identify the configuration changes. Which Azure Monitor log should you review?

Options:

A.

AppServiceEnvironmentPlatformLogs

B.

AppServiceApplogs

C.

AppServiceAuditLogs

D.

AppServiceConsoteLogs

Question 57

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 question, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

Margie’s Travel is an international travel and bookings management service. The company is expanding into restaurant bookings. You are tasked with implementing Azure Search for the restaurants listed in their solution.

You create the index in Azure Search.

You need to import the restaurant data into the Azure Search service by using the Azure Search .NET SDK.

Solution:

1. Create a SearchIndexClient o bject to connect to the search index.

2. Create a DataContainer that contains the documents which must be added.

3. Create a DataSource instance and set its Container property to the DataContainer.

4. Call the Documents.Suggest method of the SearchIndexClient and pass the DataSource.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 58

A company is developing a Node.js web app. The web app code is hosted in a GitHub repository located at

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.

Options:

Question 59

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:

•Share session state across all ASP.NET web applications

•Support controlled, concurrent access to the same session state data for multiple readers and a single writer

•Save full HTTP responses for concurrent requests

You need to store the information.

Proposed Solution: Deploy and configure an Azure Database for PostgreSQL. Update the web applications.

Does the solution meet the goal?

Options:

A.

Yes

B.

No

Question 60

You are a developer for a Software as a Service (SaaS) company. You develop solutions that provide the ability to send notifications by using Azure Notification Hubs.

You need to create sample code that customers can use as a reference for how to send raw notifications to Windows Push Notification Services (WNS) devices. The sample code must not use external packages.

How should you complete the code segment? 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.

Options:

Question 61

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.

Options:

Question 62

You need to ensure that the solution can meet the scaling requirements for Policy Service.

Which Azure Application Insights data model should you use?

Options:

A.

an Application Insights dependency

B.

an Application Insights event

C.

an Application Insights trace

D.

an Application Insights metric

Question 63

You need to implement the Log policy.

How should you complete the EnsureLogging method in EventGridController.cs? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 64

You need to ensure that PolicyLib requirements are met.

How should you complete the code segment? 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.

Options:

Question 65

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.

Options:

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 66

You need to implement telemetry for non-user actions.

How should you complete the Filter class? 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.

Options:

Question 67

You need to implement the Log policy.

How should you complete the Azure Event Grid subscription? To answer, drag the appropriate JSON segments to the correct locations. Each JSON segment may be used once, more than once, or not at all. You may need to drag the split bar between panes to view content.

NOTE: Each correct selection is worth one point.

Options:

Question 68

You need to insert code at line LE03 of LoginEvent.cs to ensure that all authentication events are processed correctly.

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

NOTE: Each correct selection is worth one point.

Options:

Page: 1 / 38
Total 383 questions