Free AZ-204 Exam Braindumps (page: 22)

Page 21 of 116

HOTSPOT (Drag and Drop is not supported)
You are developing an Azure Durable Function based application that processes a list of input values. The application is monitored using a console application that retrieves JSON data from an Azure Function diagnostic endpoint.
During processing a single instance of invalid input does not cause the function to fail. Invalid input must be available to the monitoring application.
You need to implement the Azure Durable Function and the monitoring console application.
How should you complete the code segments? 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: await context.CallEntityAsync(input[errindex],"error")
Orchestration signals and calls an entity
Orchestrator functions can access entities by using APIs on the orchestration trigger binding.
Example:
[FunctionName("CounterOrchestration")]
public static async Task Run(
[OrchestrationTrigger] IDurableOrchestrationContext context)
{
var entityId = new EntityId(nameof(Counter), "myCounter");
// Two-way call to the entity which returns a value - awaits the response int currentValue = await context.CallEntityAsync<int>(entityId, "Get");
Box 2: Failed
During processing a single instance of invalid input does not cause the function to fail.
Note: RuntimeStatus: One of the following values:
Failed: The instance failed with an error.
Completed: The instance has completed normally.
Terminated: The instance was stopped abruptly.
Pending: The instance has been scheduled but has not yet started running.
Running: The instance has started running.
ContinuedAsNew: The instance has restarted itself with a new history. This state is a transient state.
Box 3: Input
Invalid input must be available to the monitoring application.


Reference:

https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-entities https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-instance-management



You are developing an Azure Durable Function to manage an online ordering process.
The process must call an external API to gather product discount information.
You need to implement the Azure Durable Function.
Which Azure Durable Function types should you use? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  1. Orchestrator
  2. Entity
  3. Client
  4. Activity

Answer(s): A,D

Explanation:

The Durable Functions extension exposes a set of built-in HTTP APIs that can be used to perform management tasks on orchestrations, entities, and task hubs.
These HTTP APIs are extensibility webhooks that are authorized by the Azure Functions host but handled directly by the Durable Functions extension.


Reference:

https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-http-api



DRAG DROP (Drag and Drop is not supported)
You are authoring a set of nested Azure Resource Manager templates to deploy multiple Azure resources.
The templates must be tested before deployment and must follow recommended practices.
You need to validate and test the templates before deployment.
Which tools should you use? To answer, drag the appropriate tools to the correct requirements. Each tool 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.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:


Box 1: Azure Resource Manager test toolkit
Use ARM template test toolkit
The Azure Resource Manager template (ARM template) test toolkit checks whether your template uses recommended practices. When your template isn't compliant with recommended practices, it returns a list of warnings with the suggested changes. By using the test toolkit, you can learn how to avoid common problems in template development.
Box 2: What-if operation
ARM template deployment what-if operation
Before deploying an Azure Resource Manager template (ARM template), you can preview the changes that will happen. Azure Resource Manager provides the what-if operation to let you see how resources will change if you deploy the template. The what-if operation doesn't make any changes to existing resources.
Instead, it predicts the changes if the specified template is deployed.


Reference:

https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/test-toolkit https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/deploy-what-if



You develop Azure Durable Functions to manage vehicle loans.
The loan process includes multiple actions that must be run in a specified order. One of the actions includes a customer credit check process, which may require multiple days to process.
You need to implement Azure Durable Functions for the loan process.
Which Azure Durable Functions type should you use?

  1. orchestrator
  2. client
  3. entity
  4. activity

Answer(s): A






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

Exam Discussions & Posts