Valid Professional-Cloud-Security-Engineer Dumps shared by EduDump.com for Helping Passing Professional-Cloud-Security-Engineer Exam! EduDump.com now offer the newest Professional-Cloud-Security-Engineer exam dumps, the EduDump.com Professional-Cloud-Security-Engineer exam questions have been updated and answers have been corrected get the newest EduDump.com Professional-Cloud-Security-Engineer dumps with Test Engine here:
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?
Correct Answer: A
To monitor and get notified in case the script causing the Compute Engine instance to crash is executed again, you should create an Alerting Policy in Stackdriver (now known as Google Cloud Monitoring). The Process Health condition can be set to monitor the number of executions of the script and ensure it remains below the desired threshold. By enabling notifications, you will be alerted if this threshold is exceeded. Step-by-Step: Log Script Executions: Ensure that the script execution is logged. Create a User-Defined Metric: Go to Google Cloud Console > Logging > Logs-based Metrics, and create a new user-defined metric that counts the number of times the script executes. Set Up Alerting Policy: Navigate to Google Cloud Console > Monitoring > Alerting. Click on "Create Policy". Add a condition and select "Logs-based Metric". Configure the condition to trigger when the number of script executions exceeds the threshold. Configure Notifications: Add notification channels (email, SMS, etc.) to the alerting policy. Save and Test: Save the policy and test to ensure notifications are received when the script is executed beyond the threshold. Google Cloud Logging User-defined Metrics Google Cloud Monitoring Alerting Policies