▸case-22 A developer wraps `new HttpClient()` inside a `using` statement in a C# HTTP function, believing it cleans up resources safely. Explain why this approach causes socket exhaustion in serverless environments and what pattern should be used instead. | pass→pass | 15,754 | 13,556 | -14% | 1 | 1 | 0% | 2,675 | 11,224 | +320% | 0 | 0 | — |
▸case-01 In a newly created .NET 8 isolated worker Azure Function app, a developer wrote an HTTP trigger returning `IActionResult` (such as `OkObjectResult`). The project fails to build or behaves unexpectedly. How should HTTP trigger methods return responses in the .NET isolated worker model? | pass→pass | 10,855 | 14,061 | +30% | 1 | 1 | 0% | 2,058 | 11,355 | +452% | 0 | 0 | — |
▸case-02 A team built an HTTP-triggered Azure Function that performs heavy data synthesis taking 6 minutes. They configured `functionTimeout` to `00:10:00` in `host.json`, but clients consistently receive HTTP 504 Gateway Timeout errors after roughly 4 minutes. Explain why this occurs and how to fix the HTTP design pattern. | pass→pass | 15,354 | 14,959 | -3% | 1 | 1 | 0% | 2,593 | 11,567 | +346% | 0 | 0 | — |
▸case-03 An Azure Function app making thousands of downstream REST API calls per minute is throwing `SocketException` errors in production under high load, despite working fine locally. The code instantiates `new HttpClient()` inside the function method body for each invocation. Explain the root cause and the idiomatic C# isolated worker setup fix. | pass→pass | 15,768 | 14,962 | -5% | 1 | 1 | 0% | 2,859 | 11,557 | +304% | 0 | 0 | — |
▸case-04 During load testing, a .NET Azure Function hangs indefinitely and throws task cancellation exceptions. Code inspection shows synchronous calls like `var result = client.GetAsync(url).Result;` and `Thread.Sleep(3000);` inside the trigger handler. What causes this failure under concurrency, and how should it be rewritten? | pass→pass | 14,851 | 14,439 | -3% | 1 | 1 | 0% | 2,463 | 11,444 | +365% | 0 | 0 | — |
▸case-05 A nightly batch processing job running on an Azure Functions Consumption plan is cut off mid-execution without throwing catchable C# exceptions. The developer wants to increase `functionTimeout` in `host.json` to 30 minutes. Will this work on the Consumption plan, and what are the operational limits and options? | pass→pass | 13,191 | 12,625 | -4% | 1 | 1 | 0% | 2,210 | 10,995 | +398% | 0 | 0 | — |
▸case-06 A client is starting a brand new C# Azure Functions project and asks whether to use `Microsoft.NET.Sdk.Functions` with in-process class libraries or the isolated worker model. What is the lifecycle status of the in-process model, and which model should be selected? | pass→pass | 10,195 | 9,651 | -5% | 1 | 1 | 0% | 1,699 | 10,724 | +531% | 0 | 0 | — |
▸case-07 A Node.js developer creating a TypeScript Azure Function is looking for `function.json` files in a template repository, but cannot find any. How does the Node.js v4 programming model handle function triggers and bindings? | pass→pass | 11,874 | 11,656 | -2% | 1 | 1 | 0% | 2,100 | 11,025 | +425% | 0 | 0 | — |
▸case-08 A Python developer wants to write a serverless backend with HTTP, Blob, and Timer triggers using Azure Functions without managing separate JSON config files for every endpoint. What programming model should they adopt, and how are routes declared? | pass→pass | 10,374 | 9,729 | -6% | 1 | 1 | 0% | 1,944 | 10,750 | +453% | 0 | 0 | — |
▸case-09 An image processing system needs to process 500 uploaded photos concurrently, aggregate the status of all operations, and return a summary payload. How should this workflow be structured in Durable Functions? | pass→pass | 15,656 | 16,562 | +6% | 1 | 1 | 0% | 2,765 | 11,873 | +329% | 0 | 0 | — |
▸case-10 An Azure Queue storage trigger function fails to process a malformed JSON message. What is the default retry behavior in Azure Functions, where does the message go after max retries, and how is the poison queue named? | pass→pass | 6,358 | 9,571 | +51% | 1 | 1 | 0% | 1,132 | 10,445 | +823% | 0 | 0 | — |
▸case-11 An enterprise upgraded their Azure Function App to the Elastic Premium plan to eliminate cold starts, but users still experience 3-second latencies when a new instance scales out because heavy database initialization code runs during the first HTTP request. How can they force initialization logic to execute before traffic hits the instance? | pass→pass | 14,087 | 13,856 | -2% | 1 | 1 | 0% | 2,220 | 11,316 | +410% | 0 | 0 | — |
▸case-12 In a .NET isolated worker function app, console logs are visible locally, but Application Insights trace logs are missing in Azure despite having valid connection strings. What configuration steps in `Program.cs` are required to connect DI `ILogger` to Application Insights? | pass→pass | 14,123 | 12,789 | -9% | 1 | 1 | 0% | 2,451 | 11,242 | +359% | 0 | 0 | — |
▸case-13 Review the following C# .NET isolated worker function handler method:
```csharp
public class OrderApi
{
public async Task<HttpResponseData> HandleOrder(
[HttpTrigger(AuthorizationLevel.Function, "post")] HttpRequestData req)
{
return req.CreateResponse(HttpStatusCode.OK);
}
}
```
Which mandatory attribute is missing from the method declaration, and what issue occurs at host startup? | pass→pass | 5,816 | 5,331 | -8% | 1 | 1 | 0% | 1,063 | 9,710 | +813% | 0 | 0 | — |
▸case-14 A code reviewer is auditing an Azure Function trigger definition written as follows:
```csharp
[Function("ProcessOrder")]
public async Task Run(
[ServiceBusTrigger("orders", Connection = "Endpoint=sb://prod-bus.servicebus.windows.net/;SharedAccessKeyName=Root;SharedAccessKey=SecretKey123=")] string message)
{
}
```
Identify the security concern in this attribute definition and state the standard fix. | pass→pass | 7,151 | 13,223 | +85% | 1 | 1 | 0% | 1,350 | 10,011 | +642% | 0 | 0 | — |
▸case-15 An HTTP function endpoint is annotated with `[HttpTrigger(AuthorizationLevel.Anonymous, "get", "post")]`. Why is this authorization level risky in production, and how should access be secured? | pass→pass | 12,470 | 14,334 | +15% | 1 | 1 | 0% | 2,220 | 11,189 | +404% | 0 | 0 | — |
▸case-16 A multi-step order processing flow requires sequential execution where step 1 validates, step 2 charges payment, and step 3 sends confirmation. If step 2 fails or restarts, state must be preserved so step 1 does not execute again. How is this pattern constructed in Durable Functions? | pass→pass | 13,583 | 15,266 | +12% | 1 | 1 | 0% | 2,475 | 11,879 | +380% | 0 | 0 | — |
▸case-21 To prevent an Azure Storage Queue trigger function from overpowering a backend service, an engineer wants to cap the maximum number of queue items processed concurrently on a single instance. Which configuration key inside `host.json` sets this limit? | pass→pass | 6,305 | 5,598 | -11% | 1 | 1 | 0% | 1,200 | 9,684 | +707% | 0 | 0 | — |
▸case-17 A .NET 8 isolated worker function project includes a ServiceBusTrigger attribute, but running `func host start` reports zero job functions found. What missing package in `.csproj` causes this binding registration issue? | pass→pass | 7,588 | 6,460 | -15% | 1 | 1 | 0% | 1,393 | 9,982 | +617% | 0 | 0 | — |
▸case-18 In an asynchronous Python Azure Function (`async def`), a developer places `time.sleep(5)` to introduce a delay. What performance degradation does this cause under concurrent load, and what is the proper non-blocking syntax? | pass→pass | 9,655 | 8,991 | -7% | 1 | 1 | 0% | 1,572 | 10,328 | +557% | 0 | 0 | — |
▸case-19 When initiating a Durable Functions workflow from an HTTP trigger in C#, what client method formats the HTTP response containing `statusQueryGetUri` and status checking endpoints? | pass→pass | 5,908 | 7,550 | +28% | 1 | 1 | 0% | 1,126 | 10,344 | +819% | 0 | 0 | — |
▸case-20 A large Node.js Azure Function app suffers from extended cold start times because thousands of individual files inside `node_modules` are read from remote storage during container boot. What deployment setting resolves this by serving code from a compressed archive? | pass→pass | 4,492 | 8,759 | +95% | 1 | 1 | 0% | 692 | 10,248 | +1381% | 0 | 0 | — |
▸case-23 What MSBuild setting can be enabled in a C# .NET isolated worker project file to trim unused framework assemblies and shrink the published artifact size for faster cold start? | pass→pass | 7,562 | 5,563 | -26% | 1 | 1 | 0% | 1,333 | 9,755 | +632% | 0 | 0 | — |
▸case-24 I am configuring an AWS Lambda function triggered by an Amazon SQS FIFO queue using AWS SAM. How should I set batch size and visibility timeout in SAM template syntax? | pass→pass | 11,159 | 10,554 | -5% | 1 | 1 | 0% | 2,021 | 10,684 | +429% | 0 | 0 | — |
▸case-25 We need to set up an Azure Active Directory App Registration with federated credentials and client secret rotation for an App Service web application. What CLI commands configure the service principal? | fail→pass | 12,991 | 16,584 | +28% | 1 | 1 | 0% | 2,541 | 12,057 | +374% | 0 | 0 | — |
▸case-26 We are designing a Cosmos DB NoSQL database for an e-commerce platform. What strategy should we use to select high-cardinality partition keys and structure hierarchical JSON documents? | pass→pass | 20,947 | 20,309 | -3% | 1 | 1 | 0% | 3,518 | 12,380 | +252% | 0 | 0 | — |
▸case-27 How do I create a multi-tenant enterprise integration workflow with graphical drag-and-drop connectors for SAP BAPI and Salesforce using Azure Logic Apps? | pass→pass | 22,315 | 16,570 | -26% | 1 | 1 | 0% | 3,655 | 11,615 | +218% | 0 | 0 | — |