PROFESSIONAL-CLOUD-DEVELOPER · Question #106
PROFESSIONAL-CLOUD-DEVELOPER Question #106: Real Exam Question with Answer & Explanation
The correct answer is A: Write a shutdown script that uses inter-process signals to notify the application process to. Compute Engine sends a preemption notice to the instance in the form of an ACPI G2 Soft Off signal. You can use a shutdown script to handle the preemption notice and complete cleanup actions before the instance stops. https://cloud.google.com/compute/docs/instances/preemptible#pr
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
Explanation
Compute Engine sends a preemption notice to the instance in the form of an ACPI G2 Soft Off signal. You can use a shutdown script to handle the preemption notice and complete cleanup actions before the instance stops. https://cloud.google.com/compute/docs/instances/preemptible#preemption
Topics
Community Discussion
No community discussion yet for this question.