Developing Solutions for Microsoft Azure: AZ-204 Exam Question - SaaS Offering for Photograph Management

How to Design a Process for Photo Processing in Azure Storage Blob Storage

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: Convert the Azure Storage account to a BlockBlobStorage storage account.

Does the solution meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B.

Not necessary to convert the account, instead move photo processing to an Azure Function triggered from the blob upload.

Azure Storage events allow applications to react to events.

Common Blob storage event scenarios include image or video processing, search indexing, or any file- oriented workflow.

Note: Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration.

Storage (general purpose v1) does not support integration with Event Grid.

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blob-event-overview

The proposed solution of converting the Azure Storage account to a BlockBlobStorage storage account does not meet the goal of starting the photo processing in less than one minute.

BlockBlobStorage is a specific type of Azure Storage account optimized for workloads that require massive amounts of unstructured object data, such as text or binary data, to be stored and accessed from anywhere in the world. However, it does not affect the speed at which the photo processing starts.

To meet the requirement of starting the photo processing in less than one minute, a more appropriate solution is to use Azure Functions or Azure Event Grid with Azure Blob Storage Triggers. This approach enables the processing of the uploaded photo to be initiated within seconds of it being uploaded to the Azure Storage Blob storage.

Azure Functions is a serverless compute service that enables you to run code on-demand without the need to provision or manage infrastructure. With Azure Blob Storage Triggers, the function can be triggered when a new blob (in this case, a photo) is uploaded to Azure Storage Blob storage. This approach ensures that the photo processing begins within a few seconds of the upload, meeting the requirement of starting the photo processing in less than one minute.

Azure Event Grid is a fully managed event routing service that enables you to react to events from various Azure services and other sources. With Azure Blob Storage Triggers, you can set up an event subscription that triggers an Azure Function when a new blob is uploaded to Azure Storage Blob storage, ensuring that the photo processing begins within a few seconds of the upload.

Therefore, the proposed solution of converting the Azure Storage account to a BlockBlobStorage storage account is not a suitable solution to meet the goal of starting the photo processing in less than one minute, and the answer is B. No.