ExamGecko
Ask Question

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

List of questions

Question 291

Report
Export
Collapse

A lead developer is creating tests for a Lightning web component. The component re-renders when a property called bypassSelection. changes its value.

What should the developer use to the test that the component re-renders successfully when the property changes?

Promise. resolve ( )
Promise. resolve ( )
dispatchEvent (new CustomEvent (' bypassSelection'))
dispatchEvent (new CustomEvent (' bypassSelection'))
Windows, Setinterval ( )
Windows, Setinterval ( )
Windows, set State ( )
Windows, set State ( )
Suggested answer: C
asked 23/09/2024
Chuck Crouse
49 questions

Question 292

Report
Export
Collapse

The head of recruiting at Universal Containers wants to provide all internal users the ability to search for open positions by role, department, and location via a new recruiting app, In addition to search, users of the app should be able to refer a fried, apply for a position, and review the status of their current submissions. The app should be made available in Salesforce Mobile, but offline access is not required.

Given these requirements, what is the recommended approach to developer the app?

Visualforce
Visualforce
Lightning Web Components
Lightning Web Components
Lightning Experience Builder
Lightning Experience Builder
Salesforce SDK
Salesforce SDK
Suggested answer: D
asked 23/09/2024
Robert Jebakumar Jayakumar
25 questions

Question 293

Report
Export
Collapse

Which tag should a developer use to display different text while an <apex:commandButton> is executing versus not executing?

<apexactionPoller>
<apexactionPoller>
<ApexactionSupper>
<ApexactionSupper>
<ApexactionStatus>
<ApexactionStatus>
<ApexpageMessages>
<ApexpageMessages>
Suggested answer: C
asked 23/09/2024
Jeffrey Ding
35 questions

Question 294

Report
Export
Collapse

Refer to the code snippet below:

Salesforce Certified Platform Developer II image Question 294 67941 09232024003105000000

When a Lightning web component is rendered, a list of opportunity that match certain criteria should be retrieved from the database and displayed to the end-user.

Which three considerations must the developer implement to make the fetchOpps method available within the Lightning web component?

The fetchOpps method must be annotated with the @InvocableMethod annotation.
The fetchOpps method must be annotated with the @InvocableMethod annotation.
The fetchOpps method must specify the (continustion-true) attribute
The fetchOpps method must specify the (continustion-true) attribute
The fetchOpps method cannot mutate the result set retrieved from the database.
The fetchOpps method cannot mutate the result set retrieved from the database.
The fetchOpps method must specify the (cacheable =true) attribute
The fetchOpps method must specify the (cacheable =true) attribute
The fecthOpps method must be annotated with the @ AuraEnabled annotation.
The fecthOpps method must be annotated with the @ AuraEnabled annotation.
Suggested answer: C, D, E
asked 23/09/2024
Sharhonda Herman
48 questions

Question 295

Report
Export
Collapse

A developer 15 tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in lightning Experience while working seamlessly in multiple device form factors, such as desktops, phones, and tablets. Additionally, the feature must support Addressable URL Tabs and interact with the Salesforce Console APIs.

What arm two approaches a developer can take to build the application and support the business requirements?

Choose 2 answers

Create the application using Aura Components wrapped in Lightning Web Components.
Create the application using Aura Components wrapped in Lightning Web Components.
Create the application using Lightning web Components wrapped in Aura Components.
Create the application using Lightning web Components wrapped in Aura Components.
Create application using Aura Components.
Create application using Aura Components.
Create the application using Lightning Experience Builder.
Create the application using Lightning Experience Builder.
Suggested answer: B, C
asked 23/09/2024
Enrique Villegas
39 questions

Question 296

Report
Export
Collapse

Refer to the markup below:

A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The developer receives complaints that the component performs slowly.

What can the developer do to improve the performance?

Suggested answer: C
asked 23/09/2024
jaimie lloyd
44 questions

Question 297

Report
Export
Collapse

A developer has a Visual force page that automatically assign ownership of an Account to a queue save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails.

What can cause this problem?

The test class does not use the Bulk API for loading test data.
The test class does not use the Bulk API for loading test data.
The test class does not retrieve the updated value from the database.
The test class does not retrieve the updated value from the database.
The test class does not use the seeAllData=true annotation,
The test class does not use the seeAllData=true annotation,
The test class does not implement the Queueabfe interface.
The test class does not implement the Queueabfe interface.
Suggested answer: B
asked 23/09/2024
Krishna Mody
37 questions

Question 298

Report
Export
Collapse

Refer to the code snippet below:

Salesforce Certified Platform Developer II image Question 298 67945 09232024003105000000

A custom object called Credit_Memo_c exist 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 condition within a transaction?

Suggested answer: C
asked 23/09/2024
Carlos Roberto
52 questions

Question 299

Report
Export
Collapse

A company recently deployed a Visualforce page with a custom controller that has a data grid of information about Opportunities in the org.

Users report that they receive a "Maximum view state size limit" error message under certain conditions.

According to Visualforce best practice, which three actions should the developer take to reduce the view state? Choose 3 answers

Use the transient keyword in the Apex controller for variables that do not maintain state.
Use the transient keyword in the Apex controller for variables that do not maintain state.
Use the final keyword In the controller for variables that will not change.
Use the final keyword In the controller for variables that will not change.
Refine any SQQL queries to return only data relevant to the page.
Refine any SQQL queries to return only data relevant to the page.
Use the private keyword in the controller for variables
Use the private keyword in the controller for variables
Use filters and pagination to reduce the amount of data.
Use filters and pagination to reduce the amount of data.
Suggested answer: C, D, E
asked 23/09/2024
Kurt Onal
43 questions

Question 300

Report
Export
Collapse

Assuming the CreateOneAccount class creates one account and implements the Queuetable interface, which syntax tests the Apex code?

Suggested answer: B
asked 23/09/2024
Stefan Hupfloher
45 questions
Total 438 questions
Go to page: of 44
Search

Related questions