Complete the code to create a Pub/Sub topic named 'my-topic'.
gcloud pubsub topics create [1]The command gcloud pubsub topics create my-topic creates a Pub/Sub topic named 'my-topic'.
Complete the code to create a Cloud Tasks queue named 'my-queue'.
gcloud tasks queues create [1]The command gcloud tasks queues create my-queue creates a Cloud Tasks queue named 'my-queue'.
Fix the error in the code to publish a message to a Pub/Sub topic.
gcloud pubsub topics publish my-topic --message=[1]The message must be enclosed in double quotes to be correctly parsed by the command line.
Fill both blanks to define a Cloud Tasks task with an HTTP request and schedule time.
gcloud tasks create-http-task --queue=[1] --url=[2] --schedule-time=2024-06-01T12:00:00Z
The task is created in the queue 'my-queue' and sends an HTTP request to the URL 'https://example.com/taskhandler'.
Fill all three blanks to create a Pub/Sub subscription with a push endpoint and ack deadline.
gcloud pubsub subscriptions create [1] --topic=[2] --push-endpoint=[3] --ack-deadline=20
This command creates a subscription named 'my-subscription' to the topic 'my-topic' with a push endpoint URL and an acknowledgment deadline of 20 seconds.