Which of the following can be used as a countermeasure against the SQL injection attack?
Each correct answer represents a complete solution. Choose two.
Suggested Answer: C
Get Premium GCIH Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
37 comments · newest first
LE
Lenora
11 months ago
I disagree, I think session_regenerate_id() might help too.
GI
Gianna
11 months ago
Wait, is mysql_real_escape_string() really still relevant?
NY
Nydia
11 months ago
A and D are the way to go! No doubt about it.
AL
Alayna
11 months ago
I thought C was a good option too, but I guess not?
CA
Carry
11 months ago
Definitely A and D! Those are solid choices.
FA
Fanny
11 months ago
I'm leaning towards prepared statements too, but I wonder if session_regenerate_id() could somehow be relevant in a broader security context.
MI
Michell
12 months ago
I feel like mysql_escape_string() was mentioned in a similar question, but I can't recall if it's still recommended.
ER
Erasmo
12 months ago
I remember practicing with prepared statements in class; they seem like a solid choice for preventing SQL injection.
PE
Pearline
1 year ago
I think mysql_real_escape_string() is definitely one of the options, but I'm not sure about the other one.
DE
Dean
1 year ago
Ugh, I'm not sure about this one. I know SQL injection is a big security risk, but I'm not totally confident in my knowledge of the countermeasures. I'll have to review my notes and try to eliminate the wrong answers.
WI
Winfred
1 year ago
Easy peasy! The answer is definitely A and D - mysql_real_escape_string() and Prepared statements. Those are the classic ways to protect against SQL injection. I've got this one in the bag.
RO
Royal
1 year ago
Okay, let me think about this... I know prepared statements are a good way to avoid SQL injection, but I'm not sure about the other options. I'll have to think this through carefully.
TU
Tuyet
1 year ago
Hmm, this looks like a tricky one. I think I'll go with option A and D - mysql_real_escape_string() and Prepared statements. Those seem like the most reliable ways to prevent SQL injection attacks.
DE
Denae
1 year ago
I'm feeling confident about this one. Based on my understanding, the auditee, or the organization being audited, is responsible for preparing the corrective action plan to address any nonconformities or areas for improvement identified during the audit process.
BR
Brunilda
1 year ago
Okay, I've got it. B and E are the correct answers since they allow the team to self-manage and organize in a way that supports the scrum values.
TA
Tawny
1 year ago
I'm feeling a bit 'session_regenerate_id()' after that question. But in all seriousness, D is the way to go. Prepared statements are the real deal when it comes to SQL injection. The other options might help, but they're like trying to stop a freight train with a toothpick.
SE
Selma
1 year ago
Yeah, they're like the ultimate defense against SQL injection attacks.
TA
Talia
1 year ago
Prepared statements are definitely the way to go.
CA
Cassandra
1 year ago
D) Prepared statement
BR
Broderick
1 year ago
A) mysql_real_escape_string()
HE
Herminia
1 year ago
I'm just going to go ahead and choose options A and C. Why? Because I'm feeling a little 'mysql_real_escape_string()' today, if you know what I mean. But seriously, D is the way to go - it's the 'Prepared statement' of all countermeasures.
LO
Lorenza
1 year ago
User 3: Don't forget about option D, the 'Prepared statement' is a strong countermeasure as well.
AL
Aliza
1 year ago
User 2: I agree, 'mysql_real_escape_string()' and 'mysql_escape_string()' can help prevent SQL injection attacks.
CA
Carmen
1 year ago
User 1: I think options A and C are good choices.
AN
Annabelle
1 year ago
Well, look at that! My grandma could have told you that prepared statements are the way to go. Anything else is just putting a band-aid on a bullet wound. Although I do like the sound of 'session_regenerate_id()' - maybe it can make my password look extra secure.
RO
Rory
1 year ago
Hmm, I'm torn between options A and D. Escaping strings is important, but prepared statements are the real powerhouse against SQL injection. Gotta cover all our bases, right?
SH
Sherron
1 year ago
It's always better to be safe than sorry, so using both options A and D would be a good idea.
RU
Rusty
1 year ago
I think both options A and D are important to use as countermeasures.
NO
Nohemi
1 year ago
I agree, using prepared statements is crucial to prevent SQL injection attacks.
ER
Ernie
1 year ago
I'm pretty sure option D is the way to go - Prepared statements are the gold standard for preventing SQL injection. The other options might help in other ways, but they don't directly address the injection vulnerability.
NI
Nichelle
1 year ago
Session_regenerate_id() is not a direct solution for SQL injection, so I would go with prepared statements.
RI
Rikki
1 year ago
I'm not sure about mysql_escape_string(), but I know it's important to use prepared statements.
GE
Geoffrey
1 year ago
I think mysql_real_escape_string() can also be used as a countermeasure.
MA
Martina
1 year ago
I agree, prepared statements are definitely the best defense against SQL injection.
BE
Becky
2 years ago
I'm not sure about C) mysql_escape_string(). I think it's not as secure as the other options mentioned.
GR
Grover
2 years ago
I agree with Anika. Those two options are commonly recommended to prevent SQL injection attacks.
AN
Anika
2 years ago
I think A) mysql_real_escape_string() and D) Prepared statement can be used as countermeasures.