PDI試験無料問題集「Salesforce Platform Developer I (PDI) 認定」
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?
Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?
正解:D
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
The orderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet:
Public class without sharing orderHelper {// code implementation
}
A developer needs to create a constant named delivery_multiplier with a value of 4.15. The value of the constant should not change at any time in the code.
How should the developer declare the delivery multiplier constant to meet the business objectives?
Public class without sharing orderHelper {// code implementation
}
A developer needs to create a constant named delivery_multiplier with a value of 4.15. The value of the constant should not change at any time in the code.
How should the developer declare the delivery multiplier constant to meet the business objectives?
正解:B
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
A developer created this Apex trigger that calls MyClass.mystaticMethod:
The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in
81% overall code coverage What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?
The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, resulting in
81% overall code coverage What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exists?
正解:C
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)
A custom picklist field, Pool Preference , exists on a custom object. The picklist contains the following options: 'Vegan', 'Kosher', 'No Preference'. The developer must ensure a value is populated every time a record is created or updated.
What is the optimal way to ensure a value is selected every time a record is saved?
What is the optimal way to ensure a value is selected every time a record is saved?
正解:A
解答を投票する
解説: (GoShiken メンバーにのみ表示されます)

