All Coursera Quiz Answers

Create Serverless Applications Week 5 Test prep Quiz Answers

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

Enrol Link:  Create Serverless Applications

Create Serverless Applications Week 5 Test prep Quiz Answers

 

Question 1)
You are developing an application named Application1 which uses an Azure Function. The source code for Application1 is in a GitHub repository under the master branch. You need to create your function and configure it to deploy code from a GitHub repository.
Which of these Azure CLI commands should you use?

az functionapp create –name $functionAppName \
–storage-account $storageName \
–consumption-plan-location $region \
–resource-group myResourceGroup \
–deployment-source-url $gitrepo \
–deployment-source-branch master \
–functions-version 2

 

Question 2)
What is a payload URL in webhooks?

  • The URL of the client that will receive the webhook GET requests.
  • The URL of the client that will receive the webhook POST requests.
  • The URL of the server that will receive the webhook POST requests.
  • The URL of the server that will receive the webhook GET requests.

Question 3)
Which are the three sections that form the structure of a Gollum event payload? Select all options that apply.

  • Pages
  • Repository
  • Resources
  • Sender
  • Parameters

Question 4)
You trigger an Azure Function with a GitHub event. What kind of hashing algorithm does GitHub use to encrypt the request it sends to your function?

  • HMAC SHA2
  • MD5
  • HMAC SHA1

Question 5)
You configure an Azure Function to receive payloads and you want to limit requests coming from GitHub. To do that, you choose on securing the webhook payloads with a secret. How does the hash signature need to start?

  • sha1=
  • sha=1
  • =sha1

Question 6)
You plan on setting up a webhook for a GitHub repository that will trigger an Azure Function. How many steps are involved in achieving this?

  • Four steps
  • Two steps
  • One step only

Question 7)
True or False?
Setting a webhook secret allows you to ensure that POST requests sent to the payload URL are from GitHub. When you set a secret, you’ll receive a header named “x-sign-hub” in the webhook POST request.

  • True
  • False