Universal Containers recently transitioned from Classic to Lightning Experience.

One of its business processes requires certain values from the Opportunity object to be sent via an HTTP REST callout to its external order management system based on an ad-hoc basis when the user presses a custom button on the Opportunity detail page. Example values are as follows:
• Name
• Amount
• Account

Which two methods should the developer implement to fulfill the business requirement?

Choose 2 answers
A. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
B. Create a Remote Action on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
C. 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.
D. Create an after update trigger on the Opportunity object that calls a @Future(Callout=true) to perform the HTTP REST callout.
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. Setup Menu
B. AppExchange
C. Visual Studio Code IDE
D. Developer Console
What does the Lightning Component framework provide to developers?

A. Templates to create custom components
B. Support for Classic and Lightning UIs
C. Extended governor limits for applications
D. Prebuilt components that can be reused
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. An error condition formula on a validation rule on Opportunity
B. An Apex trigger on the Opportunity object
C. An approval process on the Opportunity object
D. A record trigger flow on the Opportunity object
What are two phases in the Aura application event propagation framework?

Choose 2 answers
A. Control
B. Emit
C. Default
D. Bubble
Which two sfdx commands can be used to add testing data to a Developer sandbox?

Choose 2 answers
A. force:data:async:upsert
B. force:data:tree:import
C. force:data:bulk:upsert
D. force:data:object:create
What are three ways for a developer to execute tests in an org?

Choose 3 answers
A. Setup Menu
B. Tooling API
C. Bulk API
D. Metadata API
E. Salesforce DX
Which two settings must be defined in order to update a record of a junction object?

Choose 2 answers
A. Read/Write access on the secondary relationship
B. Read access on the primary relationship
C. Read/Write access on the primary relationship
D. Read/Write access on the junction object
What should be used to create scratch orgs?

A. Salesforce CLI
B. Workbench
C. Sandbox refresh
D. Developer Console
Which Salesforce org has a complete duplicate copy of the production org including data and configuration?

A. Full Sandbox
B. Production
C. Partial Copy Sandbox
D. Developer Pro Sandbox
A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute a complex validation involving several types of objects.

When creating the Apex method, which annotation should a developer use to ensure the method can be used within the flow?

A. @AuraEnabled
B. @future
C. @InvocableMethod
D. @RemoteAction
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 another custom object called PostalCodeToTimezone__c.

What is the optimal way to implement this feature?

A. Build an account assignment rule.
B. Create an account approval process.
C. Create a formula field.
D. Build a flow with Flow Builder.
The values 'High', 'Medium', and 'Low' are identified as common values for multiple picklists across different objects.

What is an approach a developer can take to streamline maintenance of the picklists and their values, while also restricting the values to the ones mentioned above?

A. Create the Picklist on each object and add a validation rule to ensure data integrity.
B. Create the Picklist on each object as a required field and select "Display values alphabetically, not in the order entered".
C. Create the Picklist on each object and use a Global Picklist Value Set containing the values.
D. Create the Picklist on each object and select "Restrict picklist to the values defined in the value set".
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
A. Server-side run-time debugging
B. Automatic code generation
C. Self-contained and reusable units of an application
D. Rich component ecosystem
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 SilverLaptop class?

A. public class SilverLaptop extends Laptop
B. @Extends(class="Laptop")
    public class SilverLaptop
C. public class SilverLaptop implements Laptop
D. @Interface(class="Laptop")
    public class SilverLaptop
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. Write a trigger on the Opportunity object and use tree sorting to sum the amount for all related child objects under the Opportunity.
B. Use the Metadata API to create real-time roll-up summaries.
C. Write a trigger on the child object and use an aggregate function to sum the amount for all related child objects under the Opportunity.
D. Use the Streaming API to create real-time roll-up summaries.
Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component?

Choose 3 answers
A. Import the static resource and provide a JavaScript property for it.
B. Reference the property in the HTML template.
C. Upload the SVG as a static resource.
D. Import the SVG as a content asset file.
E. Reference the import in the HTML template.
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 be used to meet this business requirement?

