Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam DEX-450 Topic 4 Question 109 Discussion

Actual exam question for Salesforce's DEX-450 exam
Question #: 109
Topic #: 4
[All DEX-450 Questions]

A developer must write an Apex 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 deletions?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Sang
12 hours ago
I'm not sure, but I think option A) accountRec, isDeletable() might also work. It directly checks if the Account in accountRec can be deleted.
upvoted 0 times
...
Joaquin
2 days ago
Option B looks the most complete and accurate to me. We need to check the permissions at the schema level, not just the instance level.
upvoted 0 times
...
Wilbert
3 days ago
I agree with Kimberlie. Using Schema,sObjectType,Account, isDeletable() ensures that only users with delete permissions can delete the Account.
upvoted 0 times
...
Kimberlie
9 days ago
I think the correct method is B) Schema,sObjectType,Account, isDeletable(). It checks if the current user has permission to delete the Account.
upvoted 0 times
...

Save Cancel