0
0
Azurecloud~20 mins

Input and output bindings in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure Input and Output Bindings Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Azure Function Input Binding Behavior

Consider an Azure Function configured with a Blob Storage input binding that triggers when a new blob is added. What will the function receive as input?

AThe function receives the blob's content as a stream or string, depending on configuration.
BThe function receives only the blob's metadata, not the content.
CThe function receives the blob's URL as a string but no content.
DThe function receives a trigger event object without any blob data.
Attempts:
2 left
💡 Hint

Think about what input bindings provide to the function code.

Configuration
intermediate
2:00remaining
Output Binding Configuration for Azure Queue Storage

You want an Azure Function to send messages to an Azure Queue Storage after processing. Which configuration correctly defines the output binding in function.json?

Azure
{
  "bindings": [
    {
      "name": "outputQueueItem",
      "type": "queue",
      "direction": "out",
      "queueName": "myqueue-items",
      "connection": "AzureWebJobsStorage"
    }
  ]
}
A
{
  "name": "outputQueueItem",
  "type": "queueTrigger",
  "direction": "in",
  "queueName": "myqueue-items",
  "connection": "AzureWebJobsStorage"
}
B
{
  "name": "outputQueueItem",
  "type": "queue",
  "direction": "out",
  "queueName": "myqueue-items",
  "connection": "AzureWebJobsStorage"
}
C
{
  "name": "outputQueueItem",
  "type": "blob",
  "direction": "out",
  "path": "myqueue-items",
  "connection": "AzureWebJobsStorage"
}
D
{
  "name": "outputQueueItem",
  "type": "queue",
  "direction": "in",
  "queueName": "myqueue-items",
  "connection": "AzureWebJobsStorage"
}
Attempts:
2 left
💡 Hint

Check the binding type and direction for sending messages to a queue.

Architecture
advanced
2:30remaining
Designing Azure Functions with Multiple Output Bindings

You have an Azure Function that processes data and needs to write results to both a Cosmos DB collection and an Azure Blob Storage container. Which approach correctly supports multiple output bindings?

ADefine two output bindings in function.json, one for Cosmos DB and one for Blob Storage, and use separate parameters in the function signature for each output.
BUse a single output binding with type 'cosmosDBBlob' that writes to both services simultaneously.
CCreate two separate Azure Functions, each with a single output binding, and call one from the other.
DWrite to Cosmos DB inside the function code and configure Blob Storage as an output binding.
Attempts:
2 left
💡 Hint

Think about how Azure Functions handle multiple outputs.

security
advanced
2:00remaining
Securing Azure Function Output Bindings

Which is the best practice to secure connection strings used in Azure Function output bindings?

AUse plain text connection strings in function.json without encryption.
BHardcode connection strings directly in the function code for faster access.
CStore connection strings in a public GitHub repository for easy sharing.
DStore connection strings in Azure Key Vault and reference them via app settings in the function configuration.
Attempts:
2 left
💡 Hint

Consider secure storage and access of sensitive information.

🧠 Conceptual
expert
3:00remaining
Understanding Output Binding Behavior on Function Failure

If an Azure Function with an output binding to Azure Table Storage fails during execution after partially writing data, what is the expected behavior regarding the output binding?

AThe output binding operation is rolled back; no partial data is written to Table Storage.
BThe function automatically retries and duplicates data in Table Storage.
CPartial data may be written to Table Storage because output bindings are not transactional with function execution.
DThe output binding writes data only after the function completes successfully, ensuring atomicity.
Attempts:
2 left
💡 Hint

Think about transaction boundaries between function execution and output bindings.