ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 247 - Professional Cloud Developer discussion

Report
Export

You are developing an event-driven application. You have created a topic to receive messages sent to Pub/Sub. You want those messages to be processed in real time. You need the application to be independent from any other system and only incur compute costs when new messages arrive. You want to configure the simplest and most efficient architecture What should you do?

A.
Deploy your code on Cloud Functions. Use a Pub/Sub trigger to invoke the Cloud Function. Use the Pub/Sub API to create a pull subscription to the Pub/Sub topic and read messages from it.
Answers
A.
Deploy your code on Cloud Functions. Use a Pub/Sub trigger to invoke the Cloud Function. Use the Pub/Sub API to create a pull subscription to the Pub/Sub topic and read messages from it.
B.
Deploy your code on Cloud Functions. Use a Pub/Sub trigger to handle new messages in the topic.
Answers
B.
Deploy your code on Cloud Functions. Use a Pub/Sub trigger to handle new messages in the topic.
C.
Deploy the application on Google Kubernetes Engine. Use the Pub/Sub API to create a pull subscription to the Pub/Sub topic and read messages from it
Answers
C.
Deploy the application on Google Kubernetes Engine. Use the Pub/Sub API to create a pull subscription to the Pub/Sub topic and read messages from it
D.
Deploy the application on Compute Engine. Use a Pub/Sub push subscription to process new messages in the topic.
Answers
D.
Deploy the application on Compute Engine. Use a Pub/Sub push subscription to process new messages in the topic.
Suggested answer: B

Explanation:

https://cloud.google.com/functions/docs/calling/pubsub

asked 18/09/2024
Saphronia Yancey
36 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first