Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 21
List of questions
Related questions
An Apex trigger and Apex class increment a counter, Edit_Count_c, any time that the Case is changed.
A new process on the case object was just created in production for when a Case is created or updated< since the process was created, they are reports that the Count is being incremented by more than one on Case edit.
Which change in the Apex code will fix the problem?
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
Consider the controller code above that is called from a Lightning component and returns data wrapped in a class.
The developer verified that the Queries return a single record each and there is error handing in the Lightning component, but the component is not getting anything back when calling the controller getSomeData().
What is wrong?
A company uses Opportunism to track sales to their customers and their org has millions of Opportunities. They want to begging to track revenue over time through a related Revenue object.
As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic.
They estimate that roughly 100,000 Opportunities will have revenue records and populated.
What is the optimal way to automate this?
Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?
A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?
Universal Containers has a Visualforce page that displays a table every Container_ c being rented by a gives Account.. failing because some of the customers rent over 100,000 containers.
What should a developer change about the Visualforce page to help with the page load errors?
After a Platform Event is defined in a Salesforce org, events can be published via which two mechanisms? Choose 2 answers
A developer creates an application event that has triggered an infinite loop. What may have caused this problem?
A developer notices the execution of all the test methods in a class takes a long time to run, due to the initial setup of ail the test data that is needed to perform the tests.
What should the developer do to speed up test execution?
A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is dosed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.
What might be causing the failed assertion?
Question