All Coursera Quiz Answers

Create Serverless Applications Week 2 Test prep Quiz Answers

In this article i am gone to share Coursera Course: Create Serverless Applications by Microsoft | Create Serverless Applications Week 2 Test prep Quiz Answers with you..

Enrol Link:  Create Serverless Applications

Create Serverless Applications Week 2 Test prep Quiz Answers

 

Test prep Quiz Answers

Question 1)
You’re developing an HTTP-triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob. The app continues to time out after four minutes. The app must process the blob data. You need to ensure the app does not time out and processes the blob data.
Solution: Pass the HTTP trigger payload into an Azure Service Bus queue to be processed by a queue trigger function and return an immediate HTTP success response.
Does the solution meet the goal?

  • Yes
  • No

Question 2)
You are developing an Azure Function App that processes images that are uploaded to an Azure Blob container. Images must be processed as quickly as possible after they are uploaded, and the solution must minimize latency. You create code to process images when the Function App is triggered.
You need to configure the Function App.
What should you do?

  • Use an App Service plan. Configure the Function App to use an Azure Blob Storage input trigger.
  • Use an App Service plan. Configure the Function App to use an Azure Blob Storage trigger.
  • Use a Consumption plan. Configure the Function App to use a Timer trigger.
  • Use a Consumption plan. Configure the Function App to use an Azure Blob Storage trigger.

Question 3)
You are developing a software as a service (SaaS) offering to manage photos. 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 a thumbnail version of the image. The process to produce a mobile-friendly version of the image should start in less than one minute.
You need to design the process that starts the photo processing.
Solution: Move photo processing to an Azure Function triggered from the blob upload.
Does the solution meet the goal?

  • Yes
  • No

Question 4)
You are developing a software as a service (SaaS) offering to manage photos. 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 a thumbnail version of the image. The process to produce a mobile-friendly version of the image should start in less than one minute.
You need to design the process that starts the photo processing.
Which of the following solutions is the most efficient and meets the goal?

  • Create an Azure Function App that uses the Consumption hosting model and that is triggered from the blob upload.
  • Create an Azure Function App that uses a Premium tier and that is triggered by a CRON expression.
  • Create an API Management service

Question 5)
You have an application named Application1. Application1 uses Azure Cosmos DB that is configured with 200 RU/s. You need to configure the database to auto scale based on the working hours. The database must scale-up to 500 RU/s during working hours whereas scale-down to 200 RU/s in non-working hours.
How should you configure auto-scale?

  • Create a time-based Azure Function to scale Azure Cosmos DB
  • Use Azure Monitor to Scale Azure Cosmos DB
  • Configure auto-scale condition in Azure Cosmos DB

Question 6)
What are the three authorization levels supported by the HTTP triggers? Select all options that apply.

  • Owner
  • Anonymous
  • Contributor
  • Function
  • Admin

Question 7)
You are developing an Azure function that has a blob trigger associated with it and it must execute only when PNG images are uploaded. Which blob trigger path values should you use?

  • samples-workitems/{name}?png
  • {name}/png/samples-workitems
  • {name}.png/samples-workitems
  • samples-workitems/{name}.png