ExamGecko
Home Home / Microsoft / AZ-204

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

Question list
Search
Search

List of questions

Search

Related questions











HOTSPOT

You develop an application that sells Al generated images based on user input. You recently started a marketing campaign that displays unique ads every second day.

Sales data is stored in Azure Cosmos DB with the date of each sale being stored in a property named 'whenFinished'.

The marketing department requires a view that shows the number of sales for each unique ad.

You need to implement the query for the view.

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

NOTE: Each correct selection is worth one point.


Question 311
Correct answer: Question 311

HOTSPOT

You plan to implement an Azure Functions app.

The Azure Functions app has the following requirements:

* Must be triggered by a message placed in an Azure Storage queue.

* Must use the queue name set by an app setting named input-queue.

* Must create an Azure Blob Storage named the same as the content of the message.

You need to identify how to reference the queue and blob name in the function. Just file of the Azure Functions app.

How should you reference the names? To answer, select the appropriate values in the answer area. NOTE: Each correct selection is worth one point.


Question 312
Correct answer: Question 312

DRAG DROP

You have an Azure Cosmos DB for NoSQL account.

You plan to develop two apps named App1 and App2 that will use the change feed functionality to track changes to containers.

App1 will use the pull model and App2 will use the push model.

You need to choose the method to track the most recently processed change in App1 and App2.

Which component should you use? To answer, drag the appropriate components to the correct apps. Each component 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.

Question 313
Correct answer: Question 313

You are developing several Azure API Management (APIM) hosted APIs.

You must transform the APIs to hide private backend information and obscure the technology stack used to implement the backend processing.

You need to protect all APIs.

What should you do?

A.
Configure and apply a new inbound policy scoped to a product.
A.
Configure and apply a new inbound policy scoped to a product.
Answers
B.
Configure and apply a new outbound policy scoped to the operation.
B.
Configure and apply a new outbound policy scoped to the operation.
Answers
C.
Configure and apply a new outbound policy scoped to global.
C.
Configure and apply a new outbound policy scoped to global.
Answers
D.
Configure and apply a new backend policy scoped to global.
D.
Configure and apply a new backend policy scoped to global.
Answers
Suggested answer: A

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.

You are developing a solution that will be deployed to an Azure Kubernetes Service (AKS) cluster. The solution will include a custom VNet, Azure Container Registry images, and an Azure Storage account.

The solution must allow dynamic creation and management of all Azure resources within the AKS cluster.

You need to configure an AKS cluster for use with the Azure APIs.

Solution: Enable the Azure Policy Add-on for Kubernetes to connect the Azure Policy service to the GateKeeper admission controller for the AKS cluster. Apply a built-in policy to the cluster.

Does the solution meet the goal?

A.
Yes
A.
Yes
Answers
B.
No
B.
No
Answers
Suggested answer: B

Explanation:

Instead create an AKS cluster that supports network policy. Create and apply a network to allow traffic only from within a defined namespace

https://docs.microsoft.com/en-us/azure/aks/use-network-policies

HOTSPOT

You provisioned an Azure Cosmos DB for NoSQL account named account1 with the default consistency level.

You plan to configure the consistency level on a per request basis The level needs to be set for consistent prefix for read and write operations to account1.

You need to identify the resulting consistency level for read and write operations.

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

NOTE: Each correct selection is worth one point.


Question 316
Correct answer: Question 316

You are developing several Azure API Management (APIM) hosted APIs.

You must inspect request processing of the APIs in APIM. Requests to APIM by using a REST client must also be included. The request inspection must include the following information:

* requests APIM sent to the API backend and the response it received

* policies applied to the response before sending back to the caller

* errors that occurred during the processing of the request and the policies applied to the errors

* original request APIM received from the caller and the policies applied to the request

You need to inspect the APIs.

Which three actions should you do? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

A.
Enable the Allow tracing setting for the subscription used to inspect the API.
A.
Enable the Allow tracing setting for the subscription used to inspect the API.
Answers
B.
Add the Ocp-Apim-Trace header value to the API call with a value set to true
B.
Add the Ocp-Apim-Trace header value to the API call with a value set to true
Answers
C.
Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API.
C.
Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API.
Answers
D.
Create and configure a custom policy. Apply the policy to the outbound policy section with an API scope.
D.
Create and configure a custom policy. Apply the policy to the outbound policy section with an API scope.
Answers
E.
Create and configure a custom policy. Apply the policy to the inbound policy section with a global scope.
E.
Create and configure a custom policy. Apply the policy to the inbound policy section with a global scope.
Answers
Suggested answer: A, B, C

Explanation:

The correct answer is A, B, and C. To inspect request processing of the APIs in APIM, you need to do the following three actions:

Enable the Allow tracing setting for the subscription used to inspect the API. This setting allows you to trace request processing in APIM using the test console, a REST client, or a client app. You can enable this setting in the portal by selecting Subscriptions and then selecting the subscription you want to use for debugging1.

Add the Ocp-Apim-Trace header value to the API call with a value set to true. This header triggers tracing when making requests to APIM using a REST client or a client app. You also need to add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API1.

Add the Ocp-Apim-Subscription-Key header value to the key for a subscription that allows access to the API. This header authenticates your request and grants you access to the API. You can find the key for your subscription in the portal by selecting Subscriptions and then selecting Show/hide keys1.

You do not need to create and configure a custom policy for tracing request processing. The trace policy is used to add a custom trace into the request tracing output, Application Insights telemetries, and/or resource logs2. It is not required for inspecting the APIs.

DRAG DROP

You are developing several microservices named service

* The microservices must persist data to storage.

* serviceA must persist data only visible to the current container and the storage must be restricted to the amount of disk space available in the container

* servtceB must persist data for the lifetime of the replica and allow multiple containers in the replica to mount the same storage location.

* serviceC must persist data beyond the lifetime of the replica while allowing multiple containers to access the storage and enable per object permissions.

You need to configure storage for each microservice.


Question 318
Correct answer: Question 318

You are building a B2B web application that uses Azure B2B collaboration for authentication Paying customers authenticate to Azure B2B using federation

The application allows users to sign up for trial accounts using any email address

When a user converts to a paying customer, the data associated with the teal should be kept, but the user must authenticate using federation

You need to update the user in Azure Active Directory (Azure AD) when they convert to a paying customer

Which Graph API parameter is used to change authentication from one-time pass odes to federation?

A.
uscrFlowType
A.
uscrFlowType
Answers
B.
Status
B.
Status
Answers
C.
invittdUstr
C.
invittdUstr
Answers
D.
resetRedemption
D.
resetRedemption
Answers
Suggested answer: B

HOTSPOT

You develop two Python scripts to process data.

The Python scripts must be deployed to two, separate Linux containers running in an Azure Container Instance container group. The containers must access external data by using the Server Message Block (SMB) protocol. Containers in the container group must run only once

You need to configure the Azure Container Instance.

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

NOTE: Each correct selection is worth one point.


Question 320
Correct answer: Question 320
Total 345 questions
Go to page: of 35