Pass the Salesforce Developers PDI Questions and answers with CertsForce

Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions
Questions # 21:

What does the Lightning Component framework provide to developers?

Options:

A.

Support for Classic and Lightning UIs


B.

Prebuilt components that can be reused


C.

Templates to create custom components


D.

Extended governor limits for applications


Expert Solution
Questions # 22:

How is a controller and extension specified for a custom object named "Notice" on a Visualforce page?

Options:

A.

apex:page standardController="Notice_c" extensions="myControllerExtension"”


B.

apex:page controllers="Notice_c, myContcollerExtension"


C.

apex:pege=Notice extends="myControllerExtension”


D.

apex:page controller="Notice_c" extensions="myControllerExtension"


Expert Solution
Questions # 23:

Which two characteristics are true for Lightning Web Component custom events?

Choose 2 answers

Options:

A.

Data may be passed in the payload of a custom event using @wire decorated properties.


B.

Data may be passed In the payload of a custom event using a property called detail.


C.

By default a custom event only propagates to its immediate container and to its immediate child component.


D.

By default a custom event only propagates to it’s immediate container.


Expert Solution
Questions # 24:

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.


Expert Solution
Questions # 25:

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

Which two automation tools can be used to implement this feature? Choose 2 answers

Options:

A.

Quick actions


B.

Approval process


C.

Account trigger


D.

Fast Field Updates record-triggered flow


Expert Solution
Questions # 26:

A developer must perform a complex SOQL query that joins two objects in a Lightning component.

How can the Lightning component execute the query?

Options:

A.

Write the query in a custom Lightning web component wrapper and invoke from the Lightning component.


B.

Invoke an Apex class with the method annotated as @AuraEnabled to perform the query.


C.

Use the Salesforce Streaming APL to perform the SOQL query.


D.

Create a flow to execute the query end invoke from the Lightning component.


Expert Solution
Questions # 27:

Universal Containers hires a developer to build a custom search page to help users 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

Options:

A.

SOSL is faster for text searches.


B.

SOQL is able to return more records


C.

SOQL Is faster for text searches.


D.

SOSL is able to return more records.


Expert Solution
Questions # 28:

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.


Expert Solution
Questions # 29:

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?

Options:

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.


Expert Solution
Questions # 30:

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


Expert Solution
Viewing page 3 out of 7 pages
Viewing questions 21-30 out of questions