This is a dedicated watch page for a single video.
Scenario: You have a Compute Engine managed instance group that dynamically adds and removes Compute Engine instances based on the application load. Each instance runs a shutdown script that removes REDIS database entries associated with it. However, many database entries are not being removed, and you suspect the shutdown script is the issue. You create a Cloud Function to remove the database entries. Now, you need to ensure that the commands in the shutdown script are executed reliably whenever an instance shuts down. Question: What should you do to ensure the commands in the shutdown script are executed reliably when an instance shuts down?