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

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.