Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?

Posted by: Pdfprep Category: PDI Tags: , ,

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?
A . Schema.sObjectType.Account.isDeletable()
B . Account.isDeletable()
C . accountRec.isDeletable()
D . accountRec.sObjectType.isDeletable()

Answer: A