Universal Containers uses a custom Lightning page to provide a mechanism to perform a step-by-step wizard search for Accounts. One of the steps in the wizard is to allow the user to input text into a text field, ERP_Number__c, that is then used in a query to find matching Accounts.
A developer receives the exception 'SOQL query not selective enough. Which step should be taken to resolve the issue?
A. Move the SOQL query to within an asyncronous process.
B. Mark the lRP_Number__c field as an external ID.
C. Perform the SOQL query as part of a for loop.
D. Mark the ERP_Number__c field as required.
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.
What must be added to display the total?
A. Add get total() { return quantity * unitPrice;} to the JavaScript and Total: {total} in the template.
B. Add calculate Total() {return quantity * unitPrice;} to the javaScript and Total : {calculate Total()} in the template.
C. Add Total: {quantity * UnitPrice} in the template.
D. Add Total; {multiple quantit,y unitprice)} in the template.
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?
A. Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex Controller.
B. Adjust any code that filters by picklist values since they are not indexed.
C. Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.
D. Remove instances of the transient keyword from the Apex controller to avoid the view state error.
A lead developer for a Salesforce organization needs to develop a page-centric application that allows the user to interact with multiple objects related to a Contact The application needs to implement a third-party JavaScript framework such as Angular, and must be made available in both Classic and Lightning Experience.
Given these requirements, what is the recommended solution to develop the application?
A. Aura Components
B. Lightning Web Components
C. Visualforce
D. Lightning Experience Builder
Which two scenarios require an Apex method to be called imperatively from a Lightning web component? Choose 2 answers
A. Calling a method that makes a web service callout
B. Calling a method that is not annotated with cacheable=true
C. Calling a method with the click of a button
D. Calling a method that is external to the main controller for the Lightning web component
Refer to the code snippet below:
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?
A. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId FOR REFERENCE LIMIT 50]
B. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId limit 50 FOR REFERENCE]
C. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR UPDATE]
D. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId FOR UPDATE LIMIT=50]
A developer is debugging an Apex-based order creation process that has a requirement to have three savepoints,
SP1, SP2, and SP3 (created in order), before the final execution of the process.
During the final execution process, the developer has a routine to roll back to SP1 for a given condition. Once the condition is fixed, the code then calls a roll back to SP3 to continue with final execution. However, when the roll, back to SP3 is
called, a runtime error occurs.
Why does the developer receive a runtime error?
A. The developer should have called SP2 before calling SP3.
B. SP3 became invalid when SP1 was rolled back.
C. The developer has too many DML statements between the savepoints.
D. The developer used too many savepoints in one trigger session.
A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunity owned by the currently logged-in user.
When the component is rendered, the following message is displayed: `'Error retrieving data''
Which modification should be implemented to the Apex class to overcome the issue?
A. Edit the code to use the without sharing keyword in the Apex class.
B. Use the Cacheable=True attribute in the Apex method.
C. Ensure the OWD for the Opportunity object is public.
D. Use the Continuation=true attribute in the Apex method.
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?
A. The test class does not use the Bulk API for loading test data.
B. The test class does not retrieve the updated value- from the database.
C. The test class does not use the seeAllData=true annotation,
D. The test class does not implement the Queueabfe interface.
Refer to the code snippet below:
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?
A. The fetchOpps method must be annotated with the %InvocableMethod annotation.
B. The fetchOpps method must specify the (continustion-true) attribute
C. The fetchOpps method cannot mutate the result set retrieved from the database.
D. The fetchOpps method must specify the (cacheable =true) attribute
E. The fecthOpps method must be annotated with the @ AuraEnabled annotation.
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.