Google Cloud Professional Cloud Developer — Question 312
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. Add the seat reservation to a Cloud Tasks queue, which triggers Workflows to process the seat reservation.
- B. Publish the seat reservation to a Pub/Sub topic. Configure the backend service to use Eventarc to process the seat reservation on GKE.
- C. Upload the seat reservation to a Cloud Storage bucket, which triggers an event to a Cloud Run service that processes the orders.
- D. Submit the seat reservation in an HTTP POST request to an Application Load Balancer. Configure the Application Load Balancer to distribute the request to a Compute Engine managed instance group that processes the reservation.
Correct answer: D
Explanation
Submitting the seat reservation as an HTTP POST request to an Application Load Balancer allows for immediate processing and confirmation of the reservation, which is crucial for customer satisfaction. Options A, B, and C involve additional steps and delays in processing, which do not provide instant confirmation to the customer.