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?
A developer created these three Rollup Summary fields in the custom object, Project_ct,
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?
What are two benefits of using declarative customizations over code?
Choose 2 answers
A developer is alerted to an issue with a custom Apex trigger that is causing records to be duplicated.
What is the most appropriate debugging approach to troubleshoot the issue?
A software company is using Salesforce to track the companies they sell their software to in the Account object. They also use Salesforce to track bugs in their software with a custom object, Bug__c.
As part of a process improvement initiative, they want to be able to report on which companies have reported which bugs. Each company should be able t
report multiple bugs and bugs can also be reported by multiple companies.
What is needed to allow this reporting?
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
Universal Containers wants to automatically assign new cases to the appropriate support representative based on the case origin. They have created a custom field on the Case object to store the support representative name.
What is the best solution to assign the case to the appropriate support representative?
Which annotation should a developer use on an Apex method to make it available to be wired to a property in a Lightning web component?
Which code statement includes an Apex method named updateaccounts in the Class AccountCont rolles for use in a Lightning web component?
A)
B)
C)
D)
In the following example, which starting context will mymethod execute it is invoked?
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?
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 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
Given the following Apex statement:
What occurs when more than one Account is returned by the SOQL query?
A developer wrote Apex code that calls out to an external system. How should a developer write the test to provide test coverage?
In the following example, which sharing context will myMethod execute when it is invoked?
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 considers the following snippet of code:
Based on this code, what is the value of x?
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?
When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
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?
Which three operations affect the number of times a trigger can fire?
Choose 3 answers
When the code executes, a DML exception is thrown.
How should a developer modify the code to ensure exceptions are handled gracefully?
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?
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?
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?
How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?
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?
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?
How can a developer check the test coverage of active Process Builder and Flows deploying them in a Changing Set?
A developer created this Apex trigger that calls MyClass,myStartmethod:
The developer creates a test method that calls MyClase,myStartmethod directly, resulting in 81% overall code coverage.
What happens wtier the developer tries to deploy the ... and two classes to production, assuming no other code exists?
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?
A developer wants to mark each Account in a List
Which Apex technique should the developer use?
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?
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?
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
Universal Containers decided to transition from Classic to Lightning Experience. They asked a developer to replace a JavaScript button that was being used to create records with prepopulated values.
What can the developer use to accomplish this?
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?
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?
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?
What should a developer do to check the code coverage of a class after running all tests?
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?
In terms of the MVC paradigm, what are two advantages of implementing the view layer of a Salesforce application using Lightning Web Component-based development over Visualforce?
Choose 2 answers
Which statement describes the execution order when trigger are associated to the same object and event?
Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?
A custom object Trainer_c has a lookup field to another custom object Gym___c.
Which SOQL query will get the record for the Viridian City gym and it's trainers?
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?
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?
Cloud kicks has a muli-screen flow 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 number and dates that are retrieved from an external odrer management system in real time and displayed on the screen.
What shuold a developer use to satisfy this requirement?
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?
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 are three ways for 2 developer to execute tests in an org? Choose 3 answers
What are two considerations for deploying from a sandbox to production?
Choose 2 answers
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
A Developer Edition org has five existing accounts. A developer wants to add 10 more accounts for testing purposes.
The following code is executed in the Developer Console using the Execute Anonymous window:
How many total accounts will be in the org after this code is executed?
As part of new feature development, a developer is asked to build a responsive application capable of responding to touch events, that will be executed on stateful clients.
Which two technologies are built on a framework that fully supports the business requirement? Choose 2 answers
Which two sfdx commands can be used to add testing data to a Developer sandbox?
A developer is tasked with building a custom Lightning web component to collect Contact information.
The form will be shared among many different types of users in the org. There are security requirements that only certain fields should be edited and viewed by certain groups of users.
What should the developer use in their Lightning Web Component to support the security requirements?
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?
What should a developer use to script the deployment and unit test execution as part of continuous integration?