A developer wants to handle the click event for a lightning:button componentthe onclick attribute for the component references a javascript function in which resource in the component bundle?
A. Helper.js
B. Handler.js
C. Renderer.js
D. Controller.js
How should a developer write unit tests for a private method in an Apex class?
A. Use the SeeAllData annotation.
B. Add a test method in the Apex class.
C. Use the TestVisible annotation.
D. Mark the Apex class as global.
Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job c acting as the master object, Job application._: acting as the detail.
Within the Job_c object, a custom multi-select picklist, Preferred Locations Op, contains a list of approved states for the position. Each Job-_Application e record relates to a Contact within the system through a master-detail relationship.
Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred Locations e field, within the Job_ Application c record. Recruiters would like this value to be kept in sync, if
changes occur to the Contact's Mailing State or if the Job's Preferred_Locations_c field is updated.
What is the recommended tool a developer should use to meet the business requirement?
A. Record-triggered flow
B. Process Builder
C. Formula field
D. Apex trigger
A develop completed modification to a customized feature that is comprised of two elements:
1.
Apex trigger
2.
Trigger handler Apex class
What are two factors that the developer must take into account to properly deploy the modification to the production environment?
A. Apex classes must have at least 75% code coverage org-wide.
B. At least one line of code must be executed for the Apex trigger.
C. All methods in the test classes must use @isTest.
D. Test methods must be declared with the testMethod keyword.
What are two benefits of using declarative customizations over code? Choose 2 answers What are two benefits of using declarative customizations over code?
A. Declarative customizations automatically update with each Salesforce release.
B. Declarative customizations automatically generate test classes.
C. Declarative customizations automatically generate test classes.
D. Declarative customizations generally require less maintenance.
A developer creates a custom exception as shown below:
What are two ways the developer can fire the exception in Apex? Choose 2 answers
A. Throw new ParityException (parity does not match);
B. New ParityException( );
C. New ParityException (parity does not match);
D. Throw new parityException ( );
How does the Lightning Component framework help developers implement solutions faster?
A. By providing an Agile process with default steps
B. By providing code review standards and processes
C. By providing device-awareness for mobile and desktops
D. By providing change history and version control
The sales management team at Universal Containers requires that the Lead Source field of the Lead record be populated when a Lead is converted. What should be used to ensure that a user populates the Lead Source field prior to converting a Lead?
A. Process Builder
B. Validation Rule
C. Formula Field
D. workflow Rule
A team of many developers work in their own individual orgs that have the same configuration at the production org. Which type of org is best suited for this scenario?
A. Developer Sandbox
B. Developer Edition
C. Full Sandbox
D. Partner Developer Edition
Which statement should be used to allow some of the records in a list of records to be inserted rf others fail to be inserted?
A. insert records
B. Database.insert(records, true)
C. insert (records, false)
D. Database.insert(records, false)
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
A. As a List
B. As a String with each value separated by a comma
C. As a String with each value separated by a semicolon
D. As a Set
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
A.
B. Inline CSS
C.
D.
E. A static resource
Why would a developer consider using a custom controller over a controller extension?
A. To increase the SOQL query governor limits.
B. To implement all of the logic for a page and bypass default Salesforce functionality
C. To leverage built-in functionality of a standard controller
D. To enforce user sharing settings and permissions
In which two org types can a developer create new Apex Classes? Choose 2 answers
A. Developer Edition
B. Sandbox
C. Enterprise Edition
D. Unlimited
Which two statements are acceptable for a developer to use inside procedural loops?
A. Contact con = new Contact();
B. ContactList.remove(i);
C. Delete contactList; D. Account a = [SELECT id, Name FROM account WHERE id = : con.AccountId LIMIT 1];