ExamGecko
Home Home / Microsoft / AZ-204

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

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You are developing a web application that uses the Microsoft identify platform for user and resource authentication. The web application calls several REST APIs.

You are implementing various authentication and authorization flows for the web application.

You need to validate the claims in the authentication token.

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

NOTE: Each correct selection is worth one point.


Question 251
Correct answer: Question 251

You develop and deploy an ASP.NET Core application that connects o an Azure Database for MySQL instance.

Connections to the database appear to drop intermittently and the application code does not handle the connection failure.

You need to handle the transient connection errors in code by implementing retries.

What are three possible ways to achieve this goal? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Increase connection repeat attempts exponentially up to 120 seconds.
A.
Increase connection repeat attempts exponentially up to 120 seconds.
Answers
B.
Close the database connection and immediately report an error.
B.
Close the database connection and immediately report an error.
Answers
C.
Wait five seconds before repeating the connection attempt to the database.
C.
Wait five seconds before repeating the connection attempt to the database.
Answers
D.
Disable connection pooling and configure a second Azure Database for MySQL instance.
D.
Disable connection pooling and configure a second Azure Database for MySQL instance.
Answers
E.
Set a maximum number of connection attempts to 10 and report an error on subsequent connections.
E.
Set a maximum number of connection attempts to 10 and report an error on subsequent connections.
Answers
Suggested answer: B, C, D

HOTSPOT

You are building an application that stores sensitive customer data in Azure Blob storage. The data must be encrypted with a key that is unique for each customer.

If the encryption key has been corrupted it must not be used for encryption.

You need to ensure that the blob is encrypted.

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.


Question 253
Correct answer: Question 253

You are developing a user portal for a company.

You need to create a report for the portal that lists information about employees who are subject matter experts for a specific topic. You must ensure that administrators have full control and cosent over the data.

Which technology should you use?

A.
Microsoft Graph connectors
A.
Microsoft Graph connectors
Answers
B.
Microosft graph API
B.
Microosft graph API
Answers
C.
Microsoft Graph data connect
C.
Microsoft Graph data connect
Answers
Suggested answer: C

HOTSPOT

You are developing a solution to store documents in Azure Blob storage. Customers upload documents to multiple containers. Documents consist of PDF, CSV, Microsoft Office format, and plain text files.

The solution must process millions of documents across hundreds of containers. The solution must meet the following requirements:

* Document must the categorized by a customer identifier as they are uploaded to the storage account.

* Allow filtering by the customer identifier.

* Allow searching of information contained within a document.

* Minimize costs.

You created and configure a standard general-purpose v2 storage account to support the solution.

You need to implement the solution.

NOTE: Each correct selection is worth one point.


Question 255
Correct answer: Question 255

HOTSPOT

An organization deploys a Mob storage account. Users take multiple snapshots of the blob storage account over time.

You need to delete all snapshots or the blob storage account. You must not delete the blob storage account itself.

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.


Question 256
Correct answer: Question 256

HOTSPOT

You are developing a service where customers can report news events from a browser using Azure Web PubSub. The service is implemented as an Azure App that the JSON WebSocket suprotocol to receive news events.

You need to implement the bindings for the Azure Function App.

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

Note: Each Correct Selection in worth one point.


Question 257
Correct answer: Question 257

HOTSPOT

You are developing an Azure Static Web app that contains training materials for a tool company. Each tool's training material is contained In a static web page that Is linked from the tool's publicly available description page.

A user must be authenticated using Azure AD prior to viewing training.

You need to ensure That the user can view training material pages after authentication.

How should you complete the configuration file? To answer, select the appropriate options In the answer area.

NOTE: Each correct selection is worth one point.


Question 258
Correct answer: Question 258

HOTSPOT

You are developing an application that includes two Docker containers.

The application must meet the following requirements

The containers must not run as root.

The containers must be deployed to Azure Container Instances by using a YAML file.

The containers must share a lifecycle, resources, local network and storage volume.

The storage volume must persist through container crashes.

The storage volume must be destroyed on stop or restart of the containers.

You need to configure Azure Container Instances for the application.


Question 259
Correct answer: Question 259

You are developing a .Net web application that stores data is Azure Consmos DB. The application must use the Core API and allow millions of reads and writes. The Azure Cosmos DII account has been created with multiple write region enabled. The application has been deployed to the East US2 and Central US region.

You need to update the application to support multi-region writes.

What are two possible ways to achieve this goal? Each correct answer presents parts of the solutions.

NOTE: Each correct selection is worth one point.

A.
Update the ConnectionPolicy class for the Cosmos client and populate the PreferredLocations property based on the geo-proximity of the application.
A.
Update the ConnectionPolicy class for the Cosmos client and populate the PreferredLocations property based on the geo-proximity of the application.
Answers
B.
Update Azure Cosmos DB to use the Strong consistency level. Add indexed properties to the container to indicate region.
B.
Update Azure Cosmos DB to use the Strong consistency level. Add indexed properties to the container to indicate region.
Answers
C.
Update the ConnectionPolicy class for the Cosmos client and set the UseMultipleWriteLocations property to true.
C.
Update the ConnectionPolicy class for the Cosmos client and set the UseMultipleWriteLocations property to true.
Answers
D.
Create and deploy a custom conflict resolution policy.
D.
Create and deploy a custom conflict resolution policy.
Answers
E.
Update Azure Cosmos DB to use the Session consistency level. Send the SessionToken property value from the FeedResponse object of the write action to the end-user by using a cookie.
E.
Update Azure Cosmos DB to use the Session consistency level. Send the SessionToken property value from the FeedResponse object of the write action to the end-user by using a cookie.
Answers
Suggested answer: C, D
Total 345 questions
Go to page: of 35