A credit card company needs to implement the functionality for a service agent to process damaged or stolen credit cards. When the customers call in, the service agent must gather many pieces of information. A developer is tasked to implement this functionality.
What should the developer use to satisfy this requirement in the most efficient manner?
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
Which Lightning code segment should be written to declare dependencies on a Lightning component, c:accountList, that is used in a Visualforce page?
A)
B)
C)
D)
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?
The sales management team at Universal Container requires that the Lead Source field of the Lead record be populated when a.. converted.
What should be done to ensure that a user populates the Lead Source field prior to converting a Lead?
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?
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?
A developer deployed a trigger to update the status__c of Assets related to an Account when the Account’'s status changes and a nightly integration that updates Accounts in bulk has started to fail with limit failures.
What should the developer change about the code to address the failure while still having the code update all of the Assets correctly?
Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order 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?
Which three resources in an Aura component can contain JavaScript functions? Choose 3 answers
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?
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?
A developer considers the following snippet of code:
Based on this code, what is the value of x?
Assuming that naze is 8 String obtained by an
‘Choose 2 answers
A)
B)
C)
D)
Which three statements are true regarding custom exceptions in Apex? (Choose three.)
niversal 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?
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?
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?
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 ogject.
Which two automationtools can be used to implement this feature?
Choose 2 answers
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
Developers at Universal Containers (UC) use version control to share their code changes, but they notice that when they deploy their code to different environments they often have failures. They decide to set up Continuous Integration (CI).
What should the UC development team use to automatically run tests as part of their CI process?
How does the Lightning Component framework help developers implement solutions faster?
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?
A)
B)
C)
D)
The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:
Which governor limit will likely be exceeded within the Apex transaction?
A developer migrated functionality from JavaScript Remoting to a Lightning web component and wants to use the existing getOpportunities() method to provide data.
What to do now?
A business has a proprietary Order Management System (OMS) that creates orders from their website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record in Salesforce and relates it to the contact as identified by the email on the order. As the order goes through different stages in the OMS, the integration also updates It in Salesforce. It is noticed that each update from the OMS creates a new order record in Salesforce.
Which two actions will prevent the duplicate order records from being created in Salesforce?
Choose 2 answers
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?
While working in a sandbox, an Apex test fails when run in the Test Runner. However, executing the Apex logic in the Execute Anonymous window succeeds with no exceptions or errors.
Why did the method fail in the sandbox test framework but succeed in the Developer Console?
In the following example, which starting context will mymethod execute it is invoked?
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
Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
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
Given the following code snippet, that is part of a custom controller for a Visualforce page:
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
A developer created these three Rollup Summary fields in the custom object, Project__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?
An Apex method, getAccounts, that returns a list of Accounts given a searchTern, is available for Lightning Web
Components to use.
What is the correct definition of a Lightning Web Component property that uses the getAccounts method?
A)
B)
C)
D)
When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?
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?
A lead developer creates an Apex interface called "Laptop". Consider the following code snippet:
How can a developer use the Laptop Interface within the Silvertaptop class?
Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers
Universal Containers has an order system that uses an Order Number to identify an order for customers and service agents. Order records will be imported into Salesforce.
How should the Order Number field be defined in Salesforce?
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?
Which statement describes the execution order when trigger are associated to the same object and event?
What should a developer do to check the code coverage of a class after running all tests?
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
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?
A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object,
Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records.
hich two approaches can the developer use to ensure Pricing _Structure__c records are available when the test class is executed?
Choose 2 answers
A developer needs to create a baseline set of data (Account, Contacts, Products, Assets) for an entire suite allowing them to test independent requirements for various types of Salesforce Cases.
Which approach can efficiently generate the required data for each unit test?
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?
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?
What are two ways a developer can get the status of an enquered job for a class that queueable interface? Choose 2 answers
Which two are phases in the Aura application event propagation framework? Choose 2 answers
n org has an existing flow that creates an Opportunity with an Update Records element. A developer must update the flow to aiso create a ‘Contact and store the created Contact's 1D on the Opportunity.
Which update must the developer make in the flow?
What writing an Apex class, a developer warts to make sure thai 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 tospecification?
When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
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
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?