You are running a transaction that creates an item and updates it twice. If the transaction is
committed successfully, how many AfterSaveEvent items will the ServiceLayer create?
Suggested Answer: A
Get Premium P_C4H34_2411 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
28 comments · newest first
RO
Rodrigo
11 months ago
Nope, definitely 1. That's how it works!
JA
Jackie
12 months ago
I thought it would be more than one, but I guess not!
LE
Letha
12 months ago
Wait, are we sure about that? What if updates count too?
PA
Paris
1 year ago
Totally agree, it's just one event!
LY
Lynelle
1 year ago
It's 1 AfterSaveEvent for the initial creation.
VO
Von
1 year ago
I feel like it’s definitely more than 1, but I’m torn between 2 and 3. I need to think this through more.
DO
Dorthy
1 year ago
I’m a bit confused about whether the creation counts as one event or not. Could it be just 2?
ST
Stefania
1 year ago
I remember practicing a similar question where it was about updates, and I think it was 2 events for the updates plus 1 for the creation.
MI
Mitsue
1 year ago
I think the AfterSaveEvent is triggered for each change, so maybe it’s 3? But I’m not entirely sure.
VE
Vesta
1 year ago
I think the key here is that the transaction is committed successfully. That means all three actions (create, update, update) will be executed, so the answer must be 3 AfterSaveEvent items.
HE
Herminia
1 year ago
Okay, let me break this down step-by-step. The transaction creates an item, then updates it twice. So each of those three actions should trigger an AfterSaveEvent, right?
MA
Mammie
1 year ago
Hmm, I'm a bit confused on this one. I'll need to think it through carefully to make sure I understand the question.
YO
Yolande
1 year ago
I'm pretty sure the answer is 3 AfterSaveEvent items, since the transaction creates an item and updates it twice.
CE
Cecil
2 years ago
This question is a real head-scratcher! I'm going to have to consult my crystal ball to figure this one out. Maybe I'll just guess and hope for the best.
CA
Carma
2 years ago
D is the correct answer. The transaction creates 1 item and updates it twice, so there will be 2 AfterSaveEvent items created.
MI
Mickie
2 years ago
Hmm, I'm not sure about this one. If the transaction is committed successfully, wouldn't that mean only 1 AfterSaveEvent item is created? I'll have to think about this one more.
DE
Delisa
2 years ago
No, I believe it will only create 1 AfterSaveEvent item.
LE
Leslee
2 years ago
No, I believe it will only create 1 AfterSaveEvent item.
TO
Tomas
2 years ago
I think it will create 2 AfterSaveEvent items.
TW
Twanna
2 years ago
I think it will create 2 AfterSaveEvent items.
TO
Tonette
2 years ago
I think the answer is C. The transaction creates an item and updates it twice, so the ServiceLayer should create 3 AfterSaveEvent items.
AR
Arlene
2 years ago
I agree with you, it should be C.
RE
Rebecka
2 years ago
I'm pretty sure it's A.
BE
Bethanie
2 years ago
No, I believe the answer is D.
OR
Orville
2 years ago
I think the answer is C.
WI
Willodean
2 years ago
I'm not sure, but I think the answer is A) 1 because the transaction only creates the item once and updates it twice.
CH
Chantell
2 years ago
I disagree, I believe the answer is D) 2 because the transaction only creates the item once.
TH
Theola
2 years ago
I think the answer is C) 3 because the transaction updates the item twice.