A. Outbound messaging
B. Record-triggered flow
C. Scheduled job
D. Flow Orchestration
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 Assistant 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. Use WITH SECURITY_ENFORCED in the SOQL that fetches the data for the component.
B. Use Lightning Locker Service to enforce sharing rules and field-level security.
C. Use Lightning Data Service to get the collection of sales records.
D. Use Security.stripInaccessible to remove fields inaccessible to the current user.
An org tracks customer orders using the Order and Line Item objects. The Line Item object has a master-detail relationship to the Order object.

A developer has a requirement to calculate the total order amount for an Order and the line amount on each Line Item based on quantity and price.

What is the correct implementation?

A. Create a fast field update, record-triggered flow on the Line Item that calculates the item amount and order amount and updates the fields on the Line Item and the Order.
B. Implement the line item amount as a currency field and the order amount as a SUM formula field.
C. Implement the line amount as a numeric formula field and the order amount as a roll-up summary field.
D. Write a single before trigger on the Line Item that calculates the item amount and updates the order amount on the Order.
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?

A. Data Import Wizard can not import all 500 records.
B. Data Import Wizard does not support Opportunities.
C. Data Loader automatically relates Opportunities to Accounts.
D. Data Loader runs from the developer's browser.
Which aspect of Apex programming is limited due to multitenancy?

A. The number of methods in an Apex class
B. The number of records processed in a loop
C. The number of records returned from database queries
D. The number of active Apex classes
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 clicks a button called Next in the child component, the parent component must be alerted so it can navigate to the next page.

How should this be accomplished?

A. Create a custom event.
B. Call a method in the Apex controller.
C. Fire a notification.
D. Update a property on the parent.
Universal Containers UC) uses out-of-the-box order management, that has a Master-Detail relationship between Order and Order Line Item.

UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.

Which method should be used to calculate the estimated ship date for an Order?

A. Use a MAX Roll-Up Summary field on the latest availability date fields.
B. Use a LATEST formula on each of the latest availability date fields.
C. Use a DAYS formula on each of the availability date fields and a COUNT Roll-Up Summary field on the Order.
D. Use a CEILING formula on each of the latest availability date fields.
If Apex code executes inside the execute() method of an Apex class when implementing the Batchable interface, which two statements are true regarding governor limits?

Choose 2 answers
A. The Apex governor limits will use the asynchronous limit levels.
B. The Apex governor limits cannot be exceeded due to the asynchronous nature of the transaction.
C. The Apex governor limits are omitted while calling the constructor of the Apex class.
D. The Apex governor limits are reset for each iteration of the execute() method.
For which three items can a trace flag be configured?

Choose 3 answers
A. Visualforce
B. Apex Trigger
C. Apex Class
D. Flow
E. User
The Job_Application__c custom object has a field that is a master-detail relationship to the Contact object, where the Contact object is the master.

As part of a feature implementation, a developer needs to retrieve a list containing all Contact records where the related Account Industry is 'Technology', while also retrieving the Contact's Job_Application__c records.

Based on the object's relationships, what is the most efficient statement to retrieve the list of Contacts?

A. [SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Account.Industry = 'Technology'];
B. [SELECT Id, (SELECT Id FROM Job_Applications__c) FROM Contact WHERE Accounts.Industry = 'Technology'];
C. [SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Account.Industry = 'Technology'];
D. [SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Accounts.Industry = 'Technology'];
The Account object in an organization has a master-detail relationship to a child object called Branch. The following automations exist:
• Roll-up summary fields
• Custom validation rules
• Duplicate rules

A developer created a trigger on the Account object.

Which two things should the developer consider while testing the trigger code?

Choose 2 answers
A. Rollup summary fields can cause the parent record to go through Save.
B. The validation rules will cause the trigger to fire again.
C. The trigger may fire multiple times during a transaction.
D. Duplicate rules are executed once all DML operations commit to the database.
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 merge?

Choose 2 answers
A. The field values on the master record are overwritten by the records being merged.
B. Merge is supported with accounts, contacts, cases, and leads.
C. External ID fields can be used with the merge method.
D. 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.
Universal Containers has a 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?

