Your application uses Cloud Functions to process images uploaded to Cloud Storage. You've observed that as the volume of uploads increases, your Cloud Functions are timing out. What should you do to fix the issue?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Cloud Tasks to queue the function calls and process them asynchronously.
Why this is the answer
*Explanation:* The correct choice is C. Use Cloud Tasks to queue the function calls and process them asynchronously. This approach allows you to efficiently handle a large volume of uploads without causing timeouts in Cloud Functions by processing them asynchronously. Option A, increasing memory allocation, may not resolve the timeout issue. Option B, converting to a Cloud Run service, may not be the most suitable solution for this specific use case. Option D, implementing a Cloud Dataflow pipeline, is overkill for handling uploads and may introduce complexity. Option E, implementing retries in the Cloud Function, may not be effective in resolving the issue and could potentially worsen it.
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