Pass the Salesforce Developers PDII Questions and answers with CertsForce

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

Refer to the code snippet below:

Question # 21

A custom object called Credit_Memo__c exists in a Salesforce environment. As part of a new feature development that retrieves and

manipulates this type of record, the developer needs to ensure race conditions are prevented when a set of records are modified within an Apex

transaction.

In the preceding Apex code, how can the developer alter the query statement to use SOQL features to prevent race conditions within a transaction?

A)

Question # 21

B)

Question # 21

C)

Question # 21

D)

Question # 21

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 22:

An org has an existing process, built using Process Builder, on Opportunity that sets a custom field, CommissionBaseAmount__c, when

an Opportunity is edited and the Opportunity's Amount changes.

A developer recently deployed an Opportunity before update trigger that uses the CommissionBaseAmount__c and complex logic to calculate a

value for a custom field, CommissionAmount__c, when an Opportunity stage changes to Closed/Won.

Users report that when they change the Opportunity to Closed/Won and also change the Amount during the same save, the CommissionAmount__c is incorrect.

Which action should the developer take to correct this problem?

Options:

A.

A Replace the process with a Fast Field Update record-trigger flow.


B.

Call the trigger from the process.


C.

Call the process from the trigger.


Expert Solution
Questions # 23:

A developer gets an error saying ‘Maximum Trigger Depth Exceeded.’

What is a possible reason to get this error message?

Options:

A.

A trigger is recursively invoked more than 16 times.


B.

The SOQL governor limits are being hit.


C.

There are numerous DML operations in the trigger logic.


D.

A flow trigger was included too many times.


Expert Solution
Questions # 24:

Universal Containers ne=ds to integrate with several external systems. The process Is Initiated when a record Is created in Salesforce, The remote systems do not require Salesforce to wait for a response before continuing.

What is the recommended best solution to accomplish this?

Options:

A.

PushTopic event


B.

Qutbound message


C.

Trigger with HTTP callout


D.

Platform event


Expert Solution
Questions # 25:

A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow.

What can a developer to do address the issue?

Options:

A.

Turn off triggers, flows, and validations when running tests.


B.

Move the prerequisite reference data setup to a TestDataFactory and call that from each test method.


C.

Move the prerequisite reference data setup to a @testSetup method in the test class.


D.

Move the prerequisite reference data setup to the constructor for the test class.


Expert Solution
Questions # 26:

Universal Containers (UC) has an ERP system that stores customer Information,

When an Account is created in Salesforce, the ERP system's REST endpoint for creating new customers must automatically be called with the Account information. If the call to the ERP

system falls, the Account should still be created. Accounts in the UC org are only created, one at a time, by users in the UC customer on-boarding department.

What should a developer implement to make the call to the ERP

system's REST endpoint?

Options:

A.

REST call from JavaScript


B.

Headless Quick Action


C.

Call a Queueable from a Trigger


D.

Apex Continuation


Expert Solution
Questions # 27:

A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed in a non-linear fashion on top of an image of the product to help the user better understand the meaning of the fields.

Which two components should a developer use to implement the creation of the Case from the Lightning web component?

Choose 2 answers

Options:

A.

Lightning-record-edit-forth


B.

lightning-input-fimld


C.

Lightning-input


D.

lightning-record-form


Expert Solution
Questions # 28:

An Aura component has a section that displays some information about an Account

and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets.

Question # 28

How should a developer change the component to be responsive for mobile and tablet devices?

A)

Question # 28

B)

Question # 28

C)

Question # 28

D)

Question # 28

Options:

A.

Option A


B.

Option B


C.

Option C


D.

Option D


Expert Solution
Questions # 29:

Recently, users notice that fields that were recently added for one department suddenly disappear without warning.

Which two statements are true regarding these issues and resolution?

Choose 2 answers

Options:

A.

A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.


B.

Page Layouts should never be deployed via Change Sets, as this causes Field-Level Security to be reset and fields to disappear.


C.

The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts in production.


D.

The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.


Expert Solution
Questions # 30:

A company has a custom object, Order__c, that has a custom picklist field, Status__c, with values of `˜New', `˜In Progress', or `˜Fulfilled' and a lookup field,

Contact__c, to Contact.

Which SOQL query will return a unique list of all the Contact records that have no `˜Fulfilled' Orders?

Options:

A.

SELECT Id FROM Contact WHERE Id NOT IN (SELECT Id FROM Order__c WHERE Status__c = 'Fulfilled')


B.

SELECT Contact__c FROM Order__c WHERE Status__c <> 'Fulfilled'


C.

SELECT Id FROM Contact WHERE Id NOT IN (SELECT Contact__c FROM Order__c WHERE Status__c = 'Fulfilled')


D.

SELECT Contact__c FROM Order__c WHERE Id NOT IN (SELECT Id FROM Order__c Where Status__c = 'Fulfilled')


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