Design a secure, high-throughput queuing system that triggers Google Cloud jobs which call a Python API to execute trades. Which implementation is most efficient?
Choose an answer
Tap an option to check your answer.
Correct answer: Use a Pub/Sub push subscription to trigger a Cloud Function to pass the data to the Python API..
Why this is the answer
A Pub/Sub push subscription directly triggering a Cloud Function is the most efficient and scalable solution. Pub/Sub provides high-throughput messaging, and Cloud Functions offer a serverless, event-driven execution environment that automatically scales with demand, making it ideal for triggering API calls. This eliminates the need for managing servers. Using an application on a Compute Engine instance for a push subscription introduces server management overhead and may not scale as dynamically as Cloud Functions. Writing an application with a NoSQL database queue requires custom development for queuing logic and doesn't leverage Google Cloud's managed messaging services. Cloud Composer (managed Apache Airflow) is designed for orchestrating complex workflows, not for real-time, event-driven API triggers, making it an over-engineered and less efficient choice for this specific task.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed