Azure Functions · AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions

A company wants an Azure Function to run whenever a file is uploaded to the incoming container in Azure Blob Storage. The function must create a thum…

Practice question from Azure Functions (AZ-204: Developing Solutions for Microsoft Azure Develop Azure Compute Solutions), with the correct answer and a step-by-step solution.

easy · MCQ · Q-B0AF35

A company wants an Azure Function to run whenever a file is uploaded to the incoming container in Azure Blob Storage. The function must create a thumbnail and write it to the thumbnails container without explicitly creating BlobServiceClient code. Which design satisfies these requirements?

  1. A.Use a Blob trigger for the incoming container and a Blob output binding for the thumbnails container.Correct answer
  2. B.Use an HTTP trigger and require the uploading client to invoke the function after the upload.
  3. C.Use a timer trigger and periodically scan the incoming container with an HTTP output binding.
  4. D.Use a queue trigger and configure the thumbnails container as the function's application setting.

Solution

A Blob trigger starts the function when a blob is created or updated. A Blob output binding lets the function write the generated thumbnail to Blob Storage without directly managing the storage client for that operation.

More from Azure Functions

All of Azure Functions

Practise more Develop Azure Compute Solutions

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed