“Here are web server logs showing requests like ?id=1' OR '1'='1 and UNION SELECT from one IP. How do you determine if the attack succeeded?”
Strong answer sketch
I would group the requests by source IP and look at status codes and response sizes, because a 200 with an unusually large response to a UNION SELECT payload suggests data came back, while consistent 500s or blocked responses suggest it failed. I would check WAF logs for blocks and the database logs for errors or unusual queries at the same timestamps. I would also look for follow-on requests such as access to new admin pages or uploaded files. If success is likely, I would escalate, recommend taking the vulnerable endpoint offline or blocking it, and assess what data the table held.