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
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
A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back.What can a developer do to accomplish this?
A. Create a visual workflow that will capture the candidate's signature electronically
B. Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically.
C. Install a managed package that will allow the candidate to sign documents electronically
D. Create an assignment rule that will assign the offer letter to the candidate
A visualforce page uses the contact standard controller. How can a developer display the name from the parent account record on the page?
A. Use SOQL syntax to find the related accounts name field
B. Use the {!contact.account.name} merge field syntax
C. Use an additional standard controller for accounts
D. Use additional apex logic within the controller to query for the name field
What is a characteristic of the Lightning Component Framework? Choose 2 answers:
A. It has an event-driven architecture.
B. It works with existing Visualforce pages.
C. It includes responsive components.
D. It uses XML as its data format.
Which statement would a developer use when creating test data for products and pricebooks?
A. Id pricebookId = Test.getStandardPricebookId();
B. Pricebook pb = new Pricebook();
C. IsTest(SeeAllData = false);
D. List objList = Test.loadData(Account.sObjectType, 'myResource');
A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?
A. Use Test.loadData() and reference a CSV file.
B. Use SOQL to query the org for the required data.
C. Use Test.loadData() and reference a static resource.
D. Use Anonymous Apex to create the required data.
An Account trigger updates all related Contacts and Cases each time an Account is saved using the
following two DML statements:
update allContacts; update allCases;
What is the result if the Case update exceeds the governor limit for maximum number of DML records?
A. The Account save succeeds, Contacts are updated, but Cases are not.
B. The Account save fails and no Contacts or Cases are updated
C. The Account save is retried using a smaller trigger batch size.
D. The Account save succeeds and no Contacts or Cases are updated
A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which
A. StandardController = "case" and extensions =" myControllerExtension"
B. Extensions=" myControllerExtension"
C. Controller=" myControllerExtension"
D. Controller = "case" and extensions =" myControllerExtension"
A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers
A. Throw new RecordNotFoundException("problem occured");
B. Throw new RecordNotFoundException();
C. throw RecordNotFoundException("problem occured");
D. Throw RecordNotFoundException();