What are input and output bindings?
Short answer: Input bindings: Provide data to the function from external sources (e.g., queue message, blob content).
Explain a bit more
Output bindings: Send data from the function to external destinations (e.g., Cosmos DB, Storage Queue). Example: [FunctionName("QueueToBlobFunction")] public static void Run( [QueueTrigger("myqueue")] string queueMessage, [Blob("output-container/{rand-guid}.txt", FileAccess.Write)] out string blobContent, ILogger log) { log.LogInformation($"Processing queue message: {queueMessage}"); blobContent = queueMessage; // Write to blob
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png