Topic 1 Question 249
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 costs when new messages arrive. How should you configure the architecture?
Deploy the application on Compute Engine. Use a Pub/Sub push subscription to process new messages in the topic.
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.
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.
Deploy your code on Cloud Functions. Use a Pub/Sub trigger to handle new messages in the topic.
ユーザの投票
コメント(5)
- 正解だと思う選択肢: B
Option D is not ideal because using a Pub/Sub trigger to handle new messages in a topic is not the most efficient way to process messages in real time. In a trigger-based architecture, Cloud Functions are invoked only when new messages are available, so there is a possibility of delays in processing.
On the other hand, Option B provides a more efficient architecture for real-time processing. A Cloud Function is invoked for each message received in the Pub/Sub topic, providing immediate processing as messages arrive. This way, the application is independent from any other system and incurs costs only when new messages arrive, fulfilling the requirements stated in the question.
👍 4mrvergara2023/02/04 - 正解だと思う選択肢: B👍 2TNT872023/01/31
took my exam yesterday (01-03-2023) and this question was there
👍 2Pime132023/03/02
シャッフルモード