Weekend Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

ExamsBrite Dumps

Salesforce Certified Platform Developer 1 (SP25) Question and Answers

Salesforce Certified Platform Developer 1 (SP25)

Last Update Oct 19, 2025
Total Questions : 204

We are offering FREE CRT-450 Salesforce exam questions. All you do is to just go and sign up. Give your details, prepare CRT-450 free exam questions and then go for complete pool of Salesforce Certified Platform Developer 1 (SP25) test questions that will help you more.

CRT-450 pdf

CRT-450 PDF

$36.75  $104.99
CRT-450 Engine

CRT-450 Testing Engine

$43.75  $124.99
CRT-450 PDF + Engine

CRT-450 PDF + Testing Engine

$57.75  $164.99
Questions 1

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 query performance?

Options:

A.  

Setup Menu

B.  

Visual Studio Code IDE

C.  

AppExchange

D.  

Developer Console

Discussion 0
Questions 2

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?

Options:

A.  

OrgLimits

B.  

Limits

C.  

Messaging

D.  

Exception

Discussion 0
Questions 3

A developer created this Apex trigger that calls MyClass.mystaticMethod:

The developer creates a test class with a test method that calls MyClass.myStaticMethod directly, 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 exists?

Options:

A.  

The deployment passes because both classes and the trigger were included in the deployment.

B.  

The deployment fails because no assertions were made in the test method.

C.  

The deployment passes because the Apex code has the required >75% code coverage.

D.  

The deployment fails because the Apex trigger has no code coverage.

Discussion 0
Questions 4

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?

Options:

A.  

5

B.  

6

C.  

10

D.  

15

Discussion 0
Questions 5

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

Options:

A.  

Create a Dynamic Form.

B.  

Create a Custom Permission for the users.

C.  

Add a Dynamic Action to the Users’ assigned Page Layouts.

D.  

Create a Lightning wed component.

E.  

Add a Dynamic Action to the Account Record Page.

Discussion 0
Questions 6

What can be used to override the Account's standard Edit button for Lightning Experience?

Options:

A.  

Lightning action

B.  

Lightning page

C.  

Lightning component

D.  

Lightning flow

Discussion 0
Questions 7

How does the Lightning Component framework help developers implement solutions faster?

Options:

A.  

By providing device-awareness for mobile and desktops

B.  

By providing an Agile process with default steps

C.  

By providing change history and version control

D.  

By providing code review standards and processes

Discussion 0
Questions 8

Which two settings must be defined In order to update a record of a junction object?

Choose 2 answers

Options:

A.  

Read/Write access on the secondary relationship

B.  

Read/Write access on the primary relationship

C.  

Read/Write access on the junction object

D.  

Read access on the primary relationship

Discussion 0
Questions 9

Universal Hiring uses Salesforce to capture job applications. A salesforce administrator created two custom objects; Job__c acting as the master object, to Application_c acting as the detail.

Within the Job__c object, a custom multi-select picklist, preferred _Locations__c, contains a list of approved states for the position. Each Job_Application__c record relates to a Contact within the system through a master-detail relationship.

Recruiters have requested the ability to view whether the Contact's Mailing State value matches a value selected on the Preferred Locations__c field, within the Job_Application__c record. Recruiters would like this value to be kept in sync if changes occur to the Contact's Mailing State.

What is the recommended tool a developer should use to meet the business requirement?

Options:

A.  

Apex trigger

B.  

Roll-up summary field

C.  

Record-triggered flow

Discussion 0
Questions 10

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?

Options:

A.  

Move all of the logic to a Queveable class that queries for and updates the Assets and call it from the trigger.

B.  

Add List assets = [SELECT id, Status_¢ FROM WHERE AccountId = : acctId] to line 14 and iterate over the assets list in the for loop on line 15.;

C.  

Add a LIMIT clause to the SOQL query on line 16 to limit the number of Assets queried for an Account.

D.  

Change the getAssetsToUpdate method to process all Accounts in one call and call it outside of the for loop that starts on line 03.

Discussion 0
Questions 11

(Full question statement)

Universal Containers wants Opportunities to no longer be editable when they reach the Closed/Wonstage.

Which two strategies can a developer use to accomplish this?

Choose 2 answers.

Options:

A.  

Use an automatically launched Approval Process.

B.  

Use a Validation Rule.

C.  

Use a before-save Apex Trigger.

D.  

Use an Auto-Response Rule.

Discussion 0
Questions 12

A developer creates a custom exception as shown below:

public class ParityException extends Exception { }

What are two ways the developer can fire the exception in Apex?

Options:

A.  

throw new ParityException ();

B.  

throw new parityException ('parity does not match');

C.  

new ParityException ();

D.  

new ParityException('parity does not match');

Discussion 0
Questions 13

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.

Which relationship field should be implemented to support these requirements?

Options:

A.  

Lookup field from Opportunity to Engineering _support__c

B.  

Master-detail field from Engineering Support__c to Opportunity

C.  

Master-detail field from Opportunity to Engineering Support__c

D.  

Lookup field from Engineering Support __c to Opportunity

Discussion 0
Questions 14

Universal Containers (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 add to create the most efficient model that supports the business need?

Options:

A.  

Add a master-detail field on the Global Address object to the Account object.

B.  

Add a lookup field on the Global Address object to the Account object.

C.  

Add a lookup field on the Account object to the Global Address object.

D.  

Add a master-detail field on the Account object to the Global Address object.

Discussion 0
Questions 15

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

developer created a trigger on the Account object.

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

Choose 2 answers

Options:

A.  

Rollup summary fields can cause the parent record to go through Save.

B.  

Duplicate rules are executed once all DML operations commit to the database.

C.  

The trigger may fire multiple times during a transaction.

D.  

The validation rules will cause the trigger to fire again.

Discussion 0
Questions 16

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?

Options:

A.  

@wire(getAccounts, { searchTerm: '$searchTerm' })

B.  

@track(getAccounts, '$searchTerm')

C.  

@wire(getAccounts, 'searchTerm: $searchTerm')

D.  

@wire(getAccounts, '$searchTerm')

Discussion 0
Questions 17

When the code executes, a DML exception is thrown.

How should a developer modify the code to ensure exceptions are handled gracefully?

Options:

A.  

Implement the upset DML statement.

B.  

Implement Change Data Capture.

C.  

Implement a try/catch block for the DML.

D.  

Remove null items from the list of Accounts.

Discussion 0
Questions 18

When importing and exporting data into Salesforce, which two statements are true?

Choose 2 answers

Options:

A.  

Bulk API can be used to bypass the storage limits when importing large data volumes in development environments.

B.  

Data import wizard is an application that is installed on your computer

C.  

Bulk APL can be used to import large data volumes in development environments without bypassing the storage limits.

D.  

Developer and Developer Pro sandboxes have different storage limits.

Discussion 0
Questions 19

Which two statements are true about using the @testSetup annotation in an Apex test class?

Choose 2 answers

Options:

A.  

Records created in the test setup method cannot be updated in individual test methods.

B.  

In a test setup method, test data is inserted once and made available for all test methods In the test class.

C.  

A method defined with the @testSetup annotation executes once for each test method in the test class and counts towards system limits.

D.  

The @testSetup annotation is not supported when the @isTest(SeeAllData=True) annotation is used .

Discussion 0
Questions 20

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

Options:

A.  

Use the static keyword and assign its value in a static initializer.

B.  

Use the final keyword and assign its value in the class constructor.

C.  

Use the final keyword and assign its value when declaring the variable.

D.  

Use the static keyword and assign its value in the class constructor.

Discussion 0
Questions 21

Universal Containers wants to back up all of the data and attachments in its Salesforce org once a month.

Which approach should a developer use to meet this requirement?

Options:

A.  

Schedule a report.

B.  

Use the Data Loader command line.

C.  

Define a Data Export scheduled job.

D.  

Create a Schedulable Apex class.

Discussion 0
Questions 22

A developer is asked to write helper methods that create test data for unit tests.

What should be changed in the TestUtils class so that its methods are only usable by unit test methods?

Options:

A.  

@isTest above line 03.

B.  

Add @istest above line 01.

C.  

Change public to private on line 01.

D.  

Remove static from line 03.

Discussion 0
Questions 23

Which two are best practices when it comes to Aura component and application event handling?

Choose 2 answers

Options:

A.  

Try to use application events as opposed to component events.

B.  

Reuse the event logic in a component bundle, by putting the logic in the helper.

C.  

Use component events to communicate actions that should be handled at the application level.

D.  

Handle low-level events in the event handler and re-fire them as higher-level events.

Discussion 0
Questions 24

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?

Options:

A.  

Rewrite all Visualforce pages as Lightning components.

B.  

Set the attribute enableLightning to true in the definition.

C.  

Enable Available for Lightning Experience, Lightning Communities, and the mobile app on Visualforce pages used by the custom application.

D.  

Incorporate the Salesforce Lightning Design System CSS stylesheet Into the JavaScript applications.

Discussion 0
Questions 25

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.

apex

Copy

public interface PaymentProcessor {

void pay(Decimal amount);

}

Which is the correct implementation to use the PaymentProcessor interface class?

Options:

A.  

apex

Copy

public class CheckPaymentProcessor implements PaymentProcessor {

public void pay(Decimal amount) {}

}

B.  

apex

Copy

public class CheckPaymentProcessor implements PaymentProcessor {

public void pay(Decimal amount);

}

C.  

apex

Copy

public class CheckPaymentProcessor extends PaymentProcessor {

public void pay(Decimal amount);

}

D.  

apex

Copy

public class CheckPaymentProcessor extends PaymentProcessor {

public void pay(Decimal amount) {}

}

Discussion 0
Questions 26

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 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?

Options:

A.  

Use WITH SECURITY_ENFORCED In the SOQL that fetches the data for the component,

B.  

Use Security.stripInaccessible Le to remove fields inaccessible to the current user.

C.  

Use Lightning Locker Service to enforce sharing rules and field-level security.

D.  

Use Lightning Data Service to get the collection of sales records.

Discussion 0
Questions 27

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?

Options:

A.  

B.  

C.  

D.  

Discussion 0

Questions 28

Refer to the component code requirements below:

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

Requirements:

    For mobile devices, the information should display in three rows.

    For desktops and tablets, the information should display in a single row.

Requirement 2 is not displaying as desired.

Which option has the correct component code to meet the requirements for desktops and tablets?

Options:

A.  

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

B.  

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

C.  

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

D.  

{!v.account.Name}

{!v.account.AccountNumber}

{!v.account.Industry}

Discussion 0
Questions 29

A developer wants to mark each Account in a List as either Active or Inactive, based on the value in the LastModified each Account being greater than 90 days in the past.

Which Apex technique should the developer use?

Options:

A.  

An if-else statement, with a for loop inside

B.  

A witch statement, with a for loop inside

C.  

A for loop, with an if or if/else statement inside

D.  

A for loop, with a switch statement inside

Discussion 0
Questions 30

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?

Options:

A.  

Use a LATEST formula on each of the latest availability date fields.

B.  

Use a CEILING 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 MAX Roll-Up Summary field on the latest availability date fields.

Discussion 0
Questions 31

A lead developer creates an Apex interface called Laptop.

Consider the following code snippet:

apex

CopyEdit

public class SilverLaptop {

// code implementation

}

How can a developer use the Laptop interface within the SilverLaptop class?

Options:

A.  

Extends (class="Laptop") public class SilverLaptop

B.  

public class SilverLaptop implements Laptop

C.  

public class SilverLaptop extends Laptop

D.  

Interface (class="Laptop") public class SilverLaptop

Discussion 0
Questions 32

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?

Options:

A.  

apex

Copy

webservice class WebServiceClass {

private Boolean helperMethod() { /* implementation ... */ }

global static String updateRecords() { /* implementation ... */ }

}

B.  

apex

Copy

global class WebServiceClass {

private Boolean helperMethod() { /* implementation ... */ }

webservice static String updateRecords() { /* implementation ... */ }

}

C.  

apex

Copy

webservice class WebServiceClass {

private Boolean helperMethod() { /* implementation ... */ }

webservice static String updateRecords() { /* implementation ... */ }

}

D.  

apex

Copy

global class WebServiceClass {

private Boolean helperMethod() { /* implementation ... */ }

global String updateRecords() { /* implementation ... */ }

}

Discussion 0
Questions 33

Consider the following code snippet:

apex

CopyEdit

public class with sharing AccountsController {

@AuraEnabled

public List getAllAccounts(){

return [SELECT Id, Name, Industry FROM Account];

}

}

Apex Test Class Snippet:

apex

CopyEdit

@isTest

private class with sharing AccountsController_Test {

@testSetup

private static void makeData(){

User user1 = [SELECT Id FROM User WHERE Profile.Name = 'System Administrator' AND isActive = true LIMIT 1];

User user2 = [SELECT Id FROM User WHERE Profile.Name = 'Standard User' AND UserName = 'test@test.com' AND isActive = true LIMIT 1];

TestUtils.insertAccounts(10, user1.Id);

TestUtils.insertAccounts(20, user2.Id);

}

@isTest

private static void getAllAccounts_StandardUser_Test(){

List result = AccountsController.getAllAccounts();

System.assertEquals(20, result.size());

}

}

When the test class runs, the assertion fails.

Which change should the developer implement in the Apex test method to ensure the test method executes successfully?

Options:

A.  

Query the Administrator user into memory and enclose lines 15 and 16 within the System.runAs(user); method.

B.  

Query the Standard User into memory and enclose lines 15 and 16 within the System.runAs(); method.

C.  

Add @isTest(seeAllData=true); to line 12 and enclose lines 15 and 16 within Test.startTest(); and Test.stopTest();.

D.  

Add System.runAs(user); to line 14 and enclose line 15 within Test.startTest(); and Test.stopTest();.

Discussion 0
Questions 34

What are two ways for a developer to execute tests in an org?

Choose 2 answers

Options:

A.  

Tooling API

B.  

Metadata API

C.  

Bulk API

D.  

Developer Console

Discussion 0
Questions 35

Universal Containers needs to create a custom user interface component that allows users to enter information about their accounts.

The component should be able to validate the user input before saving the information to the database.

What is the best technology to create this component?

Options:

A.  

Flow

B.  

Lightning Web Components

C.  

Visualforce

D.  

VUE JavaScript framework

Discussion 0
Questions 36

How can a developer check the test coverage of autolaunched Flows before deploying them in a change set?

Options:

A.  

Use the ApextestResult class.

B.  

Use the Flow Properties page.

C.  

Use SOQL and the Tooling API.

D.  

Use the Code Coverage Setup page,

Discussion 0
Questions 37

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?

Options:

A.  

Review the Historical Event logs to identify the source of the issue.

B.  

Add system.debug statements to the code to track the execution flow and identify the issue.

C.  

Use the Apex Interactive Debugger to step through the code and identify the issue.

D.  

Disable the trigger in production and test to see if the issue still occurs.

Discussion 0
Questions 38

What should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers?

Options:

A.  

FIND ‘Universal Conteiners' IN CompenyName Fields RETURNING leadjid, name), sccount(ad, name}, conteact(id, name)

B.  

SELECT Lead.id, Lead.Neme, Account,Id, Account.Neme, Contact.id, Contact.Neame FROM Lead, Account, Contact WHERE CompanyName = "Universal Containers*

C.  

PIND ‘Universal Centainers’ IN Name Fields RETURNING lead(id, name), saceount(id, mame), contact (id, name)

D.  

SELECT lead(id, name), account (id, name}, contact(id, name) FROM Lead, Account, Contact WHERE Name = "Universal Containers’

Discussion 0
Questions 39

Universal Containers 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 answers

Options:

A.  

Record-Triggered Flow

B.  

Batch Jobs

C.  

Remote Actions

D.  

Validation Rules

Discussion 0
Questions 40

A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.

How can the developer make sure that validation rule violations are displayed?

Options:

A.  

Add custom controller attributes to display the message.

B.  

Use a try/catch with a custom exception class.

C.  

Include on the Visualforce page.

D.  

Perform the DML using the database.unsert() method,

Discussion 0
Questions 41

A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.

What is the first step towards troubleshooting the issue?

Options:

A.  

Check the asynchronous job monitoring page to view the job status and logs.

B.  

Check the debug logs for the batch job.

C.  

Disable the batch job and recreate it with a smaller number of records.

D.  

Decrease the batch size to reduce the load on the system.

Discussion 0
Questions 42

What is the result of the following code?

Options:

A.  

The record will not be created and an exception will be thrown.

B.  

The record will not be created and no error will be reported.

C.  

The record will be created and no error will be reported.

D.  

The record will be created and a message will be in the debug log.

Discussion 0
Questions 43

What should a developer use to fix a Lightning web component bug in a sandbox?

Options:

A.  

Developer Console

B.  

Force.com IDE

C.  

Execute Anonymous

D.  

VS Code

Discussion 0
Questions 44

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?

Options:

A.  

Salesforce CLI

B.  

Visual Studio Code

C.  

Force.com Toolkit

D.  

Developer Console

Discussion 0
Questions 45

Flow Builder 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 the additional information?

Options:

A.  

@InvocableMethod(label='Additional Info') public ContactInfo getInfo(Id contactId) { /* implementation */ }

B.  

@InvocableMethod(label='Additional Info') public static List getInfo(List contactIds) { /* implementation */ }

C.  

@InvocableMethod(label='Additional Info') public static ContactInfo getInfo(Id contactId) { /* implementation */ }

D.  

@InvocableMethod(label='Additional Info') public List getInfo(List contactIds) { /* implementation */ }

Discussion 0
Questions 46

A developer created a child Lightning web component nested inside a parent Lightning web component. The parent component needs to pass a string value to the child component.

In which two ways can this be accomplished?

Choose 2 answers

Options:

A.  

The parent component can invoke a public method in the child component.

B.  

The parent component can use a public property to pass the data to the child component,

C.  

The parent can use the Apex controller class to send data to the child component.

D.  

The parent component can use a custom event to pass the data to the child component.

Discussion 0
Questions 47

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?

Options:

A.  

The variable, myaccount, is automatically cast to the List data type.

B.  

An unhandled exception is thrown and the code terminates.

C.  

The query fails and an error is written to the debug log.

D.  

The first Account returned is assigned to myAccount.

Discussion 0
Questions 48

A business has a proprietary Order Management System (OMS) that creates orders from its website and fulfills the orders. When the order is created in the OMS, an integration also creates an order record inSalesforce 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.

The business notices that each update from the OMS creates a new order record in Salesforce.

Which two actions should prevent the duplicate order records from being created in Salesforce?

Choose 2 answers

Options:

A.  

Use the order number from the OMS as an external ID.

B.  

Ensure that the order number in the OMS is unique.

C.  

O Use the email on the contact record as an external ID.

D.  

O Write a trigger on the Order object to delete the duplicates.

Discussion 0
Questions 49

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 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

Options:

A.  

Query for existing opportunities outside the for loop.

B.  

Check if all the required fields for Opportunity are being added on creation.

C.  

Move the DML that saves opportunities outside the for loop.

D.  

Use Database query to query the opportunities.

Discussion 0
Questions 50

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?

Options:

A.  

Create the opportunity and check the opportunity. recordtype, which will have the record ID of the current user's default record type, before inserting.

B.  

Query the Profile where the ID equals userinfo.getprofileID () and then use the profile opportunity. getdefaultresoratype (} method,

C.  

Use the schema. Userinfo. Opportunity. getDefaultRecordType {) method.

D.  

Use opportunity. sobjectTyps. getDeacribse().getRecordTypeInfos {) to get a list of record types, and iterate through them until isDefaultRecordtypeMapping {) is true.

Discussion 0
Questions 51

Universal Containers (UC) processes orders in Salesforce in a custom object, Order__c. They also allow sales reps to upload CSV files with thousands 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 Order__c is first set to 'Placed', the order information must be sent to a REST endpoint in the ERP system that can

process one order at a time.

What should the developer implement to accomplish this?

Options:

A.  

Callout from a Queueable class called from a trigger

B.  

Callout from a Batchable class called from a scheduled job

C.  

Flow with a callout from an invocable method

D.  

Callout from an @future method called from a trigger

Discussion 0
Questions 52

Which three steps allow a custom Scalable Vector Graphic (SVG) to be included in a Lightning web component?

Choose 3 answers

Options:

A.  

Import the static resource and provide a JavaScript property for it.

B.  

Upload the SVG as a static resource.

C.  

Reference the import in the HTML template.

D.  

Import the SVG as a content asset file.

E.  

Reference the property in the HTML template.

Discussion 0
Questions 53

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunityLineltem trigger.

Which method allows access to the price book?

Options:

A.  

Use Test .getStandardPricebookid() to get the standard price book ID.

B.  

Use @isTest [SeeAllData=true| and delete the existing standard price book.

C.  

Use @Testvisible to allow the test method to see the standard price book.

D.  

Use Test. loadData () and a static resource to load a standard price book.

Discussion 0
Questions 54

When using Salesforce DX, what does a developer need to enable to create and manage scratch orgs?

Options:

A.  

Sandbox

B.  

Environment Hub

C.  

Production

D.  

Dev Hub

Discussion 0
Questions 55

What are two benefits of using External IDs?

Choose 2 answers

Options:

A.  

An External ID field can be used to reference an ID from another external system.

B.  

An External ID can be a formula field ta help create a unique key from two fields in Salesforce.

C.  

An External ID can be used with Salesforce Mobile to make external data visible.

D.  

An External 1D is indexed and can improve the performance of SOOL queries.

Discussion 0
Questions 56

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 to report multiple bugs and bugs can also be reported by multiple companies.

What is needed to allow this reporting?

Options:

A.  

Roll-up summary field of Bug_c on Account

B.  

Master-detail field on Bug_c to Account

C.  

Lookup field on Bug_c to Account

D.  

Function object between Bug__c and Account

Discussion 0
Questions 57

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?

Options:

A.  

A Lightning component in Salesforce Classic and a Lightning component 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 page in Lightning Experience

D.  

A Visualforce page in Salesforce Classic and a Lightning component in Lightning Experience

Discussion 0
Questions 58

What is the value of the Trigger.old context variable in a before insert trigger?

Options:

A.  

An empty list of sObjects

B.  

Undefined

C.  

null

D.  

A list of newly created sObjects without IDs

Discussion 0
Questions 59

What can be easily developed using the Lightning Component framework?

Options:

A.  

Salesforce Classic user interface pages

B.  

Lightning Pages

C.  

Customized JavaScript buttons

D.  

Salesforce integrations

Discussion 0
Questions 60

What are three considerations when using the @lnvocableMethod annotation in Apex?

Choose 3 answers

Options:

A.  

Only one method using the @invecableMethod annotation can be defined per Apex class_

B.  

A method using the @invecableMethod annotation can have multiple input parameters.

C.  

A method using the @invocablemethod annotation must be declaredas static,

D.  

GO A method using the @invocablemethod annotation must define a return value.

E.  

A method using the @invocableMethod annotation can be declared as Public or Global.

Discussion 0
Questions 61

(Full question statement)

Which code displays the contents of a Visualforce page as a PDF?

Options:

A.  

B.  

C.  

D.  

Discussion 0