exam questions

Exam DP-201 All Questions

View all questions & answers for the DP-201 exam

Exam DP-201 topic 2 question 41 discussion

Actual exam question from Microsoft's DP-201
Question #: 41
Topic #: 2
[All DP-201 Questions]

You are designing a real-time stream solution based on Azure Functions. The solution will process data uploaded to Azure Blob Storage.
The solution requirements are as follows:
✑ Support up to 1 million blobs.
✑ Scaling must occur automatically.
✑ Costs must be minimized.
What should you recommend?

  • A. Deploy the Azure Function in an App Service plan and use a Blob trigger.
  • B. Deploy the Azure Function in a Consumption plan and use an Event Grid trigger.
  • C. Deploy the Azure Function in a Consumption plan and use a Blob trigger.
  • D. Deploy the Azure Function in an App Service plan and use an Event Grid trigger.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Create a function, with the help of a blob trigger template, which is triggered when files are uploaded to or updated in Azure Blob storage.
You use a consumption plan, which is a hosting plan that defines how resources are allocated to your function app. In the default Consumption Plan, resources are added dynamically as required by your functions. In this serverless hosting, you only pay for the time your functions run. When you run in an App Service plan, you must manage the scaling of your function app.
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function

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
sdas1
Highly Voted 4 years, 3 months ago
The solution is B - Deploy the Azure Function in a Consumption plan and use an Event Grid trigger. 1M blobs will cripple the ability of blob trigger to provide the events. The EventGrid trigger is instantaneous, so it depends on your needs.
upvoted 39 times
...
Wendy_DK
Highly Voted 4 years, 1 month ago
It repeated question
upvoted 8 times
...
dakku987
Most Recent 1 year, 6 months ago
Selected Answer: B
B. Deploy the Azure Function in a Consumption plan and use an Event Grid trigger. Consumption Plan: Azure Functions in a Consumption Plan automatically scales based on the number of incoming events. It is a serverless option where you only pay for the actual execution of functions. Event Grid Trigger: Using an Event Grid trigger allows you to respond to events in Azure Blob Storage, such as new blobs being created. This is a more event-driven and scalable approach compared to polling for changes. chat gpt
upvoted 1 times
...
satyamkishoresingh
3 years, 8 months ago
repeated . Answer B
upvoted 2 times
...
davita8
4 years, 2 months ago
C. Deploy the Azure Function in a Consumption plan and use a Blob trigger.
upvoted 4 times
...
davita8
4 years, 2 months ago
B. Deploy the Azure Function in a Consumption plan and use an Event Grid trigger.
upvoted 2 times
...
karma_wins
4 years, 2 months ago
"B" is correct because https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp#event-grid-trigger
upvoted 4 times
cadio30
4 years, 1 month ago
Agree with the propose solution as the url states the scenario to utilize event trigger
upvoted 1 times
...
...
v_gul
4 years, 2 months ago
The solution is D - Deploy the Azure Function in an App Service plan and use an Event Grid trigger. App Service plan - ... If you need low latency in your blob triggered functions, consider running your function app in an App Service plan. SOURCE -> https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-storage-blob-triggered-function Event Grid trigger - ... The Event Grid trigger also has built-in support for blob events. Use Event Grid instead of the Blob storage trigger for the following scenarios: ... High-scale: High scale can be loosely defined as containers that have more than 100,000 blobs in them or storage accounts that have more than 100 blob updates per second. SOURCE - > https://docs.microsoft.com/en-gb/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp
upvoted 2 times
Apox
4 years, 2 months ago
Since minimizing costs is a requirement, and low latency is not, the correct answer should be a "consumption plan". Otherwise I agree with Event Grid Trigger, as this should be used if there are more than 100 000 blobs.
upvoted 2 times
...
...
H_S
4 years, 3 months ago
When your function app runs in the default Consumption plan, there may be a delay of up to several minutes between the blob being added or updated and the function being triggered. If you need low latency in your blob triggered functions, consider running your function app in an App Service plan.
upvoted 2 times
szpinat
4 years, 3 months ago
"You can also use an Event Grid trigger with your Blob storage account." https://docs.microsoft.com/en-gb/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp
upvoted 1 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 ...