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
A. Add a UMir dause to the query to reduce the number of records returned.
B. Contact Salesforce customer support to create a custom index to include null values
C. Make the CustomFleld__c field an External ID.
D. Make the field CustomReW__c required because Salesforce field Indexes do not Include nulls.
Consider the following code snippet:
A developer needs to built an interactive Aura component that responds to the user's input by hiding or showing sections according the user preferences.
What are two best practices the developer can implement to hide or show the powerVserView and s-rar.daraVserView inner components, based on the value of the attribute isPowexUser?
Choose 2 answers
A. Option A
B. Option B
C. Option C
D. Option D
A developer receives complaints that the component loads slowly.
Which change can the developer implement to make the component perform faster?
A. Change the default for showContacrlnfo to "false".
B. Move the contents of C. Change the type of contactlnfo to "Map". D. Add a change event handler for showContactinfo
Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? Choose 2 answers
A. SELECT id FROM ACCOUNT WHERE Name = !: ' '
B. SELECT id FROM ACCOUNT WHERE Name = Null
C. SELECT id FROM ACCOUNT WHERE Name = Null AND Customer_Number_c= 'ValueA'
D. SELECT id FROM ACCOUNT WHERE id IN (list of Account Ids)
A company wants to run different logic based on an Opportunity's record type. Which code segment handles this request and follows best practices?
A. Option A
B. Option B
A company accepts orders for customers in their enterprise resource planning (ERP) crder__c records with a lookup field to Account. The Account object has an External ID field, ERP_Customer_ID__c. What should the integration use to create new Order__c records that will automatically be related to the correct Account?
A. Upsert on the Account and specify the ERP_Customer_ID__c.
B. Merge on the Order__c object and specify the ERP_Customer_ID__c.
C. Insert on the Order__c object followed by an update on the Order__c object.
D. Upsert on the Order__c object and specify the ERP_Customer_ID__c.
Refer to the code snippet below:
As part of an Integration development effort, a developer is tasked to create an Apex method mat solely relies on the use of foreign identifiers In order to relate new contact records to existing Accounts in Salesforce. The account object contains a field marked as an external ID, the API Name of this field is Legacy_Id_c.
What Is the most efficient way to instantiate the parentAccount: variable on line 02 to ensure the newly created contact is properly related to the Account?
A. Option A
B. Option B
C. Option C
D. Option D
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. Option A
B. Option B
C. Option C
D. Option D
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?
A. Execute a SOQL query for Amount, Probability, Stage, and Close Date on the OpportunityHistory object.
B. Create custom a custom date field on Opportunity for each field to track the previous date and execute a SOQL query for date fields.
C. Subscribe to the Opportunity Change Data Capture event in the Lightning component.
D. Subscribe to the OpportunityHistory Change Data Capture event in the Lightning component.
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:
What is causing the code coverage problem?
A. The batch process will not recognize new accounts created in the same session
B. The account creation already sets the sates amount to 0.
C. The executeBatch must fail within test. startTest ( ) and ?test. stopTest().
D. The batch needs more than one account record created.
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.