Which of the below listed Pub/Sub, Cloud Tasks feature is incorrect?
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: C.
Option A is incorrect.
The statement is correct.
Implicit invocation is supported by Pub/Sub.
Option B is incorrect.
The statement is correct.
Explicit invocation is supported by Cloud Tasks.
Option C is correct.
The statement is incorrect.
Cloud Tasks are an ideal choice for scenarios where the task producer requires control over remote procedure calls.
Option D is incorrect.
The statement is correct.
Pub/Sub is an ideal choice for general event data ingestion.
https://cloud.google.com/pubsub/docs/choosing-pubsub-or-cloud-tasksA. Implicit invocation is supported by Pub/Sub: This statement is true. Pub/Sub is a messaging service that decouples senders (publishers) from receivers (subscribers) by transmitting messages through a message broker. Publishers publish messages to a topic, while subscribers listen to the topic and receive messages sent to it. The messages sent via Pub/Sub are implicit invocations, where the subscriber is notified of the event only when a message is published to the topic.
B. Explicit invocation is supported by Cloud Tasks: This statement is also true. Cloud Tasks is a distributed task queue service that allows you to asynchronously execute tasks, such as processing user requests or sending emails. Unlike Pub/Sub, Cloud Tasks supports explicit invocations, where the producer explicitly specifies the task to be executed, including its payload and target URL, and the task is executed by a worker running on a specified endpoint.
C. Cloud Tasks are ideal for scenarios where task producers require no control over remote procedure calls: This statement is false. Cloud Tasks provides a high degree of control over remote procedure calls (RPCs). It is designed to support task processing in microservices-based architectures where there are multiple services involved, and each service needs to execute a specific task as part of a larger business process. Cloud Tasks allows task producers to define the task's execution parameters, including its target endpoint, the payload to be executed, and the authentication method to be used to access the endpoint.
D. Pub/Sub is an ideal choice for general event data ingestion: This statement is true. Pub/Sub is designed to handle high-volume, real-time event ingestion and processing. It provides reliable message delivery, automatic scaling, and low latency, making it an ideal choice for handling a large volume of event data, such as data from IoT devices, application logs, or system metrics.
In summary, the correct answer is C. Cloud Tasks are not ideal for scenarios where task producers require no control over remote procedure calls. Instead, Cloud Tasks provides a high degree of control over RPCs, allowing task producers to define the task's execution parameters. The other statements (A, B, and D) are all true.