Google Cloud Professional Cloud Developer — Question 347
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?
Answer options
- A. Upload the seat reservation to a Cloud Storage bucket, which triggers an event to the backend service that processes the seat reservation.
- B. Submit the seat reservation in an HTTP POST request to an Application Load Balancer. Configure the Application Load Balancer to distribute the request to the backend service that processes the seat reservation.
- C. Add the seat reservation to a Cloud Tasks queue, which triggers Workflows to process the seat reservation.
- D. Publish the seat reservation to a Pub/Sub topic. Configure the backend service to subscribe to the topic to process the seat reservation.
Correct answer: B
Explanation
The correct answer is B because submitting the reservation as an HTTP POST request to an Application Load Balancer allows for immediate processing and confirmation. Options A, C, and D introduce unnecessary delays by relying on storage, queues, or event-driven architectures, which may not provide instant feedback to the customers.