Pass the Salesforce Developers PDI Questions and answers with CertsForce

Viewing page 5 out of 7 pages
Viewing questions 41-50 out of questions
Questions # 41:

Universal Containers wants a list button to display a Visualforce page that allows users to edit multiple records.

Which Visualforce feature supports this requirement?

Options:

A.

Standard Controller with Custom List Controller extension


B.

Custom List Controller with recorasetvar page attribute


C.

Controller Extension and tag


D.

Standard controller and the recordsetvar page attribute


Expert Solution
Questions # 42:

A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.

Which design framework should the developer consider to ensure scalability and maintainability?

Options:

A.

Waterfall Model


B.

Flux (view, action, dispatcher, and store)


C.

Model-View-Controller (MVC)


D.

Agile Development


Expert Solution
Questions # 43:

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


Expert Solution
Questions # 44:

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.


Expert Solution
Questions # 45:

A developer needs to confirm that a Contact trigger works correctly without changing the organization's data.

What should the developer do to test the Contact trigger?

Options:

A.

Use Deploy from the VSCode IDE co deploy an 'insert Contact' Apex class.


B.

Use the New button on the Salesforce Contacts Tab to create a new Contact record.


C.

Use the Test menu on the Developer Console to run oil test classes for the Contact trigger.


D.

Use the Open Execute Anonymous feature on the Developer Console to run an "insert Contact' DML statement.


Expert Solution
Questions # 46:

Where are two locations a developer can look to find information about the status of batch or future methods?

Choose 2 answers

Options:

A.

Developer Console


B.

Apex Jobs


C.

Paused Flow Interviews component


D.

Apex Flex Queue


Expert Solution
Questions # 47:

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.


Expert Solution
Questions # 48:

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


Expert Solution
Questions # 49:

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?

Options:

A.

Create an after trigger on Lead.


B.

Use Lead Conversion field mapping.


C.

Use a formula field.


D.

Use a validation rule.


Expert Solution
Questions # 50:

What is the result of the following code?

Question # 50

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.


Expert Solution
Viewing page 5 out of 7 pages
Viewing questions 41-50 out of questions