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
9 days 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
11 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
11 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
18 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77