Topic 1 Question 89
You are designing an application that will subscribe to and receive messages from a single Pub/Sub topic and insert corresponding rows into a database. Your application runs on Linux and leverages preemptible virtual machines to reduce costs. You need to create a shutdown script that will initiate a graceful shutdown. What should you do?
Write a shutdown script that uses inter-process signals to notify the application process to disconnect from the database.
Write a shutdown script that broadcasts a message to all signed-in users that the Compute Engine instance is going down and instructs them to save current work and sign out.
Write a shutdown script that writes a file in a location that is being polled by the application once every five minutes. After the file is read, the application disconnects from the database.
Write a shutdown script that publishes a message to the Pub/Sub topic announcing that a shutdown is in progress. After the application reads the message, it disconnects from the database.
解説
ユーザの投票
コメント(9)
- 正解だと思う選択肢: A
IMO it should be A
👍 7GCPCloudArchitectUser2022/02/25 I vote A
👍 5JonathanSJ2022/01/01According to me , it should be D
👍 2ParagSanyashiv2022/01/08
シャッフルモード