200-901 Question 40
Select 3A development team is creating a real-time notification system for their application. They decide to use webhooks to notify external systems when specific events occur, such as a new user registration or a completed transaction. Which of the following are common usage patterns of webhooks in this context?
- A
Sending HTTP POST requests to predefined callback URLs when an event occurs.
- B
Polling external systems periodically to check for new events.
- C
Delivering real-time updates to external systems without requiring client-initiated requests.
- D
Providing a way for external systems to query the application for event details on demand.
- E
Triggering automated workflows or actions in response to specific application events.
Show answer and explanation
Correct answers: A, C, E
Explanation
Webhooks are designed to enable real-time communication between systems by sending event notifications to external URLs, usually via HTTP POST requests. They are commonly used to trigger workflows or provide updates without requiring continuous polling or client-initiated queries. This makes them efficient and widely adopted in event-driven architectures.
- A. Correct.
Correct: Webhooks typically use HTTP POST requests to send data to a predefined callback URL when an event occurs, making it a key usage pattern.
- B. Incorrect.
Incorrect: Polling involves repeatedly querying an external system for updates, which is not a webhook usage pattern. Webhooks push updates instead of requiring periodic checks.
- C. Correct.
Correct: A core feature of webhooks is delivering real-time updates to external systems, eliminating the need for client-initiated requests.
- D. Incorrect.
Incorrect: Webhooks do not provide a querying mechanism; they are designed to push event data to external systems as events occur.
- E. Correct.
Correct: Webhooks are commonly used to trigger automated workflows or actions when specific events happen, such as notifying a third-party service of a completed transaction.