PROFESSIONAL-CLOUD-DEVELOPER · Question #335
You are a developer that works for a local concert venue. Customers use your company's website to purchase tickets for events. You need to provide customers with immediate confirmation when a selected
The correct answer is D. Submit the seat reservation in an HTTP POST request to an Application Load Balancer.. Immediate confirmation requires a synchronous request-response pattern. Submitting the seat reservation as an HTTP POST to an Application Load Balancer processes the request end-to-end and returns a success or failure response to the client in the same HTTP transaction-the custom
Question
You are a developer that works for a local concert venue. Customers use your company’s website to purchase tickets for events. You need to provide customers with immediate confirmation when a selected seat has been reserved. How should you design the ticket ordering process?
Options
- AAdd the seat reservation to a Cloud Tasks queue, which triggers Workflows to process the seat
- BPublish the seat reservation to a Pub/Sub topic. Configure the backend service to use Eventarc to
- CUpload the seat reservation to a Cloud Storage bucket, which triggers an event to a Cloud Run
- DSubmit the seat reservation in an HTTP POST request to an Application Load Balancer.
How the community answered
(50 responses)- A2% (1)
- B10% (5)
- C4% (2)
- D84% (42)
Explanation
Immediate confirmation requires a synchronous request-response pattern. Submitting the seat reservation as an HTTP POST to an Application Load Balancer processes the request end-to-end and returns a success or failure response to the client in the same HTTP transaction-the customer sees confirmation instantly. All other options (A: Cloud Tasks, B: Pub/Sub, C: Cloud Storage event) introduce asynchronous messaging, meaning the client receives an acknowledgment that the message was queued-not that the seat was actually reserved. Asynchronous patterns are appropriate for background work, not for real-time seat reservation confirmation where a customer needs to know immediately if they got the seat.
Topics
Community Discussion
No community discussion yet for this question.