A developer created this Apex trigger that calls MyClass.myStaticMethod:
trigger myTrigger on Contact(before insert)
{ MyClass.myStaticMethod(trigger.new, trigger.oldMap); }
The developer creates a test class with a test method that calls MyClass.myStaticMethod, 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?
A. The deployment fails because the Apex trigger has no code coverage.
B. The deployment fails because no assertions were made in the test method.
C. The deployment passes because the Apex code has required (>75%) code coverage.
D. The deployment passes because both classes and the trigger were included in the deployment.
Universal Containers has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience.
What should the developer do to fulfill the business request in the quickest and most effective manner?
A. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.
B. Rewrite all Visualforce pages asLightning components.
C. Set the attribute enableLightning to treu in the definition.
D. Enable Available for Lightning Experience, Lightning Comminities, and the mobile app on Visualforce pages used by the custom application.
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?
A. Add cuatom controller attributes to display the message.
B. Include
C. Use a try/catch with a custom exception class.
D. Perform the DML using the Database.upsert() method.
How many Accounts will be inserted by the following block of code?
A. 150
B. 0
C. 500
D. 100
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
A. Write a class that extends HTTPCalloutMock.
B. Write a class that implements the HTTPCalloutMock interface.
C. Write a class that implements the WebserviceMock interface.
D. Write a class that extends WebserviceMock
Given the following Anonymous Block:
What should a developer consider for an environment that has over 10,000 Case records?
A. The transaction will fail due to exceeding the governor limit.
B. The try/catch block will handle any DML exceptions thrown.
C. The transaction will succeed and changes will be committed.
D. The try/catch block will handle exceptions thrown by governor limits.
Which exception type cannot be caught ?
A. CalloutException
B. A custom Exception
C. NoAccessException
D. LimitException
A developer writes a trigger on the Account object on the before update event that increments a count field. A workflow rule also increments the count field every time that an Account is created or update. The field update in the workflow rule is configured to not re-evaluate workflow rules.
What is the value of the count field if an Account is inserted with an initial value of zero, assuming no other automation logic is implemented on the Account?
A. 3
B. 2
C. 1
D. 4
Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real- time notification is not required?
A. Asynchronous Data Capture Events
B. Developer Log
C. Event Monitoring Log
D. Calendar Events
An Approval Process is defined in the Expense_Item_c. A business rule dictates that whenever a user changes the Status to 'Submitted' on an Expense_Report_c record, all the Expense_Item_c records related to the expense report must enter the approval process individually.
Which approach should be used to ensure the business requirement is met?
A. Create a Process Builder on Expense_Report_c with a 'Submit for Approval' action type to submit all related Expense_Item_c records when the criteria is met.
B. Create two Process Builder, one on Expense_Report_c to mark the related Expense_Item_c as submittable and the second on Expense_Item_c to submit the records for approval.
C. Create a Process Builder on Expense_Report_c to mark the related Expense_Item_c as submittable and trigger on Expense_item_c to submit the records for approval.
D. Create a Process Builder on Expense_Report_c with an 'Apex' action type to submit all related Expense_Item_c records when the criteria is met.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDI exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.