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?
35 comments · newest first
DI
Dick
1 year ago
Wait, can a script really crash an entire instance? That's wild!
MU
Muriel
1 year ago
D sounds complicated, but it could give detailed insights.
EM
Emerson
1 year ago
C is interesting, but isn't it overkill for just tracking a single script?
SH
Sharee
1 year ago
I disagree, B is too generic. CPU spikes don't directly indicate the script issue.
LO
Lorrine
1 year ago
Option A seems like the best choice for monitoring specific script executions.
EM
Emiko
1 year ago
Option D seems like it could work too, especially with BigQuery for analysis, but I wonder if it's overkill for just monitoring script executions.
ME
Merrilee
1 year ago
I like option C because logging every execution seems like a good way to track the script, but I'm not sure how to set up the user-defined metric.
KI
Kimbery
1 year ago
I remember practicing with Stackdriver alerts, but I feel like using CPU usage like in option B might not directly address the script execution problem.
KI
Kimbery
1 year ago
I think option A sounds familiar, but I'm not entirely sure if a Process Health condition is the right way to go for this specific issue.
CL
Claribel
1 year ago
I'm a bit confused here. Wouldn't setting the cart to use a custom URL, option A, also help resolve the problem? That seems like a viable alternative to the Redis solution.
CA
Carlton
1 year ago
Okay, let me think this through. A reduction in reserves is bad, so it must be an "unfavorable development." And an increase is good, so it's an "advance development." I think I've got it!
JO
Joaquin
1 year ago
Hmm, this looks like a tricky one. I'll need to carefully read through the options and think about the context of the command output.
AD
Adria
2 years ago
I'm no expert, but Option C seems a bit overkill. Do I really need a Stackdriver Dashboard to track a simple script execution? Option A or D sound like the simpler and more effective solutions.
RE
Regenia
1 year ago
Yeah, Option D seems like a straightforward solution to keep track of the script executions.
TA
Tayna
1 year ago
Option D could also work well. Using BigQuery to count the executions could be efficient.
IS
Isadora
1 year ago
I agree, Option A seems like the most direct way to monitor the script executions.
WH
Whitley
1 year ago
Option A sounds like a good idea. It's important to be notified if the script is executed too many times.
AM
Amber
2 years ago
Option B? Really? Monitoring CPU usage to detect a script execution issue? That's like using a sledgehammer to kill a fly. Option A or D are the way to go here.
CA
Carlee
2 years ago
Haha, I bet the malicious user is just trying to crash the instance to get a day off work. Option A is definitely the way to go to keep an eye on that script.
AL
Alayna
2 years ago
I'd go with Option D. Logging the script executions to BigQuery and setting up a scheduled query to track the number of executions seems like a more robust and scalable solution.
LE
Leanora
1 year ago
True, but logging to BigQuery gives us more flexibility in analyzing the data and setting up custom queries.
QU
Quiana
1 year ago
But wouldn't it be easier to set up an Alerting Policy in Stackdriver to get notified if the hack re-occurs?
RA
Raylene
1 year ago
Option D sounds like a good idea. Storing the script executions in BigQuery can help us track the number of executions.
MY
Myrtie
2 years ago
Option A seems like the best choice here. Monitoring the process health and getting notified when the script executes more than the desired threshold is a proactive approach to detect and address the issue.
GA
Gail
1 year ago
D) Log every execution of the script to Stackdriver Logging. Configure BigQuery as a log sink, and create a BigQuery scheduled query to count the number of executions in a specific timeframe.
LA
Larae
1 year ago
A) That sounds like a good plan. Monitoring the process health will help catch any unusual activity.
LO
Lon
1 year ago
C) Log every execution of the script to Stackdriver Logging. Create a User-defined metric in Stackdriver Logging on the logs, and create a Stackdriver Dashboard displaying the metric.
CA
Carry
1 year ago
A) Create an Alerting Policy in Stackdriver using a Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications.
SH
Sherman
1 year ago
C) Log every execution of the script to Stackdriver Logging. Create a User-defined metric in Stackdriver Logging on the logs, and create a Stackdriver Dashboard displaying the metric.
AL
Alyce
1 year ago
A) Definitely, being proactive in monitoring can help prevent any potential issues.
CA
Carissa
2 years ago
B) That sounds like a good idea. It's important to monitor the script executions to prevent crashes.
MA
Margot
2 years ago
A) Create an Alerting Policy in Stackdriver using a Process Health condition, checking that the number of executions of the script remains below the desired threshold. Enable notifications.
LI
Lilli
2 years ago
I'm not sure, but option C also sounds like a good idea. Logging every execution of the script could help us track any suspicious activity.
LA
Lavonna
2 years ago
I agree with Salina. Setting up an Alerting Policy with a Process Health condition seems like the most proactive approach.
SA
Salina
2 years ago
I think option A is the best choice. We need to monitor the script executions to prevent the hack from happening again.