Pass the Salesforce Developers PDI Questions and answers with CertsForce

Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions
Questions # 11:

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of Apex tests allowing

them to test isolated requirements for various types of Salesforce cases.

Which approach can efficiently generate the required data for each unit test?

Options:

A.

Create a mock using the HttpcalloutMock interface.


B.

Use @TestSetup with a void method.


C.

Add @IsTest (seeAllData=true) at the start of the unit test class.


D.

Create test data before Test .startTest() in the unit test.


Expert Solution
Questions # 12:

Which three statements are accurate about debug logs?

Choose 3 answers

Options:

A.

Debug logs can be set for specific users, classes, and triggers.


B.

System debug logs are retained for 24 hours.


C.

Only the 20 most recent debug logs for a user are kept.


D.

Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.


E.

The maximum size of a debug log is 5 MB.


Expert Solution
Questions # 13:

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


Expert Solution
Questions # 14:

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?

Options:

A.

lightning: flow


B.

lightning-low


C.

sure-flow


D.

aura: flow


Expert Solution
Questions # 15:

What should be used to create scratch orgs?

Options:

A.

Salesforce CLI


B.

Sandbox refresh


C.

Developer Console


D.

Workbench


Expert Solution
Questions # 16:

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?

Options:

A.

[SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Accounts.Industry = 'Technology']


B.

[SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Accounts.Industry = 'Technology']


C.

[SELECT Id, (SELECT Id FROM Job_Application__c) FROM Contact WHERE Account.Industry = 'Technology']


D.

[SELECT Id, (SELECT Id FROM Job_Applications__r) FROM Contact WHERE Account.Industry = 'Technology']


Expert Solution
Questions # 17:

The following code snippet is executed by a Lightning web component in an environment with more than 2,000 lead records:

Question # 17

Which governor limit will likely be exceeded within the Apex transaction?

Options:

A.

Total number of SOOL quires issued


B.

Total number of DML statements issued


C.

Total number of records processed as a result of DML statements


Expert Solution
Questions # 18:

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.


Expert Solution
Questions # 19:

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.

<apex:pageMessages />


C.

<apex:pageMessage severity="info’’ />


D.

<apex:facet name="messages” />


Expert Solution
Questions # 20:

Which two events need to happen when deploying to a production org?

Choose 2 answers

Options:

A.

All custom objects must have visibility set to a value other than in Development.


B.

All Apex code must have at least 75% test coverage.


C.

All triggers must have some test coverage


D.

All Visual flows must have at least 1% test coverage.


Expert Solution
Viewing page 2 out of 7 pages
Viewing questions 11-20 out of questions