Select two SQL statements which abort a transaction.
Suggested Answer: B, D
Get Premium PGCES-02 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
26 comments · newest first
FL
Fletcher
10 months ago
ABORT is definitely a valid option here!
BE
Beatriz
11 months ago
Wait, is TRUNCATE really an abort? I thought it just deletes data.
LU
Luisa
11 months ago
No way, END is just for ending sessions, not aborting!
LE
Leonida
11 months ago
I think END does too, right?
LI
Lisbeth
11 months ago
ROLLBACK definitely aborts a transaction.
EM
Emile
12 months ago
I thought END was used to finalize a transaction, so I don't think it would abort anything.
RI
Ricarda
12 months ago
I feel like TRUNCATE might be related to transactions, but I can't recall if it actually aborts them or just removes data.
GO
Golda
12 months ago
I remember practicing with similar questions, and I think ABORT is another one that can be used to cancel a transaction.
JA
Jacquelyne
1 year ago
I think ROLLBACK definitely aborts a transaction, but I'm not sure about the other one.
ME
Melita
1 year ago
Easy peasy! ROLLBACK and ABORT are the two that will abort a transaction. The rest are either not transaction-related or don't actually stop the transaction.
FR
Frank
1 year ago
I'm a bit confused on this one. I know ROLLBACK is used to undo a transaction, but I'm not sure about some of these other options. I'll have to review my notes on transaction management in SQL.
TO
Torie
1 year ago
Okay, I've got this. ROLLBACK is definitely one that aborts a transaction, and I'm pretty sure END does too. Let me double-check the others just to be sure.
SA
Sanjuana
1 year ago
Hmm, this looks like a tricky one. I'll need to think carefully about the differences between these SQL statements and which ones actually abort a transaction.
AN
Angella
1 year ago
This is straightforward - ROLLBACK and ABORT are the two SQL statements that will abort a transaction. The others are either not related to transactions or don't actually abort them.
BE
Bernadine
1 year ago
Hmm, I'm not totally sure about this one. I know athletes foot is a skin condition, but I'm not confident which drug would be the best treatment.
SH
Sheridan
1 year ago
Alright, time to put on my thinking cap. I need to figure out which disk has the right specifications and configuration for an Azure Virtual Desktop session host.
MI
Mitsue
2 years ago
I don't think END aborts a transaction, Janey. I beliMitsue it just marks the end of a transaction without rolling it back.
JA
Janey
2 years ago
I'm not sure about this one. Isn't END also used to finish a transaction?
MA
Margart
2 years ago
I would also go with B) ROLLBACK. It makes sense to rollback a transaction if something goes wrong.
RI
Rikki
2 years ago
I agree with you, Tomas. ROLLBACK is commonly used to undo changes in a transaction.
TO
Tomas
2 years ago
I think the answer is B) ROLLBACK because it aborts a transaction.
HU
Hubert
2 years ago
Yeah, TRUNCATE is for deleting data, not for aborting transactions.
RH
Rhea
2 years ago
I don't think TRUNCATE aborts a transaction. It just removes all rows from a table quickly.
BL
Blondell
2 years ago
I'm not so sure about that. I think TRUNCATE can also abort a transaction.
HU
Hubert
2 years ago
I agree with Rhea. ROLLBACK and ABORT are used to abort a transaction in SQL.
RH
Rhea
2 years ago
I think the correct answers are B) ROLLBACK and D) ABORT.