
PD2-2
Authored by Nicole Vanela
Other
KG
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
93 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
1 min • 1 pt
<lightning:button label="Save" onclick="{!c.handleSave}"/> ({({ handleSave : function (component, event, helper) { helper. saveAndRedirect (component); } }) A company has the Lightning Component above that allows users to click a button to save their changes and redirects them to a different page. Currently, when the user hits the Save button the records are getting saved, but they are not redirected. Which three techniques can a developer use to debug the JavaScript? Choose 3 answers
: Enable Debug Mode for Lightning components for the user.
Use the browser's dev tools to debug the JavaScript.
Use console.log() messages in the JavaScript.
e
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Refer to the markup below: <Template> <!---- other code ----- > <lightning-record-form record-id={recordId} object-apiname="Account" layout-type="Full"> </lightning-record-form> </template> A Lightning web component displays the Account name and two custom fields out of 275 that exist on the object. The custom fields are correctly declared and populated. However, the developer receives complaints that the component performs slowly. What can the developer do to improve the performance?
: Replace layout-type="Full" with fields={fields}
e
e
e
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code. What is the optimal way to store and retrieve the list?
Store the information in custom metadata and access it with the getall() method.
e
e
e
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which interface needs to be implemented by an Aura component so that it may be displayed in modal dialog by clicking a button on a Lightning record page?
e
force: lightning QuickAction
e
e
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
@isTest Static void testMyTrigger() { //Do a bunch of data setup Datafactory.setupDataForMyTriggerTest(); List<Account> acctsBefore = [Select Is_Customer__c FROM Account where id in : Datafactory.Accounts]; //Utility to asser all accounts are not customers before the update AssertUtil.assertNotCustomers(acctBefore); For(Account a : Datafactory.accounts) { a.Is_Customer__c=true; } Update Datafactory.accounts; List acctsAfter = [select Number_Of_Transfers__c from account where id in :DataFactory.accounts]; //Utility to assert Number_of Transfers_c is correct based on data AssertUtil.assertNumberOfTransfers(acctsAfter); The test method above tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated to be customers. The test method fails at the line 20 because of too many soql queries.
Add Test.startTest() before line 18 of the code and add Test.stopTest() after line 18 of the code.
w
w
w
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
A developer created a Lightning web component that uses a lightning-record-edit-form to collect information about Leads. Users complain that they only see one error message at a time about their input when trying to save a Lead record. What is the recommended approach to perform validations on more than one field, and display multiple error messages simultaneously with minimal JavaScript intervention?
e
External JavaScript library
e
e
7.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
company uses their own custom-built enterprise resource planning (ERP) system to handle order management. The company wants Sales Reps to know the status of orders so that if a customer calls to ask about their shipment, the Sales Rep can advise the customer about the order's status and tracking number if it has shipped. Which two methods can make this ERP order data visible in Salesforce? Choose 2 answers
e
Use Salesforce Connect to view real-time Order data in the ERP system
Have the ERP system push the data into Salesforce using the SOAP API.
e
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?