DEV 1 - All Questions
![]() |
![]() |
![]() |
---|

Title of test: DEV 1 - All Questions Description: All questions by increment Creation Date: 2023/09/22 Category: Others Number of questions: 292
|



New Comment |
---|
NO RECORDS |
How can a developer implement this feature?. Build an account assignment rule. Build a workflow rule. Build a flow with Flow Builder. Build an account approval process. Which three resources in an Aura Component can contain Javascript functions? Choose 3 answers. Controller. Helper. Style. Renderer. Design. Since Aura application events follow the traditional publish-subscribe model, which method is used to fire an event?. ernit(). fireEvent(). fire(). registerEvent(). Which annotation exposes an Apex class as a RESTful web service?. AuraEnabled. RestResource. Remote Action. Httplnvocable. Which two are phases in the Aura application event propagation framework? Choose 2 answers. Emit. Control. Default. Bubble. Which two are phases in the Salesforce Application Event propagation framework? Choose 2 answers. Bubble. Default. Capture. Emit. Which exception type cannot be caught?. Custom Exception. CalloutException. LimitException. NoAccessException. For which three items can a trace flag be configured? Choose 3 answers. Process Builder. Visualforce. Apex Class. Apex Trigger. User. What should be used to create scratch orgs?. Developer Console. Salesforce CLI. Workbench. Sandbox refresh. Which three web technologies can be integrated into a Visualforce page? (Choose three.). JavaScript. CSS. Java. PHP. HTML. Which standard field is required when creating a new contact record?. LastName. Name. AccountId. FirstName. What are two ways for a developer to execute tests in an org?. Tooling API. Developer console. Bulk API. Matadata API. what are the three languages used in the visualforce page?. Javascript, CSS, HTML. Apex, Json, SQL. C++, CSS, query. When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?. Production. Dev Hub. Environment. Sandbox. Which salesforce org has a complete duplicate copy of the production org including data and configuration?. Developer Pro Sandbox. Partial Copy Sandbox. Production. Full Sandbox. What are three ways for a developer to execute tests in an org? Choose 3. Bulk API. Tooling API. Setup Menu. Salesforce DX. Metadata API. Which three data types can a SOQL query return? Choose 3 answers. List. Long. Integer. sObject. What can be used to override the Account's standard Edit button for Lightning Experience?. Lightning action. Lightning component. Lightning page. Lightning flow. Which two sfdx commands can be used to add testing data to a Developer sandbox?. Forced: data:bulk:upsert. Forced: data: object :upsert. Forced: data: tree: upsert. Forced: data:async:upsert. What should a developer use to script the deployment and unit test execution as part of continuous integration?. Developer Console. Execute Anonymous. Salesforce CLI. VS Code. What should a developer use to fix a Lightning web component bug in a sandbox?. Developer Console. Force.com IDE. Execute Anonumous. VS Code. What are two use cases for executing Anonymous Apex code? Choose 2 answers. To delete 15,000 inactive Accounts In a single transaction after a deployment. To schedule an Apex class to run periodically. To run a batch Apex class to update all Contacts. To add unit test code coverage to an. What are three characteristics of change set deployments? Choose 3 answers. Change sets can only be used between related organizations. Change sets can be used to transfer records. Sending a change set between two orgs requires a deployment connection. Change sets can deploy custom settings data. Deployment is done in a one-way, single transaction. 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?. insert records. Database.insert(records, true). insert (records, false). Database.insert(records, false). Which three Salesforce resources can be accessed from a Lightning web component? Choose 3 answers. SVG resources. Third-party web components. Content asset files. Static resources. All external libraries. Which two statements are accurate regarding Apex classes and interfaces? Choose 2 answers. Classes are final by default. Inner classes are public by default. Interface methods are public by default. A top-level class can only have one inner class level. What is a benefit of developing applications in a multi-tenant environment?. Enforced best practices for development. Access to predefined computing resources. Unlimited processing power and memory. Default out-of-the-box configuration. Which scenario is valid for execution by unit tests?. Load data from a remote site with a callout. Set the created date of a record using a system method. Execute anonymous Apex as a different user. Generate a Visualforce PDF with geccontentAsPDF. Which Apex class contains methods to return the amount of resources that have been used for a particular governor, such as the number of DML statements?. Exception. Messaging. OrgLimits. Limits. What can be developed using the Lightning Component framework?. Hosted web applications. Single-page web apps. Dynamic web sites. Salesforce integrations. What is the value of the Trigger.old context variable in a Before Insert trigger?. A list of newly created sObjects without IDS. Undefined. null. An empty list of sObjects. Which action may cause triggers to fire?. Updates to Feed Items. Renaming or replacing a picklist entry. Changing a user's default division when the transfer division option is checked. Cascading delete operations. Which three per-transaction limits have higher governor limits in asynchronous Apex transactions?. Maximum CPU time. Maximum heap size. Total SOQL queries. Maximum execution time. Records returned by SOQL. How should a developer write unit tests for a private method in an Apex class?. Use the SeeAllData annotation. Add a test method in the Apex class. Use the TestVisible annotation. Mark the Apex class as global. What is the order of operations when a record is saved in Salesforce?. Process flows, triggers, workflow, commit. Workflow, process flows, triggers, commit. Workflow, triggers, process flows, commit. Triggers, workflow, process flows, commit. Which two conditions cause workflow rules to fire? Choose 2 answers. Changing the territory assignments of accounts and opportunities. Updating records using the bulk API. Converting leads to person accounts. An Apex Batch process that changes field values. A developer needs to update an unrelated object when a record gets saved. Which two trigger types should the developer create? (Choose two). After insert. After update. Before update. Before insert. Which code displays the contents of a Visualforce page as a PDF?. < apex:page contentType='pdf' >. < apex:page rendersAs='application\/pdf' >. < apex:page contentType='application\/pdf' >. < apex:page renderAs='pdf' >. What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers. View the apex status Page. View the apex flex Queue. View the apex Jobs page. Query the AsyncApexJobe object. A developer creates a custom exception as shown below: What are two ways the developer can fire the exception in Apex? Choose 2 answers. Throw new ParityException (parity does not match);. New ParityException( );. New ParityException (parity does not match;. Throw new parityException ( );. A developer created these three Rollup Summary fields in the custom object, Project_ct, Total_Timesheets__c Total_Approved_Timesheets__c Total_Rejected_Timesheets__c The developer is asked to create a new field that shows the ratio between rejected and approved timesheets for a given project. Which should the developer use to Implement the business requirement in order to minimize maintenance overhead?. Record-triggered Flow. Formula field. Apex Trigger. Process Builder. Which two settings must be defined in order to update a record of a junction object? Choose 2 answers. Read access on the primary relationship. Read/Write access on the secondary relationship. Read/Write access on the primary relationship. Read/Write access on the junction. A developer Is asked to create a Visualforce page that lists the contacts owned by the current user. This component will be embedded In a Lightning page. Without writing unnecessary code, which controller should be used for this purpose?. Standard list controller. Standard controller. Lightning controller. Custom controller. A Salesforce Administrator used Flow Builder to create a flow named ''accountOnboarding''. The flow must be used inside an Aura component.Which tag should a developer use to display the flow in the component?. Lightning-flow. Aura:flow. Lightning:flow. Aura-flow. A developer creates a Lightning web component that imports a method within an Apex class. When a Validate button is pressed, the method runs to execute complex validations. In this implementation scenario, which artifact is part of the Controller according to the MVC architecture?. HTML file. JavaScript file. XML file. Apex class. A custom Visualforce controller calls the ApexPages,addMessage () method, but no messages are rendering on the page. Which component should be added to the Visualforce page to display the message?. < apex: pageMessages / >. < apex: pageMessage severity=''info''/ >. < Apex: facet name='' message''/ >. < Apex: message for='' info''/ >. When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values in a postalCodeToTimezone_c custom object. What should be built to implement this feature?. Account custom trigger. Account approval process. Account assignment rule. Account workflow rule. what are the methods used to show input in classic and lightning ?. Use visualforce page in classic and lightning component in lightning. Use visualforce page in lightning and lightning component in classic. Use Class APEX in lightning and lightning component in classic. Use Class APEX in classic and lightning component in lightning. A development team wants to use a deployment script lo automatically deploy lo a sandbox during their development cycles. Which two tools can they use to run a script that deploys to a sandbox? Choose 2 answers. Ant Migration Tool. SFDX CLI. Change Sets. Developer Console. 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?. Developer Sandbox. Developer Edition. Full Sandbox. Partner Developer Edition. A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?. AppExchange. Salesforce CLI. Visual Studio Core IDE. Developer Console. Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records. which Visualforce feature supports this requirement?. < apex:listButton > tag. Custom controller. RecordSetVar page attribute. Controller extension. Which Salesforce feature allows a developer to see when a user last logged in to Salesforce if real-time notification is not required?. Asynchronous Data Capture Events. Developer Log. Event Monitoring Log. Calendar Events. 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?. @BeforeTest. @isTest(SeeAllData=True). @TestSetup. @PreTest. A developer uses a loop to check each Contact in a list. When a Contact with the Title of ''Boss'' is found, the Apex method should jump to the first line of code outside of the for loop. Which Apex solution will let the developer implement this requirement?. Break ;. Continue ;. Next ;. Exit ;. A developer is writing tests for a class and needs to insert records to validate functionality. Which annotation method should be used to create record for every method in the test class?. @isTest (SeeAllData-true). @FreTest. @TestSetup. @StartTest. 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?. @future. @RemoteAction. @InvocableMethod. @AuraEnaled. Cloud kicks has a multi-screen flow that its call center agents use when handling inbound service desk calls. At one of the steps in the flow, the agents should be presented with a list of order numbers and dates that are retrieved from an external order management system in real time and displayed on the screen. What should a developer use to satisfy this requirement?. An Apex controller. An Apex REST class. An outbound message. An invocable method. Which action causes a before trigger to fire by default for Accounts?. Renaming or replacing picklist. Importing data using the Data Loader and the Bulk API. Converting Leads to Contact accounts. Updating addresses using the Mass Address update tool. In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?. On the Paused Row Interviews related List for a given record. In the Paused Interviews section of the Apex Flex Queue. In the system debug log by Altering on Paused Row Interview. On the Paused Row Interviews component on the Home page. Which two statements are true about Getter and Setter methods as they relate to Visualforce?. Setter methods always have to be declared global. There is no guarantee for the order in which Getter methods are called. A corresponding Setter method is required for each Getter method. Getter methods pass values from a controller to a page. Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation. What are two characteristics of declarative development over programmatic customization? Choose 2 answers. Declarative development has higher design limits and query limits. Declarative development can be done using the Setup UI. Declarative development does not require Apex test classes. Declarative code logic does not require maintenance or review. What is an example of a polymorphic lookup field in Salesforce?. The LeadId and Contactid fields on the standard Campaign Member object. A custom field, Link__c, on the standard Contact object that looks up to an Account or a Campaign. The Whatld field on the standard Event object. The Parentid field on the standard Account object. A developer wants to mark each Account in a List< Account > as either or Inactive based on the LastModified field value being more than 90 days. Which Apex technique should the developer use?. A for loop, with a switch statement inside. A Switch statement, with a for loop inside. An If/else statement, with a for loop inside. A for loop, with an if/else statement inside. Universal Containers hires a developer to build a custom search page to help user- find the Accounts they want. Users will be able to search on Name, Description, and a custom comments field. Which consideration should the developer be aware of when deciding between SOQL and SOSL? Choose 2 answers. SOSL is able to return more records. SOQL is faster for text searches. SOSL is faster for tent searches. SOQL is able to return more records. What are three capabilities of the tag when loading JavaScript resources in Aura components? Choose 3 answers. Loading files from Documents. One-time loading for duplicate scripts. Specifying loading order. Loading scripts In parallel. Loading externally hosted scripts. A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculation and redirect the user to a custom visualforce page. Which three attributes need to be defined with values in the tag to accomplish this? Choose 3 answers. renderAs. standard Controller. readOnly. Action. extensions. In the following example, which sharing context will myMethod execute when it is invoked?. Sharing rules will be inherited from the calling context. Sharing rules Ail be enforced by the instantiating class. Sharing rules Ml be enforced for the running user. Sharing rules will not be enforced for the running user. which statement is true regarding execution order when triggers are associated to the same object and event?. Trigger execution order cannot be guaranteed. executed In the order they are modified. Triggers are executed alphabetically by trigger name. Triggers are executed in the order they are created. Which two operations can be performed using a formula field? Choose 2 answers. Displaying the last four digits of an encrypted Social Security number. Triggering a Process Builder. Displaying an Image based on the Opportunity Amount. Calculating a score on a Lead based on the information from another field. A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?. Write a class that extends HTTPCalloutMock. Write a class that implements the HTTPCalloutMock interface. Write a class that implements the WebserviceMock interface. Write a class that extends WebserviceMock. When a user edits the Postal Code on an Account, a custom Account text field named 'Timezone' must be update based on the values in a PostalCodeToTimezone__c custom object. How should a developer implement this feature?. Build an Account Assignment Rule. Build an Account custom Trigger. Build an account Approval Process. Build an Account Workflow Rule. A developer must write an Apex method that will be called from a Lightning component. The method may delete an Account stored in the accountRec variable. Which method should a developer use to ensure only users that should be able to delete Accounts can successfully perform deletions?. Schema.sObjectType.Account.isDeletable(). Account.isDeletable(). accountRec.isDeletable(). accountRec.sObjectType.isDeletable(). Which three statements are true regarding trace flags? (Choose three.). Setting trace flags automatically cause debug logs to be generated. Logging levels override trace flags. Trace flags override logging levels. If active trace flags are not set, Apex tests execute with default logging levels. Trace flags can be set in the Developer Console, Setup, or using the Tooling API. A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?. Public void doWork(Record theRecord). Public void doWork(sObject theRecord). Public void doWork(Account Contact). Public void doWork(Account || Contatc). What is the result of the following Classes page?. View the Code Coverage column in the view on the Apex Classes page. View the Class test Coverage tab on the Apex Class record. view the overall Code Coverage panel of the tab in the Developer Console. Select and run the class on the Apex Test Execution. What is the result of the following code?. The record will not be created and a exception will be thrown. The record will be created and a message will be in the debug log. The record will not be created and no error will be reported. The record will be created and no error will be reported. A Salesforce developer wants to review their code changes immediately and does not want to install anything on their computer or on the org. Which tool is best suited?. Developer Console. Salesforce Extension for VSCode. Setup Menu. Third-party apps from App Exchange. What are two characteristics related to formulas? Choose 2 answers. Formula can reference themselves. Formulas are calculated at runtime and are not stored in the database. Formulas can reference values in related objects. Fields that are used in a formula field can be deleted or edited without the formula. 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?. Use Anonymous Apex to create the required data. Use SOQL to query the org for the required data. Use Test.Loaddata () and reference a static resource. Use Test.Loaddata () and reference a CSV file. How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?. Use the Flow properties page. Use the code Coverage Setup page. Use the Apex testresult class. Use SOQL and the Tooling API. A developer is asked to create a Visualforce page for Opportunities that allows users to save or merge the current record. Which approach should the developer to meet this requirement?. A custom controller. A custom controller extension. Visualforce page JavaScript. Standard controller methods. A developer must build application that tracks which Accounts have purchase specific pieces of equal products. Each Account could purchase many pieces of equipment. How should the developer track that an Account has purchased a piece of equipment. Use the Asset object. Use a Custom object. Use a Master-Detail on Product to Account. Use a Lookup on Account to product. How does the Lightning Component framework help developers implement solutions faster?. By providing an Agile process with default steps. By providing code review standards and processes. By providing device-awareness for mobile and desktops. By providing change history and version control. A developer must create an Apex class, contactcontroller, that a Lightning component can use to search for Contact records. User of the Lightning component should only be able to search Contact records to which they have access. Which two will restrict the records correctly? (Choose two). public class ContactController. public with sharing class ContactController. public without sharing class ContactController. public inherited sharing class ContactController. Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers. $Lightning.createComponent. < apex:slds/ >. $Lightning.useComponent. $Lightning.use. < apex:includeLightning/ >. In terms of the MVC paradigm, what are two advantages of implementing the layer of a Salesforce application using Aura Component-based development over Visualforce? Choose 2 answers. Self-contained and reusable units of an application. Rich component ecosystem. Automatic code generation. Server-side run-time debugging. A developer wants to import 500 Opportunity records into a sandbox. Why should the developer choose to use data Loader instead of Data Import Wizard?. Data Loader runs from the developer's browser. Data Import Wizard does not support Opportunities. Data Loader automatically relates Opportunities to Accounts. Data Import Wizard can not import all 500 records. A developer observes that an Apex test method fails in the Sandbox. To identify the issue, the developer copies the code inside the test method and executes it via the Execute Anonymous tool in the Developer Console. The code then executes with no exceptions or errors. Why did the test method fail in the sandbox and pass in the Developer Console?. The test method has a syntax error in the code. The test method relies on existing data in the sandbox. The test method is calling an @future method. The test method does not use System.runAs to execute as a specific user. Given the following Apex statement: Account myAccount = [SELECT Id, Name FROM Account]; What occurs when more than one Account is returned by the SOQL query?. The variable, myAccount, is automatically cast to the List data type. The first Account returned is assigned to myAccount. The query fails and an error is written to the debug log. An unhandled exception is thrown and the code terminates. Which three statements are true regarding custom exceptions in Apex? (Choose three.). A custom exception class must extend the system Exception class. A custom exception class can implement one or many interfaces. A custom exception class cannot contain member variables or methods. A custom exception class name must end with ''Exception''. A custom exception class can extend other classes besides the Exception class. An org has an existing Visual Flow that creates an Opportunity with an Update records element. A developer must update the Visual Flow also created a Contact and store the created Contact's ID on the Opportunity. Add a new Get Records element. Add a new Create records element. Add a new Quick Action (of type create) element. Add a new Update records element. Which two events need to happen when deploying to a production org? Choose 2 answers. All triggers must have at least 1% test coverage. All Apex code must have at least 75% test coverage. All triggers must have at least 75% test coverage. All test and triggers must have at least 75% test coverage combined. How should a custom user interface be provided when a user edits an Account in Lightning Experience?. Override the Account's Edit button with Lightning Flow. Override the Account's Edit button with Lightning Action. Override the Account's Edit button with Lightning page. Override the Account's Edit button with Lightning component. A developer is asked to create a Visualforce page that displays some Account fields as well as fields configured on the page layout for related Contacts. How should the developer implement this request?. Use the < apex:relatedList > tag. Create a controller extension. Use the < apex:include > tag. Add a method to the standard controller. Use @TestVisible to allow the test method to see the standard PriceBook. < apex:outputField value='{!ctrl.userInput}' / >. < apex:outputText escape='false' value=' {!$CurrentPage.parameters.userInput}' / >. < apex:outputText value='{!CurrentPage.parameters.userInput}' / >. < apex:outputField escape='false' value='{!ctrl.userInput}' / >. Which code should be used to update an existing Visualforce page that uses standard Visualforce components so that the page matches the look and feel of Lightning Experience?. < apex:page lightningStyleSheets=''true'' >. < apex:page >. < apex:commandButton styleClass='slds-vf-button_brand' value='Refresh the Page' >. apex:actionStatus. Where are two locations a developer can look to find information about the status of asynchronous or future methods? Choose 2 answers. Apex Flex Queue. Apex Jobs. Paused Flow Interviews component. Time-Based Workflow Monitor. What does the Lightning Component framework provide to developers?. Extended governor limits for applications. Prebuilt component that can be reused. Templates to create custom components. Support for Classic and Lightning UIS. A team of developers is working on a source-driven project that allows them to work independently, with many different org configurations. Which type of Salesforce orgs should they use for their development?. Developer sandboxes. Scratch orgs. Full Copy sandboxes. Developer orgs. Universal Containers wants to back up all of the data and attachments in its Salesforce org once month. Which approach should a developer use to meet this requirement?. Use the Data Loader command line. Create a Schedulable Apex class. Schedule a report. Define a Data Export scheduled job. Which aspect of Apex programming is limited due to multitenancy?. The number of active Apex classes. The number of methods in an Apex Class. The number of records processed in a loop. The number of records returned from database queries. Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers. Upload the SVG as a static resource. Import the static resource and provide a getter for it in JavaScript. Reference the getter in the HTML template. Reference the import in the HTML template. Import the SVG as a content asset file. A developer needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page. The developer wants to ensure the Visualforce page matches the Lightning Experience user interface. What attribute needs to be defined within the tag to meet the requirement?. applyHtmlTag='true'. wizard=true'. setup='true'. lightningStylesheets=''true'. 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?. Use Anonymous Apex to create the required data. Use Test.loadDataO < > and reference a CSV file in a static resource. Use SOQL to query the org for the required data. Use Test.loadDataO and reference a JSON file in Documents. A developer is creating an app that contains multiple Lightning web components. One of the child components is used for navigation purposes. When a user click a button called.. component, the parent component must be alerted so it can navigate to the next page. How should this be accomplished?. Fire a notification. Update a property on the parent. Call a method in the Apex controller. Create a custom event. A developer migrated functionality from JavaScript Remoting to a Lightning web component and ... existing getOpportunities method to provide data. The method must be decorated with (cacheable=true). The method must be decorated with @AuraEnabied. The method must return a JSON Object. The method must return a String of a serialized JSON Array. A developer wrote an Apex method to update a list of Contacts and wants to make it available for use by Lightning web components. Which annotation should the developer add to the Apex method to achieve this?. @AuraEnabled (cachable = true). @AuraEnabled. @RemoteAction. @RemoteAction(cacheable=true). Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 answer. Calling a method that makes a web service callout. Calling a method that is not annotated with cacheable-true. Calling a method with the click of a button. Calling a method that is external to the main controller for the Lightning web component. An org has two custom objects: * Plan_c, that has a master-detail relationship to the Account object. * Plan_item_c, that has a master-detail relationship to the plan_C object. What should a developer use to create a Visualforce section in the Account page layout that displays all of the plan.. Account and all of the Plan_item_c records related to those plan_c records. A controller extension with a custom controller. A standard controller with a custom controller. A standard controller with a controller extension. A custom controller by itself. Universal Container is building a recruiting app with an Applicant object that stores information about an individual person that represents a job. Each application may apply for more than one job. What should a developer implement to represent that an applicant has applied for a job?. Master-detail field from Applicant to Job. Formula field on Applicant that references Job. Junction object between Applicant and Job. Lookup field from Applicant to Job. Universal Containers has a Visualforce page that displays a table of every Container_c. being ....... Is falling with a view state limit because some of the customers rent over 10,000 containers. What should a developer change about the Visualforce page to help with the page load errors?. Use Lazy loading and a transient List variable. Use JavaScript remoting with SOQL Offset. Implement pagination with an OffsetController. Implement pagination with a StandardSetController. A develop completed modification to a customized feature that is comprised of two elements: Apex trigger Trigger handler Apex class What are two factors that the developer must take into account to properly deploy the modification to the production environment? Choose 2 asnwers. Apex classes must have at least 75% code coverage org-wide. At least one line of code must be executed for the Apex trigger. All methods in the test classes must use @isTest. Test methods must be declared with the testMethod keyword. A developer is creating a Lightning web component to show a list of sales records. The Sales Representative user should be able to see the commission-field on each record. The Sales Assistance user should be able to see all field on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?. Use Lightning Data Service to get the collection of sales recordsA. Use Lightning Locker Service to enforce sharing rules and field-level security. Use with SECURITY_EMFoRCED in the SOQL that fetches the data for the component. Use security. stripInaccessible to remove fields inaccessible to the current user. A third-party vendor created an unmanaged Lightning web component. The Salesforce Administrator wishes to expose the component only on Record Page Layouts. Which two actions should the developer take to accomplish this business objective? Choose 2 answers. Specify lightningCommunity_Page as a target in the XML file. Ensure isExposed is set to true on the XML file. Specify lightningCommunity_Page_Layout as a target in the XML file. Specify lightning_RecordPage as a target in the XML file. Universal Container uses Salesforce to create orders. When an order is created, it needs to sync with the-in-house order fulfillment system. The order fulfillment system can accept SOAP messages over the HTTPS. If the connection fails, messages should be retried for up to 24 hours. What is the recommended approach to sync the orders in Salesforce with the order fulfillment system?. Set up a Workflow Rule outbound message to the order fulfillment system. Create an after insert trigger on the Order object to make a callout to the order fulfilment system. Write an Apex SOAP service to integrate with the order fulfillment system. Use Process Bulkier to call an invocable Apex method that sends a message to the order fulfilment system. A developer created a weather app that contains multiple Lightning web components. One of the components, called Toggle, has a toggle for Fahrenheit or Celsius units. Another component, called Temperature, displays the current temperature in the unit selected in the Toggle component When a user toggles from Fahrenheit to Celsius or vice versa in the Toggle component, the information must be sent to the Temperature component so the temperature can be converted and displayed. What is the recommend way to accomplish this?. Create a custom event to handle the communicate between the components. Use Lightning Message Service to communicate between the component. Use Lightning Message Service to communicate between the components. The Toggle component should call a method in the Temperature component. A developer is migrating a Visualforce page into a Lightning web component. The Visualforce page shows information about a single record. The developer decides to use Lightning Data Service to access record data. Which security consideration should the developer be aware of?. Lightning Data Service handles sharing rules and field-level security. Lightning Data Service ignores field-level security. The with sharing keyword must be used to enforce sharing rules. The isAccessible ( ) method must be used for field-level access checks. AW Computing tracks order information in custom objects called order__c and order_Line_ c - Currently, all shipping information is stored in the order__c object. The company wants to expand Its order application to support split shipments so that any number of order_Line__c records on a single order__c can be shipped to different locations. What should a developer add to fulfill this requirement?. Order_shipment_Group_c object and master-detail field on order_Line_c. Order_shipment_Group_c object and master-detail field on order_c. Order_shipment_Group_c object and master-detail field to order_c and Order Line_c. Order_shipment_Group_c object and master-detail field on order_shipment_Group_c. Universal Containers has a support process that allows users to request support from its engineering team using a custom object, Engineering_Support__c. Users should be able to associate multiple engineering_Support__c records to a single Opportunity record. Additionally, aggregate Information about the Engineering_support__c records should be shown on the Opportunity record. What should a developer Implement to support these requirements?. Master-detail field from Engineering_Support__c to Opportunity. Master-detail field from Opportunity to Engineering_Support__c. Lookup field from Engineering_support__c to Opportunity. Lookup field from Opportunity to Engineering_Support__c. A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an Orderltem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders. What should a developer do to allow their code to move some existing Orderltem records to a new Order record?. Change the master-detail relationship to an external lookup relationship. Add without sharing to the Apex class declaration. Create a junction object between Orderltem and Order. Select the Allow reparenting option on the master-detail relationship. A business implemented a magnification plan to encourage its customers to watch some educational videos. Customers can watch videos over several days, and their progress is recorded. Award points are granted to customers for all completed videos. When the video is marked as completed in Salesforce, an external web service must be called so that points can be awarded to the user. A developer implemented these requirements in the after update trigger by making a calf to an external web service. However, a System.CalloutException is occurring. What should the developer do to fix this error?. Surround the external call with a try-catch block to handle the exception. Write a REST service to integrate with the external web service. Move the callout to an asynchronous method with structure (callout=true) annotation. Replace the after update trigger with a before insert trigger. Einstein Next Best Action Is configured at Universal Containers to display recommendations to internal users on the Account detail page. If the recommendation is approved, a new opportunity record and task should be generated. If the recommendation is rejected, an Apex method must be executed to perform a callout to an external system. Which three factors should a developer keep Hi mind when implementing the Apex method? Choose 3 answers. The method must use the @AuraEnabled annotation. The method must use the @Future annotation. The method must use the @invocableMethod annotation. The method must be defined as static. The method must be defined as public. The following automations already exist on the Account object; * A workflow rule that updates a field when a certain criteria is met * A custom validation on a field * A How that updates related contact records A developer created a trigger on the Account object. What should the developer consider while testing the trigger code?. The flow may be launched multiple times. Workflow rules will fire only after the trigger has committed all DML operations to the database. A workflow rule field update will cause the custom validation to run again. The trigger may fire multiple times during a transaction. A developer has requirement to write Apex code to update a large number of account records on a nightly basis. The system administrator needs to be able to schedule the class to run after business hours on an as-needed basis. Which class definition should be used to successfully implement this requirement?. Global inherited sharing class ProcessAccountProcessor implementsDatabase. Batchable< sObject >. Global inherited sharing class ProcessAccount Process implements Queueable. Global inherited sharing class ProcessAccountProcess Implements Queueable. Gloabal inherited sharing class processAccount Processor implements Database>Bachable Schedulable. A company has been adding data to Salesforce and has not done a good Job of limiting the creation of duplicate Lead records. The developer is considering writing an Apex process to identify duplicates and merge the records together. Which two statements are valid considerations when using merged? Choose 2 answers. The field values on the master record are overwritten by the records being merged. Merge is supported with accounts, contacts, cases, and leads. External ID fields can be used with the merge method. The merge method allows up to three records, including the master and two additional records with the same sObject type, to be merged into the master record. A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component. In which two ways can this be accomplished? Choose 2 answers. The parent component can use a custom event to pass the data to the child component. The parent component can use the Apex controller class to send data to the child component. The parent component can invoke a method in the child component. The parent component can use a public property to pass the data to the child component. Which annotation exposes an Apex class as a RESTful web service? A. RemoteAction B. HttpInvocable C. AuraEnabled D. RestResource Answer: D Question: 51 A software company uses the following objects and relationships: * Case: to handle customer support issues * Defect_c: a custom object to represent known issues with the company's software * case_Defect__c: a junction object between Case and Defector to represent that a defect Is a customer issue What should be done to share a specific Case-Defect_c record with a user?. Share the Case_Defect_c record. Share the parent Case record. Share the parent Defect_c record. Share the parent Case and Defect_c records. A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names. What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers A developer created a trigger on the Account object and wants to test if the trigger is properly bulklfield. The developer team decided that the trigger should be tested with 200 account records with unique names. What two things should be done to create the test data within the unit test with the least amount of code? Choose 2 answers. Use the @isTest(isParallel=true) annotation in the test class. Use Test.loadData to populate data in your test methods. Use the @isTest(seeAllData=true) annotation in the test class. Create a static resource containing test data. A develop created these three roll-up summary fields on the custom object. Project_c: Total_Timesheets__c Total_Approved_Timesheets__c Total_Rejected_Timesheets__c The developer is asked to create a new field that should the ratio between rejected and approved timesheet for a given project. What are two benefits of choosing a formula held instead of an Apex trigger to fulfill the request? Choose 2 answers. A test class will validate the formula field during deployment. A formula field will trigger existing automation when deployed. A formula field will calculate the retroactively for existing records. Using a formula field reduces maintenance overhead. An Opportunity needs to have an amount rolled up from a custom object that is not in a master-detail relationship. How can this be achieved?. Write a trigger on the child object and use a red-black tree sorting to sum the amount for all related child objects under the Opportunity. Write a Process Builder that links the custom object to the Opportunity. Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity. Use the Streaming API to create real-time roll-up summaries. What should a developer do to check the code coverage of a class after running all tests?. View the Code Coverage column in the list view on the Apex Classes page. View the Class Test Percentage tab on the Apex Class fist view m Salesforce Setup. View Use cede coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab. Select and run the class on the Apex Test Execution page in the Developer Console. Which two characteristics are true for Aura component events? Choose 2 answers. The event propagates to every owner in the containment hierarchy. Depending on the current propagation phase, calling event. Stoppropagation () may not stop the event propagation. If a container component needs to handle a component event, add a includeFacets' true'' attribute to its handler. By default, containers can handle events thrown by components they contain. Which two statements true about Getter and Setter methods as they relate to Visualforce? Choose 2 answers. Getter methods can pass a value from a controller to a page. There is no guarantee for the order in which Getter or Setter methods are executed. Setter methods always have to be declared global. Setter methods can pass a value from a controller to a page. A developer receives an error when trying to call a global server-side method using the remoteAction decorator. How can the developer resolve the error?. Change the function signature to be private static. Add static to the server-side method signature. A Decorate the server-side method with (static=true). Decorate the server-side method with (static=false). 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 Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience. A Lightning component in Salesforce Classic and a Lightning component in lightning Experience. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience. A developer needs to create a custom Interface in Apex. Which three considerations must the developer keep in mind while developing the Apex Interface? Choose 3 answers. The Apex class must be declared using the interface keyword. A method implementation can be defined within the Apex Interface. The Apex interface class access modifier can be set to Private, Public, or Global. A method defined In an Apex Interface cannot have an access modifier. New methods can be added to a public interface within a released package. Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers. Records created in the test setup method cannot be updated in individual test methods. Qo The @testSetup annotation is not supported when the GisTest(SeeAllData=True) annotation is used. Test data is inserted once for all test methods in a class. A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits. A developer is creating a page that allows users to create multiple Opportunities. The developer is asked to verify the current user's default Opportunity record type, and set certain default values based on the record type before inserting the record. How can the developer find the current user's default record type?. Query the Profile where the ID equals userInfo.getProfileID() and then use the profile.Opportunity.getDefaultRecordType() method. Use Opportunity.SObjectType.getDescribe().getRecordTypelnfos() to get a list of record types, and iterate through them until isDefaultRecordTypeMapping() is true. Use the Schema.userlnfo.Opportunity.getDefaultRecordType() method. Create the opportunity and check the opportunity.recordType, which will have the record ID of the current user's default record type before inserting. When importing and exporting data into Salesforce, which two statements are true? Choose 2 answers. Bulk API can be used to import large data volumes in development environments without bypassing the storage limits. Bulk API can be used to bypass the storage limits when importing large data volumes in development environments. Developer and Developer Pro sandboxes have different storage limits. Data import wizard is a client application provided by Salesforce. A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineItem trigger. Which method allows access to the price book?. Use Test.loadData ( )and a static resource to load a standard price book. Use @TestVisible to allow the test method to see the standard price book. Use Test.getStandardPricebookid ( ) to get the standard price book ID. Use @IsTest (SeeAllData=True) and delete the existing standard price book. Which two statements accurately represent the MVC framework implementation in Salesforce? Choose 2 answers. Validation rules enforce business rules and represent the Controller (C) part of the MVC framework. Lightning component HTML files represent the Model (M) part of the MVC framework. Triggers that create records represent the Model (M) part of the MVC framework. Standard and Custom objects used in the app schema represent the View (V) part of the MVC framework. A primaryid_c custom field exists on the candidate_c custom object. The filed is used to store each candidate's id 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 primary id 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?. Create a Process Builder on the Candidate_c object to map the records. Create a before Insert trigger to correctly map the records. Update the primaryid__c field definition to mark it as an External Id. Upload the CSV into a custom object related to Candidate_c. A developer needs to join data received from an integration with an external system with parent records in Salesforce. The data set does not contain the Salesforce IDs of the parent records, but it does have a foreign key attribute that can be used to identify the parent. Which action will allow the developer to relate records in the data model without knowing the Salesforce ID?. Create a custom field on the child object of type Foreign Key. Create and populate a custom field on the parent object marked as Unique. Create and populate a custom field on the parent object marked as an External ID. Create a custom field on the child object of type External Relationship. Which two characteristics are true for Aura component events? (Choose Two answers). Calling event, stopPropagation ( ) may or may not stop the event propagation based of the current propagation phase. If a container component needs to handle a component event, add a handleFacets='' attribute to Its handler. Only parent components that create subcomponents (either in their markup or programmatically) can handle events. The event propagates to every owner In the containment hierarchy. A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL. Which three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers. insert pageRef. Test.setCurrentPage(pageRef);. public ExtendedController(ApexPages StandardController cntrl) { }. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');. String nextPage - controller.save().getUrl. A workflow updates the value of a custom field for an existing Account. How can a developer access the updated custom field value from a trigger?. By writing, a Before Update trigger and accessing the field value from Trigger.new. By writing an After Insert trigger and accessing the field value from Trigger.old. By writing an After Update trigger and accessing the field value from Trigger.old. By writing a Before Insert trigger and accessing the field value from Trigger.new. A developer wants to invoke on outbound message when a record meets a specific criteria. Which three features satisfy this use case? Choose 3 answer. Approval Process has the capacity to check the record criteria and send an outbound message without Apex Code. Process builder can be used to check the record criteria and send an outbound message with Apex Code. workflows can be used to check the record criteria and send an outbound message. Process builder can be used to check the record criteria and send an outbound message without Apex Code. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code. A developer has to identify a method in en Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a SOQL statement to save the changes to the database. Which two techniques should the developer implement as a best practice to ensure transaction control and avoid exceeding governor limits? Choose 2 answers. Use the @ReadOnly annotation to bypass the number of rows returned by a SOQL. Use Partial DHL statements to ensure only valid data is committed. Use the Database.Savepoint method to enforce database integrity. Use the System.Limit class to monitor the current CPU governor limit consumption. A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of test allowing them to test independent requirements various types of Salesforce Cases. Which approach can efficiently generate the required data for each unit test?. Use @TestSetup with a viod method. Create test data before Test.startTest() in the unit test. Add @isTest(seeAllData=true) at the start of the unit test class. Create a nock using the Stud API. A developer must provide a custom user interface when users edit a Contact. Users must be able to use the interface in Salesforce Classic and Lightning Experience. What should the developer do to provide the custom user interface?. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightningcomponent in Lightning Experience. Override the Contact's Edit button with a Visualforce page in Salesforce Classic and a Lightning page inLightning Experience. Override the Contact's Edit button with a Lightning component in Salesforce Classic and a Lightningcomponent in Lightning Experience. Override the Contact's Edit button with a Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience. Which two are best practices when it comes to component and application event handling? (Choose two.). Reuse the event logic in a component bundle, by putting the logic in the helper. Use component events to communicate actions that should be handled at the application level. Handle low-level events in the event handler and re-fire them as higher-level events. Try to use application events as opposed to component events. Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV's package namespace. Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?. Declare the class and method using the public access modifier. Declare the class as global and use the public access modifier on the method. Declare the class as public and use the global access modifier on the method. Declare the class and method using the global access modifier. Which statement is true about developing in a multi-tenant environment?. Governor limits prevent apex from impactiong the performance of multiple tenants on the same instance. Apex sharing controls access to records from multiple tenants on the same instance. Global apex classes can be referenced from multiple tenants on the same instance. Org-level data security controls which users can see data from multiple tenants on the same instance. An after trigger on the Account object performs a DML update operation on all of the child Opportunities of an Account. There are no active triggers on the Opportunity object, yet a ''maximum trigger depth exceeded'' error occurs in certain situations. Which two reasons possibly explain the Account trigger firing recursively? (Choose two.). Changes to Opportunities are causing cross-object workflow field updates to be made on the Account. Changes to Opportunities are causing roll-up summary fields to update on the Account. Changes are being made to the Account during an unrelated parallel save operation. Changes are being made to the Account during Criteria Based Sharing evaluation. What are three techniques that a developer can use to invoke an anonymous block of code? (Choose three.). Use the SOAP API to make a call to execute anonymous code. Create a Visualforce page that uses a controller class that is declared without sharing. Run code using the Anonymous Apex feature of the Developer's IDE. Type code into the Developer Console and execute it directly. Create and execute a test method that does not specify a runAs() call. What can used to delete components from production?. A change set deployment with the delete option checked. An ant migration tool deployment with destructivechanges xml file and the components to delete in the package.xml file. A change set deployment with a destructivechanges XML file. An ant migration tool deployment with a destructivechanges XML file and an empty package.xml file. Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers). Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page. An org tracks customer orders on an Order object and the items of an Order on the Line Item object. The Line Item object has a MasterDetail relationship to the order object. A developer has a requirement to calculate the order amount on an Order and the line amount on each Line item based on quantity and price. What is the correct implementation?. Implement the line amount as a numeric formula field and the order amount as a roll-up summary field. Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order. Implement the Line amount as a currency field and the order amount as a SUM formula field. Write a process on the Line item that calculates the item amount and order amount and updates the filed on the Line Item and the order. A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?. Set 'Use the first value in the list as the default value' as True. Set a validation rule to enforce a value is selected. Mark the field as Required on the field definition. Mark the field as Required on the object's page layout. A Licensed_Professional__c custom object exist in the system with two Master-Detail fields for the following objects: Certification__c and Contact. Users with the 'Certification Representative' role can access the Certification records they own and view the related Licensed Professionals records, however users with the 'Salesforce representative' role report they cannot view any Licensed professional records even though they own the associated Contact record. What are two likely causes of users in the 'Sales Representative' role not being able to access the Licensed Professional records? Choose 2 answers. The organization's sharing rules for Licensed_Professional__c have not finished their recalculation process. The organization recently modified the Sales representative role to restrict Read/Write access to Licensed_Professional__c. The organization has a private sharing model for Certification__c, and Contact is the primary relationship in the Licensed_Professional__c object. The organization has a private sharing model for Certification__c, and Certification__c is the primary relationship in the Licensed_Professional__c object. What is a key difference between a Master-Detail Relationship and a Lookup Relationship. A Master-Detail Relationship detail record inherits the sharing and security of its master record. When a record of a master object in a Lookup Relationship is deleted, the detail records are also deleted. A Lookup Relationship is a required field on an object. When a record of a master object in a Master-Detail Relationship is deleted, the detail records are kept and not deleted. A developer created this Apex trigger that calls MyClass.myStaticMethod: trigger myTrigger on Contact(before insert) ( MyClass.myStaticMethod(trigger.new, trigger.oldMap); } The developer creates a test class with a test method that calls MyClass.mystaticMethod, resulting in 81% overall code coverage. What happens when the developer tries to deploy the trigger and two classes to production, assuming no other code exist?. The deployment fails because the Apex trigger has no code coverage. The deployment fails because no assertions were made in the test method. The deployment passes because the Apex code has required (>75%) code coverage. The deployment passes because both classes and the trigger were included in the deployment. An Approval Process is defined in the Expense_Item__c. A business rule dictates that whenever a user changes the Status to 'Submitted' on an Expense_Report__c record, all the Expense_Item__c records related to the expense report must enter the approval process individually. Which approach should be used to ensure the business requirement is met?. Create a Process Builder on Expense_Report__c with a 'Submit for Approval' action type to submit all related Expense_Item__c records when the criteria is met. Create two Process Builder, one on Expense_Report__c to mark the related Expense_Item__c as submittable and the second on Expense_Item__c to submit the records for approval. Create a Process Builder on Expense_Report__c to mark the related Expense_Item__c as submittable and trigger on Expense_item__c to submit the records for approval. Create a Process Builder on Expense_Report__c with an 'Apex' action type to submit all related Expense_Item__c records when the criteria is met. Universal Containers has large number of custom applications that were built using a third-party javaScript framework and exposed using Visualforce pages. The Company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience. What should the developer do to fulfill the business request in the quickest and most effective manner?. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications. Rewrite all Visualforce pages asLightning components. Set the attribute enableLightning to true in the definition. Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application. If apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which statement are true regarding governor limits? Choose 2 answers. The Apex governor limits might be higher due to the asynchronous nature of the transaction. The apex governor limits are reset for each iteration of the execute() method. The Apex governor limits are relaxed while calling the constructor of the Apex class. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction. 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?. Use the schema describe calls to determine if the logged-in users has access to the Account object. Use the without sharing keyword on the class declaration. Use the UserInfo Apex class to filter all SOQL queries to returned records owned by the logged-in user. Use the with sharing keyword on the class declaration. A developer identifies the following triggers on the Expense_c object: DeleteExpense, applyDefaultstoexpense validateexpenseupdate; The triggers process before delete, before insert, and before update events respectively. Which two techniques should the developer implement to ensure trigger best practice are followed?. Unify the before insert and before update triggers and use Process Builder for the delete action. Maintain all three triggers on the Expense__c object, but move the Apex logic out for the trigger definition. Create helper classes to execute the appropriate logic when a record is saved. Unify all three triggers in a single trigger on the Expense__c object that includes all events. 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?. Declare maxattempts as a member variable on the trigger definition. Declare maxattempts as a private static variable on a helper class. Declare maxattempts as a constant using the static and final keywords. Declare maxattempts as a variable on a helper class. What are three considerations when using the @InvocableMethod annotation in Apex? Choose 3 answers. A method using the @InvocableMethod annotation must define a return value. A method using the @InvocableMethod annotation can have multiple input parameters. A method using the @InvocableMethod annotation must be declared as static. A method using the @InvocableMethod annotation can be declared as Public or Global. Only one method using the @InvocableMethod annotqation can be defined per Apex class. A recursive transaction is limited by a DML statement creating records for these two objects: 1. Accounts 2. Contacts The Account trigger hits a stack depth of 16. Which statement is true regarding the outcome of the transaction?. The transaction fails only if the Contact trigger stack depth is greater or equal to 16. The transaction succeeds as long as the Contact trigger stack depth is less than 16. The transaction fails and all the changes are rolled back. The transaction succeeds and all the changes are committed to the database. Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient. The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called 'Global Address'. Which field should the developer ad to create the most efficient model that supports the business need?. Add a Master-Detail field on the Account object to the Global Address object. Add a Master-Detail field on the Global Address object to the Account object. Add a Lookup field on the Account object to the Global Address object. Add a Lookup field on the Global Address object to the Account object. A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debtAmount' should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers. Use the static keyword and assign its value in the class constructor. Use the final keyword and assign its value in the class constructor. Use the static keyword and assign its value in a static initializer. Use the final keyword and assign its value when declaring the variable. A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of new Apex helper class. Change Set deployment to production fails with the test coverage warning: 'Test coverage of selected Apex Trigger is 0%, at least 1% test coverage is required' What should the developer do to successfully deploy the new Apex trigger and helper class?. Create a test class and methods to cover the Apex trigger. Run the tests using the 'Run All Tests' method. Remove the falling test methods from the test class. Increase the test class coverage on the helper class. Universal Containers (UC) decided it will not to send emails to support personnel directly from Salesforce in the event that an unhandled exception occurs. Instead, UC wants an external system be notified of the error. What is the appropriate publish/subscribe logic to meet these requirements?. Publish the error event using the addError() method and have the external system subscribe to the event using CometD. Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD. Have the external system subscribe to the BatchApexError event, no publishing is necessary. Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system. While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org. How should the Developer overcome this problem?. Use Test.getStandardPricebookId() to get the standard PriceBook ID. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook. Use Test.loadData() and a Static Resource to load a standard Pricebook. Use @TestVisible to allow the test method to see the standard PriceBook. A developer has the following requirements: Calculate the total amount on an Order. Calculate the line amount for each Line Item based on quantity selected and price. Move Line Items to a different Order if a Line Item is not stock. Which relationship implementation supports these requirements?. Line Items has a Master-Detail field to Order and the Master can be re-parented. Line Item has a Lookup field to Order and there can be many Line Items per Order. Order has a Lookup field to Line Item and there can be many Line Items per Order. Order has a Master-Detail field to Line Item and there can be many Line Items per Order. Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a Master-Detail relationship with the standard Account object. Based on some internal discussion, the UC administrator tried to change the MasterDetail relationship to a Lookup relationship but was not able to do so. What is a possible reason that this change was not permitted?. The Account records contain Vendor roll-up summary fields. The Vendor object must use a Master-Detail field for reporting. The Vendor records have existing values in the Account object. The Account object is included on a workflow on the Vendor object. A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?. ApexPages.currentPage() .getParameters() .get('url_param'). ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4(). String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param')). String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param')). A developer needs to confirm that an Account trigger is working correctly without changing the organization's dat a. What would the developer do to test the Account trigger?. Use the Test menu on the developer Console to run all test classes for the account trigger. Use the New button on the Salesforce Accounts Tab to create a new Account record. Use the Open Execute Anonymous feature on the Developer Console to run an 'insert Account' DML statement. Use Deply from the Force.com IDE to deploy an 'insert Account' Apex class. Universal Containers stores the availability date on each Line Item of an Order and Orders are only shipped when all of the Line Items are available. Which method should be used to calculate the estimated ship date for an Order?. Use a CEILING formula on each of the Latest availability date fields. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order. Use a LATEST formula on each of the latest availability date fields. Use a Max Roll-Up Summary field on the Latest availability date fields. The values 'High', 'Medium', and 'Low' are Identified as common values for multiple picklist across different object. What is an approach a developer can take to streamline maintenance of the picklist and their values, while also restricting the values to the ones mentioned above?. Create the Picklist on each object and use a Global Picklist Value Set containing the Values. Create the Picklist on each object as a required field and select 'Display values alphabeticaly, not in the order entered'. Create the Picklist on each object and select 'Restrict picklist to the values defined in the value set. Create the Picklist on each and add a validation rule to ensure data integrity. A developer is tasked to perform a security review of the ContactSearch Apex class that exists in the system. Whithin the class, the developer identifies the following method as a security threat: List< Contact > performSearch(String lastName){ return Database.query('Select Id, FirstName, LastName FROM Contact WHERE LastName Like %'+lastName+'%); } What are two ways the developer can update the method to prevent a SOQL injection attack? Choose 2 answers. Use variable binding and replace the dynamic query with a static SOQL. Use the escapeSingleQuote method to sanitize the parameter before its use. Use a regular expression on the parameter to remove special characters. Use the @Readonly annotation and the with sharing keyword on the class. Universal Containers (UC) uses a custom object called Vendor. The Vendor custom object has a master-detail relationship with the standard Account object. Based on some internal discussions, the UC administrator tried to change the master-detail relationship to a lookup relationship, but was not able to do so. What is a possible reason that this change was not permitted?. The Account object does not allow changing a field type for a custom field. The organization wide default for the Vendor object is Public Read/Write. The Account object has a roll-up summary field on the Vendor object. Some of the Vendor records have null for the Account field. An Approval Process is defined In the Expense__item__c object. A business rule dictates that whenever a ... clients the Status to Submitted on an Expense_Item__c record related to the expense report must enter the approval process individually. A developers asked to explore if this automation can be implemented without writing any Apex code. Which statement is true regarding this automation request?. This can only be automated with Apex code. The developer can use a record triggered flow with Actions. This approval step cannot be automated and must be done manually. The developer can use Einstein Next Best Actions. A business has a proprietary Order Management System (OMS) that creates orders from their website and ... the order. When the order is created in the OMS, an integration also creates an order record in Salesforce ... relates it to the contact as identified by the email on the order. As the order goes through different stages in OMS, the integration also updates it in Salesforce. It is notified that each update from the OMS creates a new order record in Salesforce. Which two actions prevent the duplicate order records from being created in Salesforce? Choose 2 answers. Ensure that the order number in the OMS is unique. Use the order number from the OMS as an external ID. Use the email on the contact record as an external ID. Write a before trigger on the order object to delete any duplicates. A developer is asked to explore if this automation can be implemented without writing any Apex code. Which statement is true regarding this automation request?. This approval step cannot be automated and must be done manually. The developer can use Einstein Next Best Actions. The developer can use a record. The developer can use record triggered flow with Actions. The Account object in an organization has a master detail relationship to a child object called Branch. The following automations exist: * Rollup summary fields * Custom validation rules * Duplicate rules A developer created a trigger on the Account object. What two things should the developer consider while testing the trigger code? Choose 2 answers. Rollup summary fields can cause the parent record to go through Save. The trigger may fire multiple times during a transaction. Duplicate rules are executed once all DML operations commit to the database. The validation rules will cause the trigger to fire again. What are two best practices when it comes to Lightning Web Component events?. Use event.target to communicate data to elements that aren't in the same shadow tree. Use events configured with bubbles: false and composed:false. Use CustomEvent to pass data from a child to a parent component. Use event.detail to communicate data to elements in the same shadow tree. A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users. Which three things should the developer do to satisfy these requirements? Choose 3 answers. Add a dynamic action to the Account record page. Create a custom permission for the users. Create a Lightning web component. Add a dynamic action to the user's assigned page layouts. Create a dynamic form. A developer is asked to prevent anyone other than a user with Sales Manager profile from changing the Opportunity Status to Closed Lost if the lost reason is blank. Which automation allows the developer to satisfy this requirement in the most efficient manner?. A record trigger flow on the Opportunity object. An Apex trigger on the Opportunity object. approval process on the Opportunity object. An error condition formula on a validation rule on Opportunity. A developer has the following requirements: * Calculate the total amount on an Order. * Calculate the line amount for each Line Item based on quantity selected and price. * Move Line Items to a different Order if a Line Item is not in stock. Which relationship implementation supports these requirements on its own7. Line Item has a re-parentable master-detail field to Order. Order has a re-parentable master-detail field to Line Item. Line Item has a re-parentable lookup field to Order. Order has a re-parentable lookup field to Line Item. Universal Containers (UC) processes orders in Salesforce in a custom object, Crder_c. They also allow sales reps to upload CSV files with of orders at a time. A developer is tasked with integrating orders placed in Salesforce with UC's enterprise resource planning (ERP) system. 'After the status for an Craer__c is first set to 'Placed', the order information must be sent to a REST endpoint in the ERP system that can process ne order at a time. What should the developer implement to accomplish this?. Callout from an urare method called from a trigger. Callout from a Sarchabie class called from a scheduled job. Flow with 2 callout from an invocable method. Callout from a queseatie class called from a trigger. A company has a custom object, Sales, }_Help_Request__c, that has a Lookup relationship to Opportunity. The Seles Help Request__c has a mumber field, Number_ct_Hours__c, that represents the amount of time spent on the Sales_Help Request__C. A developer is tasked with creating a field, total_Hour2__c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request__c records related to that Opportunity. What should the developer use to implement this?. A roll-up summary field on the sales Help_Request__c object. A trigger on the Opportunity object. A roll-up summary field on the Opportunity object. A record-triggered flow on the Sales Help Request__c. Which code statement includes an Apex method named updateaccounts in the Class AccountCont rolles for use in a Lightning web component?. import updateAccounts from ‘AccountController’ ;. import updateAccounts from '@salesforce/apex/AccountController' ;. import updateAccounts from ‘AccountController.updateAccounts’ ;. import updateAccounts from '@salesforce/apex/AccountController.updateAccounts' ;. A developer is creating a Lightning web component to showa list of sales records. The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field. How should this be enforced so that the component works for both users without showing any errors?. Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component. Use Security.stripInaccessible to remove fields inaccessible to the current user. Use Lightning Data Service to get the collection of sales records. Use Lightning Locker Service to enforce sharing rules and field-level security. Ursa Major Solar has a custom object, serviceJob-o, with an optional Lookup field to Account called partner-service-Provider_c. The TotalJobs-o field on Account tracks the total number of serviceJob-o records to which a partner service provider Account is related. What is the most efficient way to ensure that the Total job_o field kept up to data?. Change TotalJob_o to a roll-up summary field. Create a record-triggered flow on ServiceJob_o. Create an Apex trigger on ServiceJob_o. Create a schedule-triggered flow on ServiceJob_o. A developer wants to improve runtime performance of Apex calls by caching result on the client. What is the most efficient way to implement this and follow best practices?. Decorate the server-side method with @AuraEnabled (total-true). Call the setStoeable () method on the action in the javaScript client-sidecode. Decorate the server-side method with @AuraEnabled (cacheable-true). Set a ciikie in the browser for use upon return to the page. Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a server Update platform event. The developer is working on a Lightning web component to display the information. import ( subscribe, unsubscribe, onError ) from 'lightning/empApi '. import ( subscribe, unsubscribe, onError ) from 'lightning/MessageChannel'. import ( subscribe, unsubscribe, onError ) from 'lightning/ServerUpdate'. import ( subscribe, unsubscribe, onError ) from 'lightning/pubsub'. What are two ways that a controller and extension can be specified on a Visualforce page? Choose 2 answers. a@pex:page=Account extends='myControllerExtension'. Qo apex:page standardController='Account' extensions='myControllerExtension''. apex:page controllers='Account, myControllerExtension''. apex:page controller='Account'' extensions='myControllerExtension'''. A developer is tasked with performing a complex validation using Apex as part of advanced business logic. certain criteria are met for a PurchaseOrder, the developer must throw a custom exception. What is the correct way for the developer to declare a class that can be used as an exception?. public class PurchaseOrderException implements Exception (). public class PurchaseOrderException extends Exception (). public class PurchaseOrder implements Exception (). public class PurchaseOrder extends Exception (). A developer needs to save a List of existing Account records named myAccounts to the database, but the records do not contain Salesforce Id values. Only the value of a custom text field configured as an External ID with an API name of Foreign_Key__c is known. Which two statements enable the developer to save the records to the database without an Id? (Choose two.). Upsert myAccounts Foreign_Key__c;. Upsert myAccounts(Foreign_Key__c);. Database.upsert (myAccounts, Foreign_Key__c);. Database.upsert(myAccounts).Foreign_Key__c;. The following Apex method is part of the ContactService class that is called from a trigger: public static void setBusinessUnitToEMEA(Contact thisContact){ thisContact.Business_Unit__c = 'EMEA' ; update thisContact; } How should the developer modify the code to ensure best practice are met?. Public static void setBusinessUnitToEMEA(List< Contact > contacts){for(Contact thisContact : contacts){thisContact.Business_Unit__c = 'EMEA' ;update contacts[0];}}. Public static void setBusinessUnitToEMEA(List contacts){for(Contact thisContact : contacts) {thisContact.Business_Unit__c = 'EMEA' ;}update contacts;}. Public static void setBusinessUnitToEMEA(Contact thisContact){List< Contact > contacts = new List< Contact >();contacts.add(thisContact.Business_Unit__c = 'EMEA');update contacts;}. Public void setBusinessUnitToEMEA(List contatcs){contacts[0].Business_Unit__c = 'EMEA' ;update contacts[0];}. A developer must create aShippingCalculatorclass that cannot be instantiated and must include a working default implementation of acalculatemethod, that sub-classes can override. What is the correct implementation of theShippingCalculatorclass?. Public abstract class ShippingCalculator {public override calculate() { /*implementation*/ }}. Public abstract class ShippingCalculator {public virtual void calculate() { /*implementation*/ }}. Public abstract class ShippingCalculator {public abstract calculate() { /*implementation*/ }}. Public abstract class ShippingCalculator {public void calculate() { /*implementation*/ }}. A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what defined for payments in the PaymentProcessor interface. public interface PaymentProcessor { void pay(Decimal amount); } Which is the correct implementation to use the PaymentProcessor interface class?. Public class CheckPaymentProcessor implements PaymentProcessor {public void pay(Decimal amount) {}}. Public class CheckPaymentProcessor implements PaymentProcessor {public void pay(Decimal amount);}. Public class CheckPaymentProcessor extends PaymentProcessor {public void pay(Decimal amount);}. Public class CheckPaymentProcessor extends PaymentProcessor {public void pay(Decimal amount) {}}. A developer needs to prevent the creation of Request_c records when certain conditions exist in the system. A RequestLogic class exists to checks the conditions. What is the correct implementation?. Trigger RequestTrigger on Request (after insert) {RequestLogic.validateRecords {trigger.new};}. Trigger RequestTrigger on Request (before insert) {RequestLogic.validateRecords {trigger.new};}. Trigger RequestTrigger on Request (before insert) {if (RequestLogic.isvalid{Request})Request.addError {'Your request cannot be created at this time.'};}. Trigger RequestTrigger on Request (after insert) {if (RequestLogic.isValid{Request})Request.addError {'Your request cannot be created at this time.'};}. A developer must create a DrawList class that provides capabilities defined in the Sortable and Drawable interfaces. public interface Sortable { void sort(); } public interface Drawable { void draw(); } Which is the correct implementation?. Public class DrawList implements Sortable, Implements Drawable {public void sort() { /*implementation*/}public void draw() { /*implementation*/}]. Public class DrawList extends Sortable, Drawable {public void sort() { /*implementation*/}public void draw() { /*implementation*/}}. Public class DrawList implements Sortable, Drawable {public void sort() { /*implementation*/}public void draw() { /*implementation*/}}. Public class DrawList extends Sortable, extends Sortable, extends Drawable {public void sort() { /*implementation*/ }public void draw() { /* implementation */}. Assuming that 'name; is a String obtained by an tag on a Visualforce page. Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name.noQuotes() + '%\'';List< Account > results = Database.query(query);. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + String.escapeSingleQuotes(name) + '%\'';List< Account > results = Database.query(query);. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name + '%\'';List< Account > results = Database.query(query);. String query = '%' + name + '%';List< Account > results = [SELECT Id FROM Account WHERE Name LIKE :query];. 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'?. FIND 'Universal Containers' IN Name Fields RETURNING leadjid, name), accounted, name), contacted, name). FIND Universal Containers' IN CompanyName Fietds RETURNING lead{ld. name), accounted, name), contacted, name). SELECT lead(id, name). accountOd, name), contacted, name) FROM Lead, Account, Contact WHERE Name = 'universal Containers'. SELECT Lead.id. Lead.Name, Account.Id, AccountName, Contacted, Contact.Name FROM Lead, Account, Contact WHERE CompanvName * Universal Containers'. A developer created a Lightning web component called statusComponent to be inserted into the Account record page. Which two things should the developer do to make the component available? (Shoose two). Add < isExposed > true< /isExposed > to the statusComponent.js-meta ml file. Add < target > lighting _RecordPage < /target > to the statusComponent.js-meta ml file. Add < masterLabel >Account< /master Label > to the statusComponent.js-meta ml file. Add< target > Lightning_RecordPage < /target > to the statusComponent.js file. Which statement generates a list of Leads and Contacts that have a field with the phrase 'ACME'?. List < sObject > searchList = (FIND '*ACME*' IN ALL FIELDS RETURNING Contact, Lead);. List< List < sObject > > searchList = (FIND '*ACME*' IN ALL FIELDS RETURNING Contact, Lead);. Map < sObject > searchList = (FIND '*ACME*' IN ALL FIELDS RETURNING Contact, Lead);. List< List < sObject > > searchList = (SELECT Name, ID FROM Contact, Lead WHERE Name like '?ME%');. The orderHelper class is a utility class that contains business logic for processing orders. Consider the following code snippet: A developer needs to create a constant named DELIVERY_MULTIFILTER with a value of 4.15. The value of the constant should not change at any time in the code. How should the developer declare the DELIVERY_MULTIFILTER constant to meet the business objectives?. Decimal DELIVERY_MULTIFILTER = 4.15;. Static final decimal DELIVERY_MULTIFILTER = 4.15;. Static decimal DELIVERY_MULTIFILTER = 4.15;. Constant decimal DELIVERY_MULTIFILTER = 4.15;. A developer wants to retrieve the Contacts and Users with the email address 'dev@uc.com'. Which SOSL statement should the developer use?. FIND {dev@uc.com} IN Email Fields RETURNING Contact (Email), User (Email). FIND {Email = 'dev@uc.com'} IN Contact, User. FIND {Email = 'dev@uc.com'} RETURNING Contact (Email), User (Email). FIND Email IN Contact, User FOR {dev2uc.com}. A developer must create a lightning component that allows users to input contact record information to create a contact record, including a salary__c custom field. what should the developer use, along with a lightning-record-edit form, so that salary__c field functions as a currency input and is only viewable and editable by users that have the correct field levelpermissions on salary__C?. < ligthning-input-field field-name='Salary__c' >< /lightning-input-field >. < lightning-formatted-number value='Salary__c' format-style='currency' >< /lightning-formatted-number >. < lightning-input type='number' value='Salary__c' formatter='currency' >< /lightning-input >. < lightning-input-currency value='Salary__c' >< /lightning-input-currency >. Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?. <aura:application access=”GLOBAL” extends = “ltng:outApp”> <aura: dependency resource=”c:accountList” /> </aura:application>. <aura:component access=”GLOBAL” extends = “ltng:outApp”> <aura: dependency resource=”c:accountList” /> </aura:application>. <aura:component access=”GLOBAL”> <aura: dependency resource=”c:accountList” /> </aura: component >. <aura:application access=”GLOBAL”> <aura: dependency resource=”c:accountList” /> </aura:application>. A Visual Flow uses an apex Action to provide additional information about multiple Contacts, stored in a custom class, contactInfo. Which is the correct definition of the Apex method that gets additional information?. @InvocableMethod(label='Additional Info')public List< ContactInfo > getInfo(List< Id > contactIds) { /*implementation*/ }. @InvocableMethod(label='additional Info')public static ContactInfo getInfo(Id contactId) { /*implementation*/ }. @invocableMethod(label)='Additional Info')public static List< ContactInfo > getInfo(List< Id > contactIds) { /*Implementation*/ }. @InvocableMethod(Label='additional Info')public ContactInfo(Id contactId) { /*implementation*/ }. An Apex method, getAccounts, that returns a List of Accounts given a search Term, is available for Lighting Web components to use. What is the correct definition of a Lighting Web component property that uses the getAccounts method?. @AuraEnabled(getAccounts, '$searchTerm')accountList. @wire(getAccounts, '$searchTerm')accountList;. @AuraEnabled(getAccounts, {searchTerm: '$searchTerm'})accountList;. @wire(getAccounts, {searchTerm: '$searchTerm'})accountList;. A Next Best Action strategy uses an Enhance Element that invokes an Apex method to determine a discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?. @InvocableMethodglobal static ListRecommendation getLevel(List< ContactWrapper > input){ /*implementation*/ }. @InvocableMethodglobal static List< List< Recommendation > > getLevel(List< ContactWrapper > input){ /*implementation*/ }. @InvocableMethodglobal List< List > getLevel(List input){ /*implementation*/ }. @InvocableMethodglobal Recommendation getLevel (ContactWrapper input){ /*implementation*/ }. A Lightning component has a wired property, searchResults, that stores a list of Opportunities. Which definition of the Apex method, to which the searchResults property is wired, should be used?. @AuraEnabled(cacheable=true)public static List< Opportunity > search(String term) { /* implementation*/ }. @AuraEnabled(cacheable=true)public List< Opportunity > search(String term) { /*implementation*/ }. @AuraEnabled(cacheable=false)public static List< Opportunity > search(String term) { /*implementation*/ }. @AuraEnabled(cacheable=false)public List< Opportunity > search(String term) { /*implementation*/ }. A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override. What is the correct implementation of the ShippingCalculator class?. public abstract class shippingCalculator { public abstract calculate() { /* implamantation */ } }. public abstract class shippingCalculator { public virtual void calculate() { /* implamantation */ } }. public abstract class shippingCalculator { public void calculate() { /* implamantation */ } }. public abstract class shippingCalculator { public override calculate() { /* implamantation */ } }. A lead developer creates an Apex interface called 'Laptop'. Consider the following code snippet: public class SilverLaptop { //code implementation } How can a developer use the Laptop Interface within the Silvertaptop class?. @Extends(class=Laptop'')public class SilverLaptop. public class SilverLaptop extends Laptop. @Interface (class=''Laptop'')public class SilverLaptop. public class Silverlaptop implements Laptop. A developer has two custom controller extensions where each has a save() method. Which save() method will be called for the following Visualforce page? < apex:page standardController =''Account'', extensions=''ExtensionA, ExtensionB'' > < apex:commandButton action =''{!save}'' value=''Save''/ > < /apex:page >. Runtime error will be generated. Standard controller save(). ExtensionB save(). ExtensionA save(). Given the code below: List<Account> aList = [SELECT Id FROM Account]; for ( Account a : aList ) { List<Contact> cList = [ SELECT Id FROM Contact WHERE AccountId =: a.Id]; } What should a developer do to correct the code so that there is no chance of hitting a governor limit. Rework the code and eliminate the for loop. combine the two SELECT statements into a single SOQL statement. Add a WHERE clause to the first SELECT SOQL statement. Add a LIMIT clause to the first SELECT SOQL statement. What is the result of the following code snippet? public void dowork(Account acct){ for(Integer i=0;i<=200; i++){ Insert acct; } }. 201 Accounts are inserted. 200 Accounts are inserted. 0 Accounts are inserted. 1 Account is inserted. As a part of class implementation a developer must execute a SOQL query against a large data ser based on the contact object. The method implementation is as follows. List<Contact> retrievedContact = [SELECT Id, Name, Description FROM Contact]; for (Contact ctLsContact : retrievedContact) { // perform field aplicate } Which two methods are best practice to implement heap size control for the above code? (Choose 2 Answers). Use the FOR UPDATE option on the SOQL query to lock down the records retrieved. Use visual keyword when declaring the retrieve variable. Use a SOQL FOR loop, to chunk the result set in batches of 200 records. Use WHERE clauses on the SOQL query to reduce the number of records retrieved. Given the following block code: try{ List retrievedRecords = [SELECT Id FROM Account WHERE Website = null]; } catch(Exception e) { //manage exception logic } What should a developer do to ensure the code execution is disrupted if the retrievedRecordslist remains empty after the SOQL query?. Check the state of the retrieveRecords variable and throw a custom exception if the variable is empty. Check the state of the retrievedRecords variable and use System.assert(false) if the variable is empty. Check the state of the retrievedRecords variable and access the first element of the list if the variable is empty. Replace the retrievedRecords variable declaration from ftount to a single Account. Refer to the code snippet below: import fetchOpps from ‘@salesforce/apex/OpportunitySearch.fetchOpportunities’ : @wire (fetchOpps) opportunities; When a Lightning web component is rendered, a list of apportunities that match certain criteria shopuld be retrievved from the database and displayed to the end user. Which three Considerations must the developer implement to make the method available within the Lightning web component? Choose 3 answer. The method must specify the (cacheable-true) attribute. The method must specify the (continuation-true) attribute. The method must be annotaled with true Invocablemethod annolation. The method cannot mutate the result set retrieved from the database. The method must be annotated with the AuraEnabled annolation. A developer Edition org has five existing accounts. A developer wants to add 10 more accounts for ... The following code is executed in the Developer Console using the Executor Anonymous window: Account myAccount = new Account (Name = ‘MyAccount’); Insert myAccount; Integer x = 1; List<Account> newAccounts = new List<Account>(); do { Account acct = new Account (Name = ‘New Account ’ + x++); newAccounts.add(acct); } while (x < 10); How many total accounts will be in the org after this code is executed?. 5. 6. 10. 15. A developer wrote the following two classes: public with sharing class StatusFetcher { private Boolean active = true; private Boolean InActive () { return active; } public with sharing class Calculator { public void doCalculations() { StatusFetcher aFetcher = new StatusFetcher(); If ( aFetcher.isActive() ) { // do calculations here } } The StatusFetcher class successfully compiled and saved. However, the Calculator class has a compile time error. How should the developer fix this code?. Change the class declaration for the statusFetcher class to public with inherited sharing. Make the isActive method in the StatusFetcher class public. Make the doCalculations method in the Calculation class private. Change the class declaration for the Calculator class to public with inherited sharing. code below deserializes input into a list of Accounts. public class AcctCreator { public void insertAccounts() { String acctsJson = getAccountsJson (); List<Account> accts = (List<Account>) JSON.deserialize (acctsJson, List<Account>.class); //DML to insert accounts } // … Other code including getAccountJson implementation } Which code modification should be made to insert the Accounts so that field-level security is respected?. 01: Public with sharing class AcctCreator. 05: If (SobjectType.Account, isCreatable()). 05: Accts = database.stripinaccesible (accts, Database. CREATEABLE);. 05: SobjectAcessDecision sd= Security,stripINaccessible(AccessType,CREATABLE,. A developer is building custom search functionality that uses SOSL to search account and contact records that match search terms provided by the end user. The feature is exposed through a Lightning web component, and the end user is able to provide a list of terms to search. Consider the following code snippet: @AuraEnabled public static List<List<sObject>> searchTerms ( List<String> termList ) { List<List<sObject>> result = new List<List<sObject>>() ; for ( String term : termList ) { result.addAll ( [ FIND : term IN ALL FIELDS RETURNING Account (Name), Contact(FirstName, LastName) ] ) ; } return result; } What is the maximum number of search terms the end user can provide to successfully execute the search without exceeding a governor limit?. 20. 150. 200. 2000. The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records: @AuraEnabled public void static updateLeads() { for (Lead thisLead : [SELECT Origin__c FROM Lead] ) { thisLead.LeadSource = thisLead.Orgin; update thisLead; } } Which governor limit will likely be exceeded within the Apex transaction?. Total number of DML statement issued. Total number of SOQL queries issued. Total number of records retrieved by SOQL queries. Total number of records processed as a result of DML statements. Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement. for ( Account a : Trigger.new ) { if ( a.AnnualRevenue > 1000000 ) { List<Opportunity> oppList = [SELECT Id FROM Opportunity WHERE accountId = : a.Id]; If ( oppList.size() == 0 ) { Opportunity oppty = new Opportunity (Name = a.name, StageName = ‘Prospecting’, closeDate = System.today().addDays(30) ) ; insert oppty; } } Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors. Which two actions should the developer take to fix the code segment shown above? Choose 2 answers. Check if all the required fields for Opportunity are being added on creation. Use Database.query to query the opportunities. Move the DML that saves opportunities outside the for loop. Query for existing opportunities outside the for loop. AW Computing (AWC) handles orders In Salesforce and stores Its product Inventory In after, inventory__c, on a custom object, Product__c. When en order for a Product__c Is placed, the inventory__c field Is reduced by the quantity of the order using an Apex trigger. Public void reduceInventory ( Id prodId, Integer qty ) { Integer newInventoryAmt = getNewInventoryAmt (prodId, qty); Product__c p = new Product__c (Id = prodId, Iventory__c = newInventoryAmt); update p; // code goes here } AWC wants the real-time inventory reduction for a product to be sent to many of Its external systems, Including some future systems the company Is currently planning. What should a developer add to the code at the placeholder to meet these requirements?. InventoryReductionEvent__e ev = new InventoryReductionEvent__e ( ProductId__c = prodId, Reduction__c = qty ); EventBus.publish(ev);. InventoryReductionEvent__e ev = new InventoryReductionEvent__e ( ProductId__c = prodId, Reduction__c = qty ); Insert ev;. InventoryReductionEvent__c ev = new InventoryReductionEvent__c ( ProductId__c = prodId, Reduction__c = qty ); EventBus.publish(ev);. InventoryReductionEvent__c ev = new InventoryReductionEvent__c ( ProductId__c = prodId, Reduction__c = qty ); Insert ev;. A developer needs to implement a custom SOAP Web Service that is used by an external Web Application. The developer chooses to Include helper methods that are not used by the Web Application In the Implementation of the Web Service Class. Which code segment shows the correct declaration of the class and methods?. global class WebServiceClass { private Boolean helperMethod () { /* implementation … */ } global String updateRecords() { /* implementation … */ } }. webservice class WebServiceClass { private Boolean helperMethod () { /* implementation … */ } global static String updateRecords() { /* implementation … */ } }. global class WebServiceClass { private Boolean helperMethod () { /* implementation … */ } webservice static String updateRecords() { /* implementation … */ } }. webservice class WebServiceClass { private Boolean helperMethod () { /* implementation … */ } webservice static String updateRecords() { /* implementation … */ } }. Given the following code snippet, that is part of a custom controller for a Visualforce page: public void updateContact (Contact thisContact) { thisContact.Is_Active__c = false; try { update thisContact; } catch (Exception e) { String errorMessage = ‘An error occurred while updating the Contact. ‘ + e.getMessage() ) ApexPages.addmessage (new ApexPages.message (ApexPages.severity.FATAL, errorMessage )) ; } } In which two ways can the try/catch be enclosed to enforce object and field-level permissions and prevent the DML statement from being executed if the current logged-in user does not have the appropriate level of access? Choose 2 answers. Use if (Schema, sobjectType, Contact, isUpdatable ( ) ). Use if (Schema , sobjectType. Contact. Field, Is_Active_c. is Updateable ( ) ). Use if (Schema.sObjectType.Contact.isAccessible ( ) ). Use if (thisContact.Owner = = UserInfo.getuserId ( ) ). Refer to the following code snippet for an environment has more than 200 Accounts belonging to the Technology' industry: for (Account thisAccount : [SELECT Id, Industry FROM Account LIMIT 150] ) { if ( thisAccount.Industry == ‘Technology’ ) { thisAccount.Is_Tech__c = true; } Update thisAccount; } When the code execution, which two events occur as a result of the Apex transaction? When the code executes, which two events occur as a result of the Apex transaction? Choose 2 answers. If executed in an asynchronous context, the apex transaction is likely to fall by exceeding the DML governor limit. The Apex transaction succeeds regardless of any uncaught exception and all processed accounts are updated. The Apex transaction fails with the following message. 'SObject row was retrieved via SOQL without querying the requested field Account.Is.Tech__c''. If executed In a synchronous context, the apex transaction is likely to fall by exceeding the DHL governor limit. Refer to the following code that runs in an Execute Anonymous block: for(List<Lead> theseLeads : [ SELECT Lastname, Company, Email FROM Lead LIMIT 20000] ) { for( Lead thisLead : theseLeads) { if ( thisLead.Email == null ) thisLead.Email = assignGenericemail( thisLead.Lastname, thisLead.Company); } Database.Update (theseLeads, false); } In an environment where the full result set is returned, what is a possible outcome of this code?. The total number of records processed as a result of DML statements will be exceeded. The transaction will succeed and the first ten thousand records will be committed to the database. The total number of DML statements will be exceeded. In an environment where the full result set is returned, what is a possible outcome of this code?. How many accounts will be inserted by the following block of code? for(Integer i = 0 ; i < 500; i++) { Account a = new Account(Name='New Account ' + i); insert a; }. 150. 0. 500. 100. A developer must modify the following code snippet to prevent the number of SOQL queries issued from exceeding the platform governor limit. public class without sharing OpportunityService( public static List< OpportunityLineItem > getOpportunityProducts(Set< Id > opportunityIds) { List< OpportunitylineItem > oppLineItems = new List< OpportunityLineItem >(); for(Id thisOppId : opportunityIds){ oppLineItems.addAll( [Select Id FROM OpportunityLineItems WHERE OpportunityId = :thisOppId)]; } return oppLineItems; } } The above method might be called during a trigger execution via a Lightning component. Which technique should be implemented to avoid reaching the governor limit?. Use the System.Limits.getQueries() method to ensure the number of queries is less than 100. Use the System.Limits.getlimitQueries() method to ensure the number of queries is less than 100. Refector the code above to perform the SOQL query only if the Set of opportunityIds contains less 100 Ids. Refactor the code above to perform only one SOQL query, filtering by the Set of opportunityIds. What will be the output in the debug log in the event of a QueryExeption during a call to the @query method in the following Example? class myClass { class CustomException extends QueryException { } public static Account aQuery () { Account theAccount; try { System.debug ( ‘Querying Accounts.’ ); theAccount = [SELECT Id FROM Account WHERE CreatedDate > TODAY]; } catch (CustomException eX) { system.debug(‘Custom Exception.’); } catch (QueryException eX) { system.debug(‘Query Exception.’); finally { system.debug (‘Done.’); } return theAccount; } }. Querying Accounts. Query Exception. Querying Accounts. Custom Exception. Querying Accounts. Query Exception. Done. Querying Accounts. Custom Exception Done. Given the following trigger implementation: trigger leadTrigger on Lead (before update) { final ID BUSINESS_RECORDTYPEID = '012500000009Qad'; for(Lead thisLead : Trigger.new) { if (thisLead.Company != null && thisLead.RecordTypeId != BUSINESS_RECORDTYPEID) { thisLead.RecordTypeId = BUSINESS_RECORDTYPEID; } } } The developer receives deployment errors every time a deployment is attempted from Sandbox to Production. What should the developer do to ensure a successful deployment?. Ensure BUSINESS_RECORDTYPEID is retrieved using Schema.Describe calls. Ensure a record type with an ID of BUSINESS_RECORDTYPEID exists on Production prior to deployment. Ensure BUSINESS_RECORDTYPEID is pushed as part of the deployment components. Ensure the deployment is validated by a System Admin user on Production. A developer created a Visualforce page and custom controller to display the account type field as shown below. Custom controller code: public class customCtrlr{ private Account theAccount; public String actType; public customCtrlr() { theAccount = [SELECT Id, Type FROM Account WHERE Id=: apexPages.currentPage().getParameters().get('id')]; actType = theAccount.Type; } } Visualforce page snippet: The Account Type is {!actType} The value of the account type field is not being displayed correctly on the page. Assuming the custom controller is property referenced on the Visualforce page, what should the developer do to correct the problem?. Add a getter method for the actType attribute. Change theAccount attribute to public. Convert theAccount.Type to a String. Add with sharing to the custom controller. Consider the following code snippet: public static List<Lead> obtainAllFields (Set<Id> leadsIds) { List<Lead> result = new List<Lead> (); for (Id leadId : leadsIds) { result.add( [SELECT FIELDS (ALL) FROM Lead WHERE Id = :leadId] ); } return result; } Given the multi-tenant architecture of the Salesforce platform, what Is a best practice a developer should Implement and ensure successful execution of the method?. Avoid executing queries without a limit clause. Avoid returning an empty List of records. Avoid using variables as query filters. Avoid performing queries inside for loops. Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry: for (Account thisAccount : [Select Id, Industry FROM Account LIMIT 250] ) { if (thisAccount.Industry == ‘Technology’ ) { thisAccount.Is_Tech__c = true; } update thisAccount; } which three statements are accurate about debug logs? Choose 3 answers. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels. The maximum size of a debug log is 5 MB. Only the 20 most recent debug logs for a user are kept. Debug logs can be set for specific users, classes, and triggers. System debug logs are retained for 24 hours. A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?. Public class CreditcardPayment extends Payment {public override void makePayment(Decimal amount) { /*implementation*/ }}. Public class CreditCardPayment implements Payment {public virtual void makePayment(Decimal amount) { /*implementation*/ }}. Public class CreditCardPayment extends Payment {public virtual void makePayment(Decimal amount) { /*implementation*/ }}. Public class CreditCardPayment implements Payment {public override void makePayment(Decimal amount) { /*Implementation*/ }}. While writing an Apex class that creates Accounts, a developer wants to make sure that all required fields are handled properly. Which approach should the developer use to be sure that the Apex class works correctly?. Include a try/catch block to the Apex class. Perform a code review with another developer. Run the code in an Execute Anonymous block. Add the business logic to a test class. A developer is debugging the following code to determinate why Accounts are not being created Account a = new Account(Name = 'A'); Database.insert(a, false); How should the code be altered to help debug the issue?. Add a System.debug() statement before the insert method. Add a try/catch around the insert method. Set the second insert method parameter to TRUE. Collect the insert method return value a Saveresult variable. A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user. How can the developer make sure that validation rule violations are displayed?. Add custom controller attributes to display the message. Include < apex:messages > on the Visualforce page. Use a try/catch with a custom exception class. Perform the DML using the Database.upsert() method. What writing an Apex class, a developer warts to make sure that all functionality being developed Is handled as specified by the requirements. Which approach should the developer use to be sure that the Apex class is working according to specification?. Create a test class to execute the business logic and run the test in the Developer Console. Include a savepoint and Database,rollback. Include a try/catch block to the Apex class. Run the code in an Execute Anonymous block n the Deceloper Consider. A developer created a new trigger that inserts a Task when a new Lead is created. After deploying to production, an outside integration chat reads task records is periodically reporting errors. Which change should the developer make to ensure the integration is not affected with minimal impact to business logic?. Deactivate the trigger before the integration runs. Use a try-catch block after the insert statement. Remove the Apex class from the integration user's profile. Use the Database method with all or None set to false. Considering the following code snippet: public static void insertAccounts (List<Account> theseAccounts) { for (Account thisAccount : theseAccounts) { If (thisAccount.website == null) { thisAccount.website = ‘https://www.demo.com’ ; } } Update theseAccounts; } When the code executes a DML exception is thrown. How should the developer modify the code to ensure exceptions are handled gracefully?. Implement a try/catch block for the DML. Remove null items from the list if Accounts. Implement the upsert DML statement. Implement Change Data Capture. Given the following Anonymous Block: List<Case> casesToUpdate = new List<Case>(); for (Case thisCase : [SELECT Id, Status FROM Case LIMIT 50000]) { thisCase.Status = ‘Working’ ; casesToUpdate.add(thisCase); } try { Database.update(casesToUpdate, false); } catch (Exception e) { System.debug(e.getMessage()); } Which one do you like? What should a developer consider for an environment that has over 10,000 Case records?. The transaction will fail due to exceeding the governor limit. The try/catch block will handle any DML exceptions thrown. The transaction will succeed and changes will be committed. The try/catch block will handle exceptions thrown by governor limits. A business implemented a magnification plan to encourage its customers to watch some educational videos.Customers can watch videos over several days, and their progress is recorded. Award points are granted tocustomers for all completed videos. When the video is marked as completed in Salesforce, an external webservice must be called so that points can be awarded to the user. A developer implemented theserequirements in the after update trigger by making a calf to an external web service. However, aSystem.CalloutException is occurring. What should the developer do to fix this error?. Write a REST service to integrate with the external web service. Replace the after update trigger with a before insert trigger. Surround the external call with a try-catch block to handle the exception. Move the callout to an asynchronous method with structure (callout=true) annotation. Universal Containers stores Orders and Line Items in Salesforce. For security reason, financial representatives are allowed to see information on the Order such as order amount, but they are not allowed to see the Line items on the Order. Which type of relationship should be used?. Lookup. Direct Lookup. Indirect lookup. Master Detail. A developer Is Integrating with a legacy on-premise SQL database. What should the developer use to ensure the data being Integrated is matched to the right records in Salesforce?. Lookup field. External ID field. Formula field. External Object. A large corporation stones Orders and Line Items In Salesforce for different lines of business. Users are a.. see Orders across the entire organization, but, for security purposes, should only be able to see the Line If Orders in their line of business. Which type of relationship should be used between Line Items and Orders?. Master-Detail. Lookup. Direct Lookup. Indirect Lookup. Universal Containers has an order system that uses on Order Number to identify an order for customers service agents. Order records will be imported into Salesforce. How should the 'Order Number field be defined in Salesforce. Lookup. Direct Lookup. Number with External ID. Indirect Lookup. A developer writes a single trigger on the Account object on the after insert and after update events. A workflow rule modifies a field every time an Account is created or updated. How many times will the trigger fire if a new Account is inserted, assuming no other automation logic is implemented on the Account?. 4. 1. 2. 8. Refer to the following Apex code: Integer x = 0; do { x = 1; x ++; } while ( x < 1 ) ; System.debug(x); What is the value of x when it is written to the debug log?. 0. 1. 2. 3. A developer considers the following snippet of code: Boolean isOK; Integer x; String theString = ‘Hello’; If ( isOK == false && theString == ‘Hello’ ) { X = 1; } else if ( isOK == true && theString == ‘Hello’ ) { X = 2; } else if ( isOK != null && theString == ‘Hello’ ) { X = 3; } else { X= 4; } Based on this code, what is the value of x?. 2. 1. 3. 4. What is the maximum number of SOQL queries used by the following code? List aList = [SELECT Id FROM Account LIMIT 5]; for (Account a : aList){ List cList = [SELECT Id FROM Contact WHERE AccountId = :a.Id); }. 5. 6. 1. 2. Which two types of process automation can be used to calculate the shipping cost for an Order when the Order is placed and apply a percentage of the shipping cost of some of the related Order Products? Choose 2 answers. Flow Builder. Process Builder. Workflow Rule. Approval Process. Which two process automations can be used on their own to send Salesforce Outbound Message? Choose 2 answers. Flow Builder. Process Builder. Workflow Rule. Strategy Builder. Which process automation should be used to post a message to Chatter without using Apex code?. Flow Builder. Entitlement Process. Strategy Builder. Outbound Message. Which process automation should be used to send an outbound message without using Apex code?. Flow Builder. Process Builder. Workflow Rule. Approval Process. A developer needs to implement the functionality for a service agent to gather multiple pieces of informationfrom a customer in order to send a replacement credit card. Which automation tool meets these requirements?. Flow Builder. Process Bulder. Approval Process. Lightning Component. A credit card company needs to Implement the functionality for a service agent to process damaged creditcards. When the customers call In, the service agent must gather many pieces of information Is tasked toImplement this functionality. What should the developer use to satisfy this requirement In the most efficient manner?. Flow Builder. Approval Process. Apex Trigger. Lightning Component. A company wants to implement a new call center process for handling customer service calls. It requiresservice reps to ask for the caller’s account number before proceeding with the rest of their call script.Following best practices, what is the optimal approach to satisfy this requiremnt?. Flow Builder. Apex trigger. Approvals. Einstein Next Best Action. Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two customobjects; Job c acting as the master object, Job application.__: acting as the detail. What is the recommendedtool a developer should use to meet the business requirement?. Record-triggered flow. Apex trigger. Formula field. Process Builder. Which declarative process automation feature supports iterating over multiple records?. Flows. Workflow rules. Approval Process. Validation Rules. As part of a data cleanup strategy, AW Computing wants to proactively delete associated opportunity records when the related Account is deleted. Which automation tool should beused to meet this business requirement?. Record-Triggered Flow. Workflow Rules. Process Builder. Scheduled job. Managers at Universal Containers want to ensure that only decommissioned containers are able to bedeleted in the system. To meet the business requirement a Salesforce developer adds ^Decommissioned' asa picklist value for the Status__: custom field within the Contact__c object. Which tool should the developeruse to enforce only Container records with a status of 'Decommissioned' can be deleted?. After record-triggered flow. Before record-triggered flow. Validation rule. Apex trigger. Universal Container wants Opportunities to no longer be editable when reaching the Closed/Won stage. How should a developer accomplish this?. Use flow Builder. Use a validation rule. Use the Process Automation setting. Mark fields as read-only on the page layout. The sales management team at Universal Container requires that the Lead Source field of the Lead record bepopulated when a.. converted. What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?. Use a validation rule. Create an after trigger on Lead. Use a formula field. Use Lead Conversation field mapping. 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?. workflow Rule. Process Builder. Validation Rule. Formula Field. Universal Containers has implemented an order management application. Each Order can have one or moreOrder Line items. The Order Line object is related to the Order via a master-detail relationship. For eachOrder Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered. What is the best practice to get the sum of all Order Line item totals on the Order record?. Apex trigger. Formula field. Roll-up summary field. Quick action. Universal Container use a simple order Management app. On the Order Lines, the order line total iscalculated by multiplying the item price with the quantity ordered. There is a Master-Detail relationshipbetween the Order and the Order Lines object. What is the practice to get the sum of all order line totals onthe order header?. Apex Trigger. Process Builder. Roll-Up Summary Field. Declarative Roll-Up Summaries App. A developer has a requirement to create an Order When an Opportunity reaches a 'Closed-Won' status. Which tool should be used to implement this requirement?. Lightning Component. Apex trigger. Process Builder. Lightning. Universal Containers (UC) is developing a process for their sales teams that requires all sales reps to gothrough a set of scripted steps with each new customer they create. In the first steps of collecting information,UC’s ERP system must be checked via as a REST endpoint to see if the customerexists. If the customerexists, the data must be presented to the sales rep in Salesforce. Which two should a developer implement to satisfy the requirements? Choose2 answer. Flow. Future method. Invocable method. Trigger. Universal Container* decides to use purely declarative development to build out a new Salesforce application. Which two options can be used to build out the business logic layer for this application? Choose 2 answer. Record-Triggered flow. Validation Rules. Batch Jobs. Remote Actions. A developer at Universal Containers is taked with implementing a new Salesforce application that bwill bemaintained completely by their company’s Salesforce administrator. Which two options should be consideredfor buildig out the business logic layerof the application? Chosse 2 answer. Record-Triggered flows. Validation Rules. Unvocable Moorche. Actions. Scheduled. Universal Container uses Service Cloud with a custom field, stage_c, on the Case object. Management wantsto send a follow-up email reminder 6 hours after the stage_c field is set to ''; Waiting on customer'' The ....Administrator wants to ensure the solution used is bulk safe. Which two automation tools should a developerrecommend to meet these business requirements? Choose 2 answers. Record_Triggered Flow. Scheduled Flow. Einstein Next Best Action. Process Builder. Universal Containers has created a unique process for tracking container repairs. A custom field, status__c,has been created within the container__c custom object. A developer is tasked with sending notifications tomultiple external systems every time the value of the status__picklist changes. Which two tools should the developer use to meet the business requirement and ensure low maintenance ofthe solution? Choose 2 answers. Record-Triggered flow. Platform event. Apex callouts. Apex trigger. Universal Containers wants Opportunities to no longer be editable when it reaches the Closed/Won stage. Which two strategies can a developer use to accomplish this? Choose 2 answers. Use a trigger. Use a validation rule. Use an after-save flow. Use the Process Automation settings. When a user edits the postal Code on an Account, a custom Account text field named. Timezone‘ must beupdated based on the values in a PostalCodeToTimezone_c custom ogject. Which two automationtools canbe used to implement this feature? Choose 2 answers. Fast field Updates record-triggered flow. Account trigger. Quick actions. Approval process. Universal Containers decides to use purely declarative development to build out a new Salesforce application. Which three options can be used to build out the business logic layer for this application? Choose 3 answers. Process builder. Flow Builder. Validation Rules. Triggers. Apex Class. Which three process automations can immediately send an email notification to the owner of an Opportunitywhen its Amount is changed to be greater than $10,000? Choose 3 answers. Process Builder. Workflow Rule. Approval Process. Escalation Rule. Flow Builder. Which three operations affect the number of times a trigger can fire? Choose 3 answers. Process Flows. Workflow Rules. Roll-Up Summary fields. Email messages. Criteria-based Sharing calculations. Universal Containers decides to use exclusively declarative development to build out a new Salesforceapplication. Which three options should be used to build out the database layer for the application? Choose 3 answers. Relationships. Roll-Up Summaries. Custom Objects and Fields. Triggers. Process Builder. A developer of Universal Containers is tasked with implementing a new Salesforce application that must beable to by their company's Salesforce administrator. Which three should be considered for building out the business logic layer of the application? Choose 3 answers. Process Builder. Workflows. validation Rules. Invocable Actions. Scheduled Jobs. The Salesforce Administrator created a custom picklist field, Account_status_c, on the a Account object. This picklist has possible values of Inactive'' and Active? As part of a new business process, management wants to ensure an opportunity record is created only for Accounts marked as 'Active'. A developer is asked to implement this business requirement. Which two automation tools should be used to fulfill the business need? Choose 2 answers. Salesforce Flow. Process Builder. Approval Process. Workflow Rules. |