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

List of questions
Question 411

A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.
Which Apex code feature is required to facilitate this solution?
Question 412

Which two best practices should the developer implement to optimize this code? Choose 2 answers
Question 413

A developer needs to implement a system audit feature that allows users, assigned to a custom profile named 'Auditors', to perform searches against the historical records in the Account object. The developer must ensure the search is able to return history records that are between 6 and 12 months old.
Given the code below, which select statement should be inserted below as a valid way to retrieve the Account History records ranging from 6 to 12 months old?
A)
B)
C)
D)
Question 414

A developer created a Lightning web component mat allows users to Input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of account to apply and is called imperatively from a JavaScript event handler.
Which two changes should the developer make so the Apex method functions correctly.
Choose 2 answers
Question 415

A developer needs to implement a historical Task reporting feature that allows users, assigned to a custom profile named 'Auditors', to perform searches against the Tasks related to the Account object.
The developer must ensure the search is able to return Tasks that are between 12 and 24 months old. It should exclude any tasks which have been deleted, and include Tasks whether archived or not.
Given the following code, which select statement should be inserted at the placeholder as a valid way to retrieve the Tasks ranging from L2 to 24 months old?
Question 416

A developer created an Apex class that updates an Account based on input from a Lightning web component that Is used to register an Account. The update to the Account should only be made if it has not already been registered.
What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time?
Question 417

Consider the below trigger intended to assign the Account to the manager of the Account's region:
Which two changes should a developer make in this trigger to adhere to best practices?
Choose 2 answers
Question 418

Refer to the component code and requirements below:
Requirements:
1. For mobile devices, the information should display in three rows.
2. For desktops and tablets, the information should display in a single row.
Requirement 2 Is not displaying as desired.
Which option has the correct component code to meet the requirements for desktops and tablets?
Question 419

A company accepts orders for customers in their enterprise resource planning (ERP) system that must be integrated into Salesforce as order_ c records with a lookup field to Account. The Account object has an external ID field, ENF_Customer_ID_c.
What should the Integration use to create new Oder_c records that will automatically be related to the correct Account?
Question 420

Given the following containment hierarchy:
What is the correct way to communicate the new value of a property named ''passthrough'' to my-parent-component if the property is defined within my-child-component?
A)
B)
C)
Question