A. Rewrite all Visualforce pages as Lightning components.
B. Set the attribute enableLightning to true in the definition.
C. Incorporate the Salesforce Lightning Design System CSS stylesheet into the JavaScript applications.
D. Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.
A developer has an Apex controller for a Visualforce page that takes an ID as a URL parameter.

How should the developer prevent a cross site scripting vulnerability?

A. String.ValueOf(ApexPages.currentPage().getParameters().get('url_param'))
B. ApexPages.currentPage().getParameters().get('url_param').escapeHtml4()
C. ApexPages.currentPage().getParameters().get('url_param')
D. String.escapeSingleQuotes(ApexPages.currentPage().getParameters().get('url_param'))
A developer is implementing an Apex class for a financial system. Within the class, the variables 'creditAmount' and 'debitAmount' 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
A. Use the final keyword and assign its value when declaring the variable.
B. Use the static keyword and assign its value in the class constructor.
C. Use the static keyword and assign its value in a static initializer.
D. Use the final keyword and assign its value in the class constructor.
Which three statements are true regarding custom exceptions in Apex?

Choose 3 answers
A. A custom exception class must extend the system Exception class.
B. A custom exception class name must end with "Exception".
C. A custom exception class can implement one or many interfaces.
D. A custom exception class cannot contain member variables or methods.
E. A custom exception class can extend other classes besides the Exception class.
A developer created a trigger on the Account object and wants to test if the trigger is properly bulkified. 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. Use Test.loadData to populate data in your test methods.
B. Create a static resource containing test data.
C. Use the @isTest(isParallel=true) annotation in the test class.
D. Use the @isTest(seeAllData=true) annotation in the test class.
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?

A. An Apex REST class
B. An Apex controller
C. An outbound message
D. An invocable method
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. External ID field
B. External Object
C. Formula field
D. Lookup field
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. External ID field
B. External Object
C. Formula field
D. Lookup field
A developer is writing tests for a class and needs to insert records to validate functionality.

Which annotation method should be used to create records for every method in the test class?

A. @isTest(SeeAllData=true)
B. @PreTest
C. @StartTest
D. @TestSetup
A developer must provide custom user interfaces when users edit a Contact in either Salesforce Classic or Lightning Experience.

What should the developer use to override the Contact's Edit button and provide this functionality?

A. A Visualforce page in Salesforce Classic and a Lightning page in Lightning Experience
B. A Lightning page in Salesforce Classic and a Visualforce page in Lightning Experience
C. A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience
D. A Lightning component in Salesforce Classic and a Lightning component in Lightning Experience
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?

A. 4
B. 1
C. 2
D. 3
A developer creates a new Apex trigger with a helper class, and writes a test class that only exercises 95% coverage of the 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. Create a test class and methods to cover the Apex trigger.
B. Increase the test class coverage on the helper class.
C. Remove the failing test methods from the test class.
D. Run the tests using the 'Run All Tests' method.
A developer must implement a CheckPaymentProcessor class that provides check processing payment capabilities that adhere to what is defined for payments in the PaymentProcessor interface.

public interface PaymentProcessor {
    void pay(Decimal amount);
}

Which implementation is correct to use the PaymentProcessor interface class?

