Developing Solutions for Microsoft Azure: AZ-204 Exam - Answer Analysis

Azure Blob Storage Photo Processing: Designing the Solution

Question

Note: This question is part of a series of questions that present the same scenario.

Each question in the series contains a unique solution that might meet the stated goals.

Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it.

As a result, these questions will not appear in the review screen.

You develop a software as a service (SaaS) offering to manage photographs.

Users upload photos to a web service which then stores the photos in Azure Storage Blob storage.

The storage account type is General-purpose V2

When photos are uploaded, they must be processed to produce and save a mobile-friendly version of the image.

The process to produce a mobile-friendly version of the image must start in less than one minute.

You need to design the process that starts the photo processing.

Solution: Create an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload.

Does the solution meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

A.

In the Consumption hosting plan, resources are added dynamically as required by your functions.

https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function

The proposed solution of creating an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload appears to meet the stated goal of ensuring that the process to produce a mobile-friendly version of the image starts in less than one minute.

Azure Functions is a serverless compute service that allows you to run code on-demand without the need to manage infrastructure. With Azure Functions, you can create a serverless workflow that can be triggered by events from various sources, including Azure Blob Storage. When a blob is uploaded to the storage account, an event is fired which can trigger the Azure Function.

Using the Consumption hosting model for the Azure Function app ensures that resources are allocated dynamically as needed, based on the number of incoming requests. This helps to reduce costs by ensuring that you only pay for the resources that are actually used. Additionally, this model is well suited for sporadic and low-scale workloads.

The use of Azure Blob Storage also appears to be a suitable choice for storing the uploaded photographs, as it provides a scalable and cost-effective solution for storing unstructured data such as images.

In summary, the proposed solution of creating an Azure Function app that uses the Consumption hosting model and that is triggered from the blob upload appears to meet the stated goal of ensuring that the process to produce a mobile-friendly version of the image starts in less than one minute.