
Explanation:
The correct command is gcloud functions deploy. This command is specifically designed for deploying functions. On the other hand, gcloud pubsub topics publish is used for publishing messages to a topic, and the other options listed are not valid commands for deploying functions in the context of Cloud Pub/Sub. For more details, refer to the official documentation: https://cloud.google.com/sdk/gcloud/reference/functions/deploy.
Ultimate access to all questions.
Imagine you've developed a function designed to execute every time a message is sent to a Cloud Pub/Sub topic. Which command would you employ to deploy this function?
A
gcloud pubsub topics pull
B
gcloud functions deploy
C
gcloud pubsub topics publish
D
gcloud pubsub subscription publish
No comments yet.