Lyra
Learn
AI Learning Platform
π Midnight
π Comfort
π₯ Ember
π Paper
β Contrast
Exams
Sign in to track progress
β Back to the lesson
Module 5 Β· Quiz
Queues, Webhooks, and Background Work
1. What is the main advantage of using a queue for processing tasks in a web application?
It allows for immediate feedback to the user
It can handle burst loads and ensure task durability
It is easier to implement than webhooks
It eliminates the need for database transactions
2. What is a key feature of webhooks compared to polling?
Webhooks are consumer-controlled.
Webhooks allow immediate notification of events.
Polling conserves server resources.
Webhooks do not require error handling.
3. In the outbox pattern, what happens if the message publish fails after a database transaction commit?
The message is lost and needs to be recreated.
The database transaction rolls back.
The message is saved in an Outbox table for later processing.
There is no impact as messages are automatically retried.
4. Which of the following is NOT a characteristic of `BackgroundService` in ASP.NET Core?
It allows concurrent execution of background tasks.
It has a long-running ExecuteAsync loop.
It runs in a singleton lifetime scope.
It automatically retries failed tasks.
Submit answers
Continue: Integrating a Third-Party Service β
Review this lesson
Retake quiz