A. public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount); }
B. public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount) { // functional code here } }
C. public class CheckPaymentProcessor extends PaymentProcessor { public void pay(Decimal amount); }
D. public class CheckPaymentProcessor implements PaymentProcessor { public void pay(Decimal amount) { // functional code here } }
Which three operations affect the number of times a trigger can fire?

Choose 3 answers

A. Lightning flows
B. Roll-up summary fields
C. Workflow rules
D. Email messages
E. Criteria-based sharing calculations
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. lightning-flow
B. lightning:flow
C. aura:flow
D. aura-flow
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. lightning-flow
B. lightning:flow
C. aura:flow
D. aura-flow
In the Lightning UI, where should a developer look to find information about a Paused Flow Interview?

A. In the system debug log by filtering on Paused Flow Interview
B. On the Paused Flow Interviews related list for a given record
C. On the Paused Flow Interviews component on the Home page
D. In the Paused Interviews section of the Apex Flex Queue
A developer created these three Rollup Summary fields in the custom object, Project__c:

Total_Timesheets__c
Total_Approved_Timesheets__c
Total_Rejected_Timesheet__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?

A. Roll-up summary field
B. Record-triggered flow
C. Formula field
D. Apex trigger
Universal Containers is building a recruiting app with an Applicant object that stores information about an individual person and a Job object that represents a job. Each applicant may apply for more than one job.

What should a developer implement to represent that an applicant has applied for a job?

A. Lookup field from Applicant to Job
B. Junction object between Applicant and Job
C. Formula field on Applicant that references Job
D. Master-detail field from Applicant to Job
An Apex method, getAccounts, that returns a list of Accounts given a searchTerm, 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. @AuraEnabled(getAccounts, '$searchTerm')
accountList;
B. @wire(getAccounts, '$searchTerm')
accountList;
C. @wire(getAccounts, { searchTerm: '$searchTerm' })
accountList;

D. @AuraEnabled(getAccounts, { searchTerm: '$searchTerm' })
accountList;
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?

A. OrgLimits
B. Messaging
C. Exception
D. Limits
What should a developer do to check the code coverage of a class after running all tests?

A. View the Code Coverage column in the list view on the Apex Classes page.
B. View the Class Test Percentage tab on the Apex Class list view in Salesforce Setup.
C. View the code coverage percentage for the class using the Overall Code Coverage panel in the Developer Console Tests tab.
D. Select and run the class on the Apex Test Execution page in the Developer Console.
A developer created a new after insert trigger on the Lead object that creates Task records for each Lead.

After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart.

Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task insert statement, so that manual restarts are not needed?

A. Remove the Apex class from the integration user's profile.
B. Deactivate the trigger before the integration runs.
C. Use the Database method with allOrNone set to false.
D. Use a try-catch block after the insert statement.
What should a developer use to script the deployment and unit test execution as part of continuous integration?

A. VS Code
B. Developer Console
C. Salesforce CLI
D. Execute Anonymous
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?

A. Lightning controller
B. Standard list controller
C. Standard controller
D. Custom controller
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. 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?

A. String nextPage = controller.save().getUrl();
B. ApexPages.currentPage().getParameters().put('input', 'TestValue');
C. Test.setCurrentPage(pageRef);
D. public ExtendedController(ApexPages.StandardController cntrl) { }
E. insert pageRef;
Which three code lines are required to create a Lightning component on a Visualforce page?

A. <apex:slds/>
B. <apex:includeLightning/>
C. $Lightning.use
D. $Lightning.useComponent
E. $Lightning.createComponent
Which action causes a before trigger to fire by default for Accounts?

A. Converting Leads to Contacts
B. Updating addresses using the Mass Address update tool
C. Importing data using the Data Loader and the Bulk API
D. Renaming or replacing picklists
Assuming that name is a String obtained by an <apex:inputText> tag on a Visualforce page, which two SOQL queries performed are safe from SOQL injection?

C. String query = 'SELECT Id FROM Account WHERE Name LIKE \'' + String.escapeSingleQuotes(name) + '%\''; List<Account> results = Database.query(query);
D. String query = '%' + name + '%'; List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];
A. String query = 'SELECT Id FROM Account WHERE Name LIKE \'' + name + '%\''; List<Account> results = Database.query(query);
B. String query = 'SELECT Id FROM Account WHERE Name LIKE \'' + name.noQuotes() + '%\''; List<Account> results = Database.query(query);
Which three Salesforce resources can be accessed from a Lightning web component?

A. Third-party web components
B. All external libraries
C. Static resources
D. SVG resources
E. Content asset files
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?

A. 0
B. 1
C. 2
D. 3
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.

Which two tools can they use to run a script that deploys to a sandbox?

A. Ant Migration Tool
B. Developer Console
C. SFDX CLI
D. Change Sets
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?

A. Use Test.loadData() and reference a JSON file in Documents.
B. Use SOQL to query the org for the required data.
C. Use Anonymous Apex to create the required data.
D. Use Test.loadData() and reference a CSV file in a static resource.