AZ-204 Exam QuestionsBrowse all questions from this exam

AZ-204 Exam - Question 378


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.json 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.

Exam AZ-204 Question 378
Show Answer
Correct Answer:
Exam AZ-204 Question 378

Discussion

4 comments
Sign in to comment
Firo
Jul 29, 2023

Queue name: %input_queue% Reference: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-expressions-patterns#binding-expressions---app-settings Blob name: {queue Trigger} Reference: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-expressions-patterns#trigger-metadata Blobname

Christian_garcia_martin
Aug 4, 2024

you are right.

Ayaz_b
Sep 29, 2023

{ "bindings": [ { "type": "queueTrigger", "name": "myQueueItem", "direction": "in", "queueName": "%input_queue%" // Reference the input_queue app setting }, { "type": "blob", "name": "outputBlob", "path": "{QueueTrigger}", // Use the value from the queue message as the blob name "connection": "AzureWebJobsStorage", "direction": "out", "containerName": "%output_blobcontainer%" // Reference the output_blobcontainer app setting } ] }

Vichu_1607
Oct 1, 2024

Queue name c. %input_queue%: In Azure Functions, you can use the %name% syntax in the function.json file to reference app settings. So, to reference the queue name set by an app setting named input_queue, you would use %input_queue%. Blob name a. {queueTrigger}: The {queueTrigger} binding expression gets the content of the queue message that triggered the function. This can be used to create a blob with the same name as the content of the message.

Thameur01
Apr 16, 2025

- Queue name: %input_queue% - Blob name: {queue Trigger}