Audio files are uploaded to a Cloud Storage bucket. Automate authenticated Speech-to-Text API calls for each file on arrival using a fully managed serverless approach. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a Cloud Function triggered by Cloud Storage events to submit the file URI to the Speech-to-Text API..
Why this is the answer
The correct answer is to create a Cloud Function triggered by Cloud Storage events. Cloud Functions are a fully managed, serverless compute platform that can respond to events, including new object uploads to Cloud Storage. This approach automatically triggers the function when an audio file arrives, and the function can then directly call the Speech-to-Text API with the file's URI. Using an App Engine Standard service is less ideal because while it can be triggered by Cloud Storage events, Cloud Functions are specifically designed for event-driven, lightweight tasks like this and are generally more cost-effective and simpler to manage for such use cases. Running a Kubernetes job or a Python cron job on a Compute Engine VM would involve managing servers and polling mechanisms, which are not fully managed or serverless, contradicting the requirement for a fully managed serverless approach.
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