PROFESSIONAL-CLOUD-DEVELOPER · Question #106
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 pre
Sign in or unlock PROFESSIONAL-CLOUD-DEVELOPER to reveal the answer and full explanation for question #106. The question stem and answer options stay visible for context.
Question
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?
Options
- AWrite a shutdown script that uses inter-process signals to notify the application process to
- BWrite a shutdown script that broadcasts a message to all signed-in users that the Compute
- CWrite a shutdown script that writes a file in a location that is being polled by the application once
- DWrite a shutdown script that publishes a message to the Pub/Sub topic announcing that a
Unlock PROFESSIONAL-CLOUD-DEVELOPER to see the answer
You've previewed enough free PROFESSIONAL-CLOUD-DEVELOPER questions. Unlock PROFESSIONAL-CLOUD-DEVELOPER for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.