Google Cloud Associate Cloud Engineer — Question 241

You need to extract text from audio files by using the Speech-to-Text API. The audio files are pushed to a Cloud Storage bucket. You need to implement a fully managed, serverless compute solution that requires authentication and aligns with Google-recommended practices. You want to automate the call to the API by submitting each file to the API as the audio file arrives in the bucket. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because Cloud Functions provide a serverless solution that is triggered by Cloud Storage events, which perfectly fits the requirement for automation as files are uploaded. Option A is incorrect as App Engine is not fully serverless in the same way as Cloud Functions. Options B and C involve regular scanning and are not event-driven, making them less efficient and not in line with the serverless requirement.