Google Cloud Professional Data Engineer — Question 289
An online brokerage company requires a high volume trade processing architecture. You need to create a secure queuing system that triggers jobs. The jobs will run in Google Cloud and call the company's Python API to execute trades. You need to efficiently implement a solution. What should you do?
Answer options
- A. Use a Pub/Sub push subscription to trigger a Cloud Function to pass the data to the Python API.
- B. Write an application hosted on a Compute Engine instance that makes a push subscription to the Pub/Sub topic.
- C. Write an application that makes a queue in a NoSQL database.
- D. Use Cloud Composer to subscribe to a Pub/Sub topic and call the Python API.
Correct answer: A
Explanation
Option A is correct because using a Pub/Sub push subscription to trigger a Cloud Function allows for an efficient and scalable way to process trade requests securely. Option B is less efficient as it involves managing a Compute Engine instance, which adds overhead. Option C does not utilize a queuing system effectively and is not suited for high-volume trade processing. Option D, while useful, introduces unnecessary complexity by using Cloud Composer when a simpler solution is available.