A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience. What should the developer use to override the Contact's Edit button and provide this functionality?
A. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience
B. A Lightning component in 5alesforce Classic and a Lightning component in lightning Experience
C. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience
D. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience
A developer is creating a test coverage for a class and needs to insert records to validate functionality. Which method annotation should be used to create records for every method in the test class?
A. @BeforeTest
B. @isTest(SeeAllData=True)
C. @TestSetup
D. @PreTest
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 developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records. hich two approaches can the developer use to ensure Pricing _Structure c records are available when the test class is executed? Choose 2 answers
A. Use a Test Date Factory class.
B. Use the @raTeat (seeAllData=true) annotation.
C. Use the Test. leadtear{} method,
D. Use without shering on the class declaration.
Universal Container wants Opportunities to no longer be editable when reaching the Clousd stage. How should a develoiper accomplish this?
A. Use the Process Automation setting.
B. Mark fields as read-only on the page layout.
C. Use flow Builder
D. Use a validation rule.
Which two events need to happen when deploying to a production org? Choose 2 answers
A. All triggers must have at least 1% test coverage.
B. All Apex code must have at least 75% test coverage.
C. All triggers must have at least 75% test coverage.
D. All test and triggers must have at least 75% test coverage combined
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects. When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?
A. @future
B. @RemoteAction
C. @InvocableMethod
D. @AuraEnaled
What are three ways for a developer to execute tests in an org? Choose 3.
A. Bulk API
B. Tooling API
C. Setup Menu
D. Salesforce DX
E. Metadata API.
For which three items can a trace flag be configured? Choose 3 answers
A. Process Builder
B. Visualforce
C. Apex Class
D. Apex Trigger
E. User
Universal Containers implemented a private sharing model for the Account object. A custom Account search tool was developed with Apex to help sales representatives find accounts that match multiple criteria they specify. Since its release, users of the tool report they can see Accounts they do not own. What should the developer use to enforce sharing permission for the currently logged-in user while using the custom search tool?
A. Use the schema describe calls to determine if the logged-in users has access to the Account object.
B. Use the without sharing keyword on the class declaration.
C. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user.
D. Use the with sharing keyword on the class declaration.
Page 7 out of 24 Pages |
Previous |