Google Cloud Professional Cloud Security Engineer — Question 12

A company has been running their application on Compute Engine. A bug in the application allowed a malicious user to repeatedly execute a script that results in the Compute Engine instance crashing. Although the bug has been fixed, you want to get notified in case this hack re-occurs.
What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because it directly addresses the need to monitor the specific script executions and alerts when they exceed a certain threshold, effectively detecting potential abuse. Option B focuses on CPU usage, which may not correlate directly with script execution incidents. Options C and D involve logging but do not provide proactive alerts for detecting the specific repeated execution of the malicious script.