Want to pass your Salesforce Certified Platform Developer II (Plat-Dev-301) PDII exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
A custom field Exec_Count_c of type Number is created on an Account object. An account record with value of "1" for a: Exec_Count_c is saved. A workflow field update is defined on the Exec_Count_c field, to increment its value every time
an account record is created or updated. The following trigger is defined on the account:
trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update){ for (Account accountInstance: Trigger.New){ if (Trigger . isBefore) { accountInstance Exec_Count_c += 1; } System. debug
(accountInstance.Exec_Count_c); } }
A. 1,2,3,3
B. 1,2,3,4
C. 2, 2, 4, 4
D. 2,2,3,3
Within the System.Limit class, what would you call to get the total limit you can call in a single transaction?
A. get[typeOfLimit] --> (Ex. getDMLStatements())
B. getLimit [typeOfLirr.it] --> (Ex. getLin~.it DY.LSt aterr.ents () )
A developer wrote a test class that successfully asserts a trigger on Account. It fires and updates data correctly in a sandbox environment. A salesforce admin with a custom profile attempts to deploy this trigger via a change set into the
production environment, but the test class fails with an insufficient privileges error.
What should a developer do to fix the problem?
A. Add system.runAd ( ) to the best class to execute the trigger as a user with the correct object permissions.
B. Configure the production environment to enable `'Run All tests as Admin User.''
C. Verify that Test, statement ( ) is not inside a For loop in the test class.
D. Add seeAllData=true to the test class to work within the sharing model for the production environment.