nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #69

You have an application that accepts inputs from users. The application needs to kick off different background tasks based on these inputs. You want to allow for automated asynchronous execution of…

The correct answer is A. Cloud Tasks. Cloud Tasks is purpose-built for managing, dispatching, and asynchronously executing discrete background tasks. It supports scheduling, rate limiting, retries, and deduplication - exactly what's needed when user input triggers specific background jobs. Cloud Pub/Sub (C) is a…

Implementing Asynchronous Processes

Question

You have an application that accepts inputs from users. The application needs to kick off different background tasks based on these inputs. You want to allow for automated asynchronous execution of these tasks as soon as input is submitted by the user. Which product should you use?

Options

  • ACloud Tasks
  • BCloud Bigtable
  • CCloud Pub/Sub
  • DCloud Composer

How the community answered

(20 responses)
  • A
    70% (14)
  • B
    10% (2)
  • C
    5% (1)
  • D
    15% (3)

Explanation

Cloud Tasks is purpose-built for managing, dispatching, and asynchronously executing discrete background tasks. It supports scheduling, rate limiting, retries, and deduplication - exactly what's needed when user input triggers specific background jobs. Cloud Pub/Sub (C) is a messaging system better suited for fan-out event streaming, not targeted task dispatch. Cloud Bigtable (B) is a NoSQL database, not a task queue. Cloud Composer (D) is a managed Apache Airflow service for orchestrating complex workflows, not for lightweight per-user-input task execution.

Topics

#Asynchronous processing#Background tasks#Task queues#Application integration

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice