Topic 1 Question 94
You need to redesign the ingestion of audit events from your authentication service to allow it to handle a large increase in traffic. Currently, the audit service and the authentication system run in the same Compute Engine virtual machine. You plan to use the following Google Cloud tools in the new architecture: ✑ Multiple Compute Engine machines, each running an instance of the authentication service ✑ Multiple Compute Engine machines, each running an instance of the audit service ✑ Pub/Sub to send the events from the authentication services. How should you set up the topics and subscriptions to ensure that the system can handle a large volume of messages and can scale efficiently?
Create one Pub/Sub topic. Create one pull subscription to allow the audit services to share the messages.
Create one Pub/Sub topic. Create one pull subscription per audit service instance to allow the services to share the messages.
Create one Pub/Sub topic. Create one push subscription with the endpoint pointing to a load balancer in front of the audit services.
Create one Pub/Sub topic per authentication service. Create one pull subscription per topic to be used by one audit service.
Create one Pub/Sub topic per authentication service. Create one push subscription per topic, with the endpoint pointing to one audit service.
ユーザの投票
コメント(9)
https://cloud.google.com/pubsub/docs/subscriber "Multiple subscribers can make pull calls to the same "shared" subscription. Each subscriber will receive a subset of the messages." Response is A. With C and D you can't scale efficiently, because you have to create a topic for each new instance of the authentication service.
👍 11gfr8922022/01/25- 正解だと思う選択肢: A
A is correct. This is the most flexible way to scale, allowing the authentication and audit services to be sized independently according to load. B is incorrect. This will cause messages to be duplicated, one copy per subscription. C is incorrect. This will allow the system to scale, but push subscriptions are less suited to handle large volumes of messages. D is incorrect. This will allow the system to scale, however each audit service will listen to all subscriptions. E. is incorrect. This will allow the system to scale, however it will require each audit service to listen to all subscriptions. Also push subscriptions are less suited to handle large volumes of messages.
👍 3telp2023/01/13 Agree with D
👍 2ParagSanyashiv2022/01/08
シャッフルモード