Which step should the developer take to resolve the issue and properly test the exception?
A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown. Which step should the developer take to resolve the issue and properly test the exception?A . Use try/catch within the unit test...
What is an accurate constructor for a custom controller named "MyController"?
What is an accurate constructor for a custom controller named "MyController"?A . public MyController () { account = new Account () ; }B . public MyController (sObject obj) { account = (Account) obj; }C . public MyController (List objects) { accounts = (List ) objects; }D . public MyController (ApexPages.StandardController...
Which two ways should a developer create this functionality?
A developer is asked to create a PDF quote document formatted using the company’s branding guidelines, and automatically save it to the Opportunity record. Which two ways should a developer create this functionality? (Choose two.)A . Install an application from the AppExchange to generate documents.B . Create a Visualforce page...
What would a developer do to meet this requirement?
The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record. What would a developer do to meet this requirement?A . Create a trigger on the Account...
What is an important consideration when developing in a multi-tenant environment?
What is an important consideration when developing in a multi-tenant environment?A . Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.B . Unique domain names take the place of namespaces for code developed for multiple orgs on multiple instances.C . Polyglot persistence provides support for...
When is an Apex Trigger required instead of a Process Builder Process?
When is an Apex Trigger required instead of a Process Builder Process?A . When a record needs to be createdB . When multiple records related to the triggering record need to be updatedC . When a post to Chatter needs to be createdD . When an action needs to be...
How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?
How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?A . Create a Sharing Rule comparing the custom object owner to the account owner.B . Create a validation rule on...
What are three characteristics of static methods? (Choose three.)
What are three characteristics of static methods? (Choose three.)A . Initialized only when a class is loadedB . A static variable outside of the scope of an Apex transactionC . Allowed only in outer classesD . Allowed only in inner classesE . Excluded from the view state for a Visualforce...
How can a developer set up a debug log on a specific user?
How can a developer set up a debug log on a specific user?A . It is not possible to setup debug logs for users other than yourself.B . Ask the user for access to their account credentials, log in as the user and debug the issue.C . Create Apex code...
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)
Which two strategies should a developer use to avoid hitting governor limits when developing in a multi-tenant environment? (Choose two.)A . Use collections to store all fields from a related object and not just minimally required fields.B . Use methods from the “Limits” class to monitor governor limits.C . Use...