Microsoft Certified: Azure Developer Associate Azure Functions and Serverless Computing 2 — Questions and Answers
Question 1: Which Azure Functions trigger fires a function on a schedule defined by a CRON expression?
- Queue trigger
- Timer trigger (Correct answer)
- Event Grid trigger
- HTTP trigger
Correct answer: Timer trigger
The Timer trigger executes a function at intervals or on specific times defined by a NCRONTAB expression.
Question 2: In `host.json`, which setting controls the maximum number of concurrent function executions per instance?
- maxConcurrentCalls (Correct answer)
- functionTimeout
- maxOutstandingRequests
- maxConcurrentInstances
Correct answer: maxConcurrentCalls
`maxConcurrentCalls` in `host.json` under the `queues` or `serviceBus` extension limits how many function invocations run in parallel per host.
Question 3: What is the purpose of the `local.settings.json` file in Azure Functions development?
- Defines production environment variables
- Stores connection strings and app settings for local development only (Correct answer)
- Configures binding extensions
- Sets the runtime version for deployment
Correct answer: Stores connection strings and app settings for local development only
`local.settings.json` holds app settings and connection strings used only during local development and should never be committed to source control.
Question 4: Which output binding allows an Azure Function to write messages directly to an Azure Service Bus queue?
- [Queue] binding
- [ServiceBus] output binding (Correct answer)
- [EventHub] output binding
- [Topic] binding
Correct answer: [ServiceBus] output binding
The `[ServiceBus]` output binding lets a function send messages to a Service Bus queue or topic without SDK code.
Question 5: What Durable Functions feature enables long-running workflows to pause and wait for an external event?
- waitForExternalEvent (Correct answer)
- callActivityAsync
- createTimer
- continueAsNew
Correct answer: waitForExternalEvent
`waitForExternalEvent` suspends an orchestration and resumes it when a named external event is raised via the client API.
Question 6: Which Azure Functions Premium plan feature keeps at least one warm instance ready to eliminate cold starts?
- Always On setting
- Pre-warmed instances (Correct answer)
- Reserved instances
- Instance pooling
Correct answer: Pre-warmed instances
The Premium plan's pre-warmed instances maintain at least one initialized host ready to respond instantly, eliminating cold start latency.
Which Azure Functions trigger fires a function on a schedule defined by a CRON expression?