A developer is asked to create a custom visualforce page that will be used as a dashboard component. Which three are valid controller options for this page? Choose 3 answers
A. Use a custom controller
B. Use a custom controller with extensions
C. Use a standard controller with extensions
D. Do not specify a controller
E. Use a standard controller
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
A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?
A. Declare maxattempts as a member variable on the trigger definition.
B. Declare maxattempts as a private static variable on a helper class
C. Declare maxattempts as a constant using the static and final keywords
D. Declare maxattempts as a variable on a helper class
Which two roll-up summary field types are required to find the average of values on detail records in a Master-Detail relationship?
A. Roll-up summary field of type COUNT
B. Roll-up summary field of type SUM
C. Roll-up summary field of type NUM
D. Roll-up summary field of type TOTAL
A developer uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record. What must be done in the second test method to use the Account?
A. Use SELECT Id from Account where Name='Test'
B. Restore the Account using an undeleted statement
C. The Account cannot be used in the second test method
D. Call the Test Setup method at the start of the test
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
A. ENUM
B. sObject
C. External ID
D. String
A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard. Which approach should the developer use to accomplish this declaratively?
A. A Visualforce page that calculates the total number of hours for a timecard and displays it on the page
B. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
C. A Process Builder process that updates a field on the timecard when a timecard entry is created
D. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field
A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?
A. Nothing. The task is automatically displayed on the Account page.
B. Nothing. The Task cannot be related to an Account and a Contact.
C. Create a Workflow rule to relate the Task to the Contact's Account.
D. Create an Account formula field that displays the Task information.
What should a developer use to obtain the Id and Name of all the Leads. Accounts, and Contacts that hove the company name "Universal Containers"?
A. FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name)
B. FIND Universal Containers' IN CompanyName Fietds RETURNING lead{ld. name), accounted, name), contacted, name)
C. SELECT lead(id, name). accountOd, name), contacted, name) FROM Lead, Account, Contact WHERE Name = "universal Containers'
D. SELECT Lead.id. Lead.Name, Account.Id, AccountName, Contacted, Contact.Name FROM Lead, Account, Contact WHERE CompanvName * Universal Containers'
A SSN__c custom field exists on the Candidate__c custom object. The field is used to store each candidate's social security number and is marked as Unique in the schema definition.
As part of a data enrichment process, Universal Containers has a CSV file that contains updated data for all candidates in the system. The file contains each Candidate's social security number as a data point. Universal Containers wants to
upload this information into Salesforce, while ensuring all data rows are correctly mapped to a candidate in the system.
Which technique should the developer implement to streamline the data upload?
A. Update the SSN__c field definition to mark it as an External Id.
B. Upload the CSV into a custom object related to Candidate__c.
C. Create a before insert trigger to correctly map the records.
D. Create a Process Builder on the Candidate__c object to map the records.