Month End Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: scxmas70

PDI Exam Dumps - Salesforce Certified Platform Developer 1 (SP25)

Go to page:
Question # 41

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

Choose 2 answers

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 .

Full Access
Question # 42

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.

Rich component ecosystem

B.

Leg capturing via the Debug Logs Setup page

C.

Built-in standard and custom set controllers

D.

Self-contained and reusable units of an application

Full Access
Question # 43

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

A.

Declarative development does not require Apex test classes.

B.

Declarative development has higher design limits and query limits,

C.

Declarative development can be done using the Setup menu.

D.

Declarative code logic does not require maintenance or review.

Full Access
Question # 44

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.

Use the Database method with allow one set to false.

B.

Deactivate the trigger before the integration runs.

C.

Remove the Apex class from the integration user's profile.

D.

Use a try-catch block after the insert statement.

Full Access
Question # 45

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.

Run the tests using the Run All Tests' method.

B.

Remove the failing test methods from the test class

C.

Create a test class and methods to cover the Apex trigger.

D.

Increase the test class coverage on the helper class.

Full Access
Question # 46

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?

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

Full Access
Question # 47

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 done to ensure that a user populates the Lead Source field prior to converting a Lead?

A.

Create an after trigger on Lead.

B.

Use Lead Conversion field mapping.

C.

Use a formula field.

D.

Use a validation rule.

Full Access
Question # 48

Universal Containers wants to ensure that all new leads created in the system have a valid email address. They have already created a validation rule to enforce this requirement, but want to add an additional layer of validation using automation.

What would be the best solution for this requirement?

A.

Submit a REST API Callout with a JSON payload and validate the fields on a third party system

B.

Use a before-save Apex trigger on the Lead object to validate the email address and display an error message if it is invalid

C.

Use a custom Lightning Web component to make a callout to validate the fields on a third party system.

D.

Use an Approval Process to enforce the completion of a valid email address using an outbound message action.

Full Access
Go to page: