0
0
Azurecloud~10 mins

Function execution model in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the trigger type for an Azure Function.

Azure
trigger: [1]
Drag options to blanks, or click blank then click option'
AhttpTrigger
BblobTrigger
CqueueTrigger
DtimerTrigger
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a trigger that starts on storage events instead of HTTP requests.
Using a timer trigger when expecting an HTTP request.
2fill in blank
medium

Complete the code to define the runtime version for an Azure Function app.

Azure
runtimeVersion: [1]
Drag options to blanks, or click blank then click option'
A~3
B~4
C~2
D~1
Attempts:
3 left
💡 Hint
Common Mistakes
Selecting an older runtime version that lacks current features.
Confusing the runtime version with the language version.
3fill in blank
hard

Fix the error in the function.json binding direction property.

Azure
"direction": "[1]"
Drag options to blanks, or click blank then click option'
Aout
Binput
Coutput
Din
Attempts:
3 left
💡 Hint
Common Mistakes
Using full words like 'input' or 'output' instead of 'in' or 'out'.
Mixing up input and output directions.
4fill in blank
hard

Fill both blanks to configure an Azure Function with a timer trigger and a schedule.

Azure
{
  "bindings": [
    {
      "type": "[1]",
      "schedule": "[2]"
    }
  ]
}
Drag options to blanks, or click blank then click option'
AtimerTrigger
BhttpTrigger
C0 */5 * * * *
D0 0 * * * *
Attempts:
3 left
💡 Hint
Common Mistakes
Using httpTrigger with a schedule property.
Choosing a schedule that does not match the intended frequency.
5fill in blank
hard

Fill all three blanks to define an Azure Function with an HTTP trigger, a route, and an authorization level.

Azure
{
  "bindings": [
    {
      "type": "[1]",
      "route": "[2]",
      "authLevel": "[3]"
    }
  ]
}
Drag options to blanks, or click blank then click option'
AhttpTrigger
Bapi/items
Cfunction
DtimerTrigger
Attempts:
3 left
💡 Hint
Common Mistakes
Using timerTrigger instead of httpTrigger.
Setting an invalid route format.
Confusing authLevel values.