nerdexam
Google

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…

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…

Designing and Implementing Scalable and Resilient Applications

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)
  • A
    2% (1)
  • B
    10% (5)
  • C
    4% (2)
  • D
    84% (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

#Application Architecture#Synchronous Processing#Load Balancing#Web APIs

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice