A developer must write anApex method that will be called from a lightning component. The method may delete an Account stored in the accountRec variable.
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletion?
Suggested Answer: D
Get Premium DEX-450 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
MA
Malinda
11 months ago
What’s up with option C? Sounds weird to me.
AN
Anika
11 months ago
Definitely A, it’s the most straightforward.
RI
Ria
12 months ago
Wait, is there even a method called isDeletable()?
MI
Mitsue
12 months ago
I disagree, B seems more appropriate.
LI
Linn
12 months ago
I think option A is the right choice.
PH
Phil
1 year ago
I’m a bit confused about the options. I thought we always used the specific record variable for checking deletability, so maybe option A is the best choice?
CA
Candra
1 year ago
I feel like I saw something about using Account.isDeletable() in a study guide, but I can't recall if that's the correct context for this question.
JA
Jaime
1 year ago
I remember practicing a similar question where we had to check permissions for deleting records. I think option A sounds right, but I could be wrong.
AD
Adell
1 year ago
I think the method should check if the accountRec is deletable, but I'm not sure if it's accountRec.isDeletable() or something else.
LA
Larue
1 year ago
I'm a bit confused by this question. I'm not sure I fully understand the integration configuration details. I'll need to re-read the question and options a few times to try and figure this out.
AL
Allene
1 year ago
I'm not totally sure about this one. Might need to review the documentation again.
MI
Micah
1 year ago
Hmm, this is a tricky one. The examples mention things like service activity instances and rules, so I'm guessing it's related to some kind of service management or orchestration. I'll have to weigh the options carefully.