Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

You are developing an application which must execute a sequence of activities in a

specific order. You plan to create a Durablefunction. Which three actions should
you perform in sequence?

Create an Azure Function with Durable Plan Install durable functions npm package
Create a durable function
Create an Azure Function with Consumption Plan Install durable functions npm
package Create a durable function
Create an Azure Function with App Service Plan Install durable functions npm
package Create a durable function b

you develop a serverless application using several Azure Functions. These functions
connect to data from within the code.
You want to configure tracing for an Azure Function App project.
You need to change configuration settings in the host.json file.
Which tool should you use?

Visual Studio
Azure portal
Azure PowerShell
Azure Functions Core Tools (Azure CLI) A

You are developing an Azure Function which process the messages in a queue. The
outcome of the process must be stored in a Azure Cosmos DB.
You need to identify which of the following code snippets will suffice the
requirement?

[FunctionName("QueueToDocDB")] public static void Run( [CosmosDBTrigger("myqueue-


items", Connection = "AzureWebJobsStorage")] string myQueueItem, [Queue("ToDoList",
"Items", Id = "id", ConnectionStringSetting = "myCosmosDB")] out dynamic document)
{ ... }
[FunctionName("QueueToDocDB")] public static void Run( [QueueTrigger("myqueue-
items", Connection = "AzureWebJobsStorage")] string myQueueItem,
[CosmosDB("ToDoList", "Items", Id = "id", ConnectionStringSetting = "myCosmosDB")]
in dynamic document) { ... }
[FunctionName("QueueToDocDB")] public static void Run( [QueueTrigger("myqueue-
items", Connection = "AzureWebJobsStorage")] string myQueueItem,
[CosmosDB("ToDoList", "Items", Id = "id", ConnectionStringSetting = "myCosmosDB")]
out dynamic document) { ... }
c

You have an application named Application1. The Application1 uses Azure Cosmos DB
that is configured with 200 RU/s. You need to configure the database to auto scale
based on the working hours. The database must ScaleUp to 500 RU/s during working
hours whereas Scaledown to 200 RU/s in non-working hours.
How should you configure autoscale?

Use Azure Monitor to Scale Azure Cosmos DB


Create a time based Azure Function to scale Azure Cosmos DB
Configure Autoscale condition in Azure Cosmos DB b

You are creating an app that uses Event Grid to connect with other services. Your
app’s event data will be sent to a serverless function that checks compliance. This
function is maintained by your company. You write a new event subscription at the
scope of your resource. The event must be invalidated after a specific period of
time. You need to configure Event Grid.
What should you implement for topic publishing?

Management access control


SAS Tokens
Key Authentication b

You are creating an app that uses Event Grid to connect with other services. Your
app’s event data will be sent to a serverless function that checks compliance.This
function is maintained by your company. You write a new event subscription at the
scope of your resource. The event must be invalidated after a specific period of
time. You need to configure Event Grid.
What should you implement for WebHook event delivery?

ValidationURL Handshake
ValidationCode Handshake
JWT token b

You need to resolve a notification latency issue.


Which two actions should you perform? Each correct answer presents part of the
solution.

Set Always On to false


Set Always On to true
Ensure that the Azure Function is set to use a consumption plan
Ensure that the Azure Function is using an App Service plan b

You are developing an Azure Function. This function will be using the Azure Blob
storage trigger. You have to ensure the Function is triggered whenever .png files
are added to a container named data.

You decide to add the following filter in the function.json file

“path”: “data/{name}.png”

Yes
No 1

You are developing a set of Azure Functions. You have deployed a new Azure Function
App. The Function App uses the underlying language runtime of .Net Core 3.1. You
have to configure the logging level for the Azure Functions. In which of the
following would you configure the logging details?

function.json
host.json
app.json
app.xml
1
Your company ABC Consultancy has an internal employees holiday home booking
website. An employee can select multiple locations for holidays. Upon selection,
the system automatically books hotels and transportation for the employee.

You decide to leverage Azure Durable Functions to perform the workflow of automatic
booking.

What is the most effective application pattern for your Durable Functions?

Function Chaining
Human Interaction
Fan-out/Fan-In
Monitor3

The A2Z consultancy firm hosts multiple Function Apps within an Azure App Service
plan.

Once the Production release is complete, the team wants to monitor the health of
the Function Apps using Azure Application Insights. As a developer of one of the
function App, what configuration changes you need to perform so that your
applications details are available to the Azure App Insights separated by
environments?

Add Azure App Insights Instrumentation Key to the App settings.


Add the Azure App Insights into function App using RBAC.
Add Azure App Insights Service Principle Id to the App settings.
Add the function App into Azure App Insights using RBAC.1

Users report that anomaly detection emails can sometimes arrive several minutes
after an anomaly is detected. How can you resolve this issue?

A. Ensure that the Azure Function is using an App Service plan.


B. Set Always On to false
C. Ensure that the Azure Function is set to use a consumption plan.
D. Set Always On to true.2

You might also like