ExamGecko
Home Home / Microsoft / AZ-204

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

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You are authoring a set of nested Azure Resource Manager templates to deploy Azure resources. You author an Azure Resource Manager template named mainTempIate.json that contains the following linked templates:

linkedTemplatel.json, linkedTemplate2json.

You add parameters to a parameters template file named mainTemplate.parameters.json. You save all templates on a local device in the C:\templates\ folder.

You have the following requirements:

• Store the templates in Azure for later deployment.

• Enable versioning of the templates.

• Manage access to the templates by using Azure RBAC

You need to store the templates in Azure.

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

NOTE: Each correct selection is worth one point.


Question 291
Correct answer: Question 291

HOTSPOT

You implement an Azure solution to include Azure Cosmos DB. the latest Azure Cosmos DB SDK, and the Azure Cosmos DB for NoSQL API. You also implement a change feed processor on a new container instance by using the Azure

Functions trigger for Azure Cosmos DB.

A large batch of documents continues to fail when reading one of the documents in the batch. The same batch of documents is continuously retried by the triggered function and a new batch of documents must be read.

You need to implement the change feed processor to read the documents.

Which feature should you implement? To answer, select the appropriate features in the answer area.

NOTE: Each correct selection is worth one point.


Question 292
Correct answer: Question 292

HOTSPOT

You are developing a content management application for technical manuals. The application is deployed as an Azure Static Web app.

Authenticated users can view pages under /manuals but only contributors can access the page /manuals/new html.

You need to configure the routing for the web app.

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

NOTE: Each correct selection is worth one point.


Question 293
Correct answer: Question 293

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?

A.
A.
Answers
B.
B.
Answers
C.
C.
Answers
D.
D.
Answers
Suggested answer: C

You need to grant access to the retail store location data for the inventory service development effort. What should you use?

A.
Azure AD access token
A.
Azure AD access token
Answers
B.
Azure RBAC role
B.
Azure RBAC role
Answers
C.
Azure AD ID token
C.
Azure AD ID token
Answers
D.
Shared access signature (SAS) token
D.
Shared access signature (SAS) token
Answers
E.
Azure AD refresh token
E.
Azure AD refresh token
Answers
Suggested answer: D

You develop Azure solutions.You must connect to a No-SQL globally-distributed database by using the .NET API.You need to create an object to configure and execute requests in the database.

Which code segment should you use?

A.
new Container(EndpointUri, PrimaryKey)
A.
new Container(EndpointUri, PrimaryKey)
Answers
B.
new Database(Endpoint, PrimaryKey);
B.
new Database(Endpoint, PrimaryKey);
Answers
C.
new CosmosClient(EndpointUri, PrimaryKey);
C.
new CosmosClient(EndpointUri, PrimaryKey);
Answers
Suggested answer: C

Explanation:

Example: // Create a new instance of the Cosmos Client this.cosmosClient = new CosmosClient(EndpointUri, PrimaryKey)//ADD THIS PART TO YOUR CODEawait this.CreateDatabaseAsync();Reference:https://docs.microsoft.com/en-us/ azure/cosmos-db/sql-api-get-started

DRAG DROP

You are developing an application to store millions of images in Azure blob storage. The images are uploaded to an Azure blob storage container named companyimages contained in an Azure blob storage account named companymedia.

The stored images are uploaded with multiple blob index tags across multiple blobs in the container.

You must find all blobs whose tags match a search expression in the container. The search expression must evaluate an index tag named status with a value of final.

You need to construct the GET method request URL How should you complete the URI? To answer, drag the appropriate parameters to the correct request URI targets. Each parameter 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.


Question 297
Correct answer: Question 297

HOTSPOT

You are building a software-as-a-service (SaaS) application that analyzes DNA data that will run on Azure virtual machines (VMs) in an availability zone. The data is stored on managed disks attached to the VM. The performance of the analysis is determined by the speed of the disk attached to the VM.

You have the following requirements:

• The application must be able to quickly revert to the previous day's data if a systemic error is detected.

• The application must minimize downtime in the case of an Azure datacenter outage.

You need to provision the managed disk for the VM to maximize performance while meeting the requirements. Which type of Azure Managed Disk should you use? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.


Question 298
Correct answer: Question 298

HOTSPOT

You are developing an online game that allows players to vote for their favorite photo that illustrates a word. The game is built by using Azure Functions and uses durable entities to track the vote count The voting window is 30 seconds. You must minimize latency.

You need to implement the Azure Function for voting.

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


Question 299
Correct answer: Question 299

HOTSPOT

All functions in the app meet the following requirements:

• Run until either a successful run or until 10 run attempts occur.

• Ensure that there are at least 20 seconds between attempts for up to 15 minutes.

You need to configure the hostjson file.

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 300
Correct answer: Question 300

Explanation:

Total 345 questions
Go to page: of 35