Free AZ-204 Exam Braindumps (page: 9)

Page 8 of 116

You are a developer at your company.
You need to edit the workflows for an existing Logic App.
What should you use?

  1. the Enterprise Integration Pack (EIP)
  2. the Logic App Code View
  3. the API Connections
  4. the Logic Apps Designer

Answer(s): D

Explanation:

For business-to-business (B2B) solutions and seamless communication between organizations, you can build automated scalable enterprise integration workflows by using the Enterprise Integration Pack (EIP) with Azure Logic Apps.


Reference:

https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-enterprise-integration-overview https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-author-definitions



DRAG DROP (Drag and Drop is not supported)
You are a developer for a company that provides a bookings management service in the tourism industry. You are implementing Azure Search for the tour agencies listed in your company's solution.
You create the index in Azure Search. You now need to use the Azure Search .NET SDK to import the relevant data into the Azure Search service.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions from left to right and arrange them in the correct order.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



1. The index needs to be populated. To do this, we will need a SearchIndexClient. There are two ways to obtain one: by constructing it, or by calling
Indexes.GetClient on the SearchServiceClient. Here we will use the first method.
2. Create the indexBatch with the documents
Something like:
var hotels = new Hotel[];
{
new Hotel()
{
HotelId = "3",
BaseRate = 129.99,
Description = "Close to town hall and the river"
}
};
ג€¦
var batch = IndexBatch.Upload(hotels);
3. The next step is to populate the newly-created index
Example:
var batch = IndexBatch.Upload(hotels);
try
{
indexClient.Documents.Index(batch);
}


Reference:

https://docs.microsoft.com/en-us/azure/search/search-howto-dotnet-sdk



You are developing an application that applies a set of governance policies for internal and external services, as well as for applications.
You develop a stateful ASP.NET Core 2.1 web application named PolicyApp and deploy it to an Azure App Service Web App. The PolicyApp reacts to events from
Azure Event Grid and performs policy actions based on those events.
You have the following requirements:
-Authentication events must be used to monitor users when they sign in and sign out.
-All authentication events must be processed by PolicyApp.
-Sign outs must be processed as fast as possible.
What should you do?

  1. Create a new Azure Event Grid subscription for all authentication events. Use the subscription to process sign-out events.
  2. Create a separate Azure Event Grid handler for sign-in and sign-out events.
  3. Create separate Azure Event Grid topics and subscriptions for sign-in and sign-out events.
  4. Add a subject prefix to sign-out events. Create an Azure Event Grid subscription. Configure the subscription to use the subjectBeginsWith filter.

Answer(s): C

Explanation:


Reference:

https://docs.microsoft.com/en-us/azure/event-grid/subscription-creation-schema



HOTSPOT (Drag and Drop is not supported)
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.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:


Box 1: "type": "http"
Box 2: "customHandler": { "description":{
A custom handler is defined by configuring the host.json file with details on how to run the web server via the customHandler section.
The customHandler section points to a target as defined by the defaultExecutablePath.
Example:
"customHandler": {
"description": {
"defaultExecutablePath": "handler.exe"
Box 3: "enableForwardingHttpRequest": false
Incorrect:
For HTTP-triggered functions with no additional bindings or outputs, you may want your handler to work directly with the HTTP request and response instead of the custom handler request and response payloads. This behavior can be configured in host.json using the enableForwardingHttpRequest setting.
At the root of the app, the host.json file is configured to run handler.exe and enableForwardingHttpRequest is set to true.


Reference:

https://docs.microsoft.com/en-us/azure/azure-functions/functions-custom-handlers






Post your Comments and Discuss Microsoft AZ-204 exam with other Community members:

AZ-204 Discussions & Posts