ExamGecko
Ask Question

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 33

List of questions

Question 321

Report Export Collapse

Users complain that a page Is very slow to respond. Upon investigation, the query below Is found to perform slowly.

SELECT id, Name FROM Contact WHERE CustomField_c null;

Which two actions can a developer take to improve performance?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member

Question 322

Report Export Collapse

A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed In the sandbox. However, the developer cannot get code coverage on the Batch Apex class.

The test class is below:

Salesforce Certified Platform Developer II image Question 322 67969 09232024003105000000

What is causing the code coverage problem?

Become a Premium Member for full access
  Unlock Premium Member

Question 323

Report Export Collapse

A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:

Caura: component implements-"forcethaaRecordid, flexipage:availableForAllPageTypes">

<div>Hello!</div>

</aura:component> How can the component's controller get the context of the Lightning page that the sobject is an without requiring additional best coverage?

Become a Premium Member for full access
  Unlock Premium Member

Question 324

Report Export Collapse

There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user.

The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, *Maximum view state size limit exceeded.

What step should the developer take to resolve this issue?

Become a Premium Member for full access
  Unlock Premium Member

Question 325

Report Export Collapse

The Account edit button must be overridden in an org where a subset of users still use Salesforce Classic. The org already has a Lightning Component that will do the work necessary for the override, and the client wants to be able to reuse it,

How should a developer implement this?

Become a Premium Member for full access
  Unlock Premium Member

Question 326

Report Export Collapse

Universal Containers needs to integrate with their own, existing, internal custom web application.

The web application accepts JSON payloads, resizes product images, and sends the resized images back to Salesforce.

What should the developer use to implement this integration?

Become a Premium Member for full access
  Unlock Premium Member

Question 327

Report Export Collapse

As part of a custom development, a developer creates a Lightning component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:

• Amount, Probability, Stage, or Close Date

How should the developer access the data that must be displayed?

Become a Premium Member for full access
  Unlock Premium Member

Question 328

Report Export Collapse

Universal Containers has an Apex trigger on Account that creates an Account Plan record when an Account is marked as a Customer. Recently a workflow rule was added so that whenever an Account is marked as a Customer, a 'Customer

Since' date field is updated with today's date.

Since the addition of the workflow rule, two Account Plan records are created whenever the Account is marked as a Customer.

What might cause this to happen?

Become a Premium Member for full access
  Unlock Premium Member

Question 329

Report Export Collapse

A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.

Salesforce Certified Platform Developer II image Question 329 67976 09232024003105000000

What must be added to display the total?

Become a Premium Member for full access
  Unlock Premium Member

Question 330

Report Export Collapse

Which two scenarios require an Apex method to be called imperatively from a Lightning web component?

Choose 2 answers

Become a Premium Member for full access
  Unlock Premium Member
Total 444 questions
Go to page: of 45
Search

Related questions