Question 1
A function app reads a secret from Key Vault through an app setting reference. The app must keep running if the secret changes, without redeploying. What is true?
- References only work for connection strings
- The function must call Key Vault on every invocation
- References without a version pick up the latest version, refreshed periodically or on restart — Correct
- The function app must be redeployed for each new secret version, because references are resolved at build time
Correct answer
References without a version pick up the latest version, refreshed periodically or on restart
Explanation
Versionless Key Vault references resolve to the latest version, refreshed periodically and after a restart.
Question 2
Processing a long AI document job takes 4 minutes, but the queue lock duration is 1 minute. Messages are processed twice. What should you do?
- Lower MaxDeliveryCount to 1
- Renew the message lock while processing continues — Correct
- Increase the message time to live to 10 minutes so the lock stays valid during processing
- Switch to ReceiveAndDelete and accept losses
Correct answer
Renew the message lock while processing continues
Explanation
Lock renewal keeps the message locked while processing continues, preventing redelivery.
Question 3
A serverless API needs VNet integration, scale to zero, fast scaling and per-function concurrency control. Which hosting plan is recommended?
- Container Instances
- Legacy Consumption on Windows
- A Free App Service plan
- Flex Consumption — Correct
Correct answer
Flex Consumption
Explanation
The Flex Consumption plan offers serverless billing with VNet integration, always-ready instances and faster scaling.
Question 4
Which statement best distinguishes Azure Event Grid from Azure Service Bus?
- Service Bus routes events to many handlers by default, while Event Grid only supports one consumer per topic
- Event Grid guarantees FIFO ordering
- Event Grid pushes event notifications; Service Bus offers durable queued messaging with sessions and dead-lettering — Correct
- They are the same service with different pricing
Correct answer
Event Grid pushes event notifications; Service Bus offers durable queued messaging with sessions and dead-lettering
Explanation
Event Grid is reactive event routing. Service Bus is enterprise messaging with ordering, transactions and durable queues.
Question 5
A workflow fans out to 200 parallel document summarizations, then aggregates the results, with automatic checkpointing. What should you use?
- Durable Functions with the fan-out/fan-in pattern — Correct
- Event Grid only
- A timer trigger every second
- A single HTTP-triggered function with a long timeout that loops through the documents
Correct answer
Durable Functions with the fan-out/fan-in pattern
Explanation
Durable Functions orchestrations handle fan-out/fan-in with state checkpointing.
Question 6
An event-driven pipeline must keep working if a downstream API is down for an hour, without losing requests. Which design fits best?
- Use Event Grid with a 1-minute retry TTL
- Call the API directly from the HTTP trigger and retry in a loop until it responds
- Store requests in memory
- Queue the requests in Service Bus and process them with retries and a dead-letter queue — Correct
Correct answer
Queue the requests in Service Bus and process them with retries and a dead-letter queue
Explanation
Durable queues buffer work during outages, and retries plus dead-lettering prevent data loss.
Question 7
An Event Grid webhook endpoint is temporarily down. What does Event Grid do by default?
- It drops the event immediately
- It retries every second forever
- It sends the event to a Service Bus dead-letter queue automatically
- It retries with exponential backoff, up to 30 attempts or 24 hours — Correct
Correct answer
It retries with exponential backoff, up to 30 attempts or 24 hours
Explanation
Event Grid retries with an exponential backoff schedule up to the default limits of 30 attempts and 1,440 minutes.
Question 8
Two functions in the same app must scale independently because one handles HTTP and one handles heavy queue processing. What should you consider?
- Put them in separate function apps, because scaling is usually per app — Correct
- Using a single host.json setting
- Use two triggers on one function so the scale controller can track each trigger separately
- Using Durable entities
Correct answer
Put them in separate function apps, because scaling is usually per app
Explanation
Scaling is typically per app. Separate apps isolate scaling and failures. Flex Consumption also offers per-function scaling for some triggers.
Question 9
A sender may retry after a network timeout and accidentally send the same message twice. The queue must discard the duplicate. What should you configure?
- Message sessions, with a new SessionId generated by the sender for each retry attempt
- Duplicate detection on the queue and a stable MessageId set by the sender — Correct
- Auto-forwarding
- A shorter lock duration
Correct answer
Duplicate detection on the queue and a stable MessageId set by the sender
Explanation
Duplicate detection drops messages with a MessageId already seen within the detection window.
Question 10
An HTTP function returns the result of a Cosmos DB lookup for an id in the route. Which binding avoids writing lookup code?
- A queue trigger
- A Cosmos DB trigger on the container, filtered by the id in the route
- A Cosmos DB input binding that uses the route parameter as the id and partition key — Correct
- A Blob output binding
Correct answer
A Cosmos DB input binding that uses the route parameter as the id and partition key
Explanation
Input bindings read data based on trigger values, such as route parameters.