exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 6 question 48 discussion

Actual exam question from Microsoft's AZ-204
Question #: 48
Topic #: 6
[All AZ-204 Questions]

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.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Firo
Highly Voted 1 year, 8 months ago
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
upvoted 26 times
Christian_garcia_martin
8 months, 2 weeks ago
you are right.
upvoted 1 times
...
...
Ayaz_b
Highly Voted 1 year, 6 months ago
{ "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 } ] }
upvoted 7 times
...
Thameur01
Most Recent 3 days, 9 hours ago
- Queue name: %input_queue% - Blob name: {queue Trigger}
upvoted 1 times
...
Vichu_1607
6 months, 2 weeks ago
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.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago