Enhance your career with PDII PDF Dumps - True Salesforce Exam Questions [Q69-Q88]

Share

Enhance your career with PDII PDF Dumps - True Salesforce Exam Questions

New (2023) Download free PDII PDF for Salesforce Practice Tests

NEW QUESTION # 69
A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsutils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library.
Which statement properly loads the static resource within the LWC?

  • A. const jsUtility = SA.get ('SReaource.jsUtils');
  • B. <lightning-require scripts=N { ! SReaource. j sUtils}''/>
  • C. import jUtilities from '@salesforce/reaourceUrljsUtila';
  • D. import {jsUtilities} from '@salesforce/reaourceUrljsUtila';

Answer: C


NEW QUESTION # 70
A company exposes a REST web service and wants to establish two-way SSL between Salesforce and the REST web service. A certificate signed by an appropriate certificate authority has been provided to the developer.
What modification is necessary on the Salesforce side? (Choose two.)

  • A. Update the code to use HttpRequest.setHeader() to set an Authorization header
  • B. Configure two-factor authentication with the provided certificate
  • C. Create an entry for the certificate in Certificate and Key Management
  • D. Update the code to use HttpRequest.setClientCertificateName()

Answer: C,D


NEW QUESTION # 71
Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.
What are two alternatives to implement the integration and protect against malicious calls to the Heroku app's endpoint? Choose 2 answers

  • A. Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the re images back to Salesforce.
  • B. Create a trigger that uses an ©future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.
  • C. Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce
  • D. Create a trigger that uses an ©future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key, so that the Heroku app can authenticate requests and store the resized images in Salesforce.

Answer: A,D


NEW QUESTION # 72
What is a benefit of JavaScript remoting over Visualforce Remote Objects?

  • A. Allows for specified re-render targets
  • B. Supports complex server-side application logic
  • C. Does not require any JavaScript code
  • D. Does not require any Apex code

Answer: B


NEW QUESTION # 73
What is the transaction limit for SOQL queries?

  • A. 150 (synchronous), 20 (async)
  • B. 150 (synchronous), 200 (async)
  • C. 100 (synchronous), 200 (async)
  • D. 20 (synchronous), 200 (async)
  • E. 200 (synchronous), 100 (async)

Answer: C


NEW QUESTION # 74
An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce instance.
When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the Contract records created.
What is the most extendable way to update the Apex trigger to accomplish this?

  • A. Use a List Custom Setting to disable the trigger for the user who loads the data.
  • B. Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.
  • C. Use a Hierarchy Custom Setting to skip executing the logic inside the trigger for the user who loads the data.
  • D. Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.

Answer: C


NEW QUESTION # 75
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

  • A. Use the Schema namespace.
  • B. performs a SOQL Query.
  • C. Use a static resource
  • D. Perform a callout to the Metadata API.

Answer: C


NEW QUESTION # 76
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. Remove instances of the transient keyword from the Apex controller to avoid the view state error.
  • C. Adjust any code that filters by picklist values since they are not indexed.
  • D. Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.

Answer: D


NEW QUESTION # 77
A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list of blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of
maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page.
What is the optimal way to implement this?

  • A. Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object.
  • B. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.
  • C. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.
  • D. Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.

Answer: C


NEW QUESTION # 78

Consider the above 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

  • A. Use a Map accountMap instead of List accountList.
  • B. Move the Region__c query to outside the loop.
  • C. Remove the last line updating accountList as it is not needed.
  • D. Use a Map to cache the results of the Region__c query by Id.

Answer: B,C


NEW QUESTION # 79
What is the optimal syntax for adding a link to a case in a Visualforce page? (Choose two.)
<apex:outputLink value="{$URLFOR($Action.Case.Open, case)}" target="blank">

  • A. apex:outputLink>
    <apex:outputLink value="{!URLFOR($Action.Case.View,case.Id)}" target="blank">
  • B. {Icase.Name} </apex:outputLink>
    <apex:outputLink value="/{!case.Id}" target="blank"> {Icase.Name}</
  • C. apex:outputLink>
  • D. (LIE{!case.Name}</apex:outputLink>
    <apex:outputLink value="!viewCase(case.Id)}" target="_blank">{Icase.Name} </

Answer: A,D


NEW QUESTION # 80
A developer has written the following method:
static void processList(List<sobject> input){
Which code block can be used to call the method?

  • A. processList ([FIND 'Acme" 'RETURNING Account])
  • B. processList (acc)
  • C. for Account acc : [SELECT Id, Name FROM Account])
  • D. processList([SELECT Id, Name FROM sObject WHERE Type = 'Account'])

Answer: D


NEW QUESTION # 81
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'

  • A. Streaming API
  • B. Dynamic SOQL
  • C. Dynamic variable binding
  • D. Report API

Answer: B


NEW QUESTION # 82
A developer is creating a page in App Builder that will be used in the Salesforce mobile app.
Which two practices should the developer follow to ensure the page operates with optimal performance?
Choose 2 answers

  • A. Analyze the page with Performance Analysis for App Builder.
  • B. Limit five visible components on the page.
  • C. Limit 25 fields on the record detail page.
  • D. Limit the number of Tabs and Accordion components.

Answer: A,C


NEW QUESTION # 83
global with sharing class MyRemoter {
public String accountName { get; set; }
public static Account account { get; set; }
public AccountRemoter() {}
@RemoteAction
global static Account getAccount(String accountName) {
account = [SELECT Id, Name, NumberOfEmployees
FROM Account WHERE Name = :accountName];
return account;
}
}
Consider the Apex class above that defines a RemoteAction used on a Visualforce search page.
Which code snippet will assert that the remote action returned the correct Account?
Account a = controller.getAccount('TestAccount');

  • A. Account a = remote.getAccount('TestAccount');
    System.assertEquals( 'TestAccount', a.Name );
    MyRemoter remote = new MyRemoter('TestAccount');
  • B. System.assertEquals( 'TestAccount', a.Name );
    MyRemoter remote = new MyRemoter();
  • C. Account a = remote.getAccount ();
    System.assertEquals( 'TestAccount', a.Name );
    Account a = MyRemoter.getAccount('TestAccount');
  • D. System.assertEquals( 'TestAccount', a.Name );

Answer: D


NEW QUESTION # 84
Consider the following queries. For these queries, assume that there are more than 200,000 Account records. These records include soft-deleted records; that is, deleted records that are still in the Recycle Bin. Note that there are two fields that are marked as External Id on the Account. These fields are Customer_Number__c and ERP_Key__c.
Which two queries are optimized for large data volumes? Choose 2 answers

  • A. SELECT Id FROM Account WHERE Name != ' ' AND IsDeleted = false
  • B. SELECT Id FROM Account WHERE Name != NULL
  • C. SELECT Id FROM Account WHERE Id IN : aListVariable
  • D. SELECT Id FROM Account WHERE Name != ' ' AND Customer Number c = 'ValueA'

Answer: C,D


NEW QUESTION # 85
What are three reasons that a developer should write Jest tests for Lightning web components?
Choose 3 answers

  • A. To test a component's non-public properties
  • B. To test how multiple components work together
  • C. To verify that events fire when expected
  • D. To test basic user interaction
  • E. To verify the DOM output of a component

Answer: A,C,E


NEW QUESTION # 86
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
What is the most efficient way to Query such information?

  • A. [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN
  • B. [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld
    = :oppId];
  • C. [Select Amount CloseDate. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];
  • D. [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
  • E. ('StageName', Probability',Amount /CloseDate')];

Answer: A


NEW QUESTION # 87
Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth.
What would allow Universal Containers to switch vendors without updating the code to handle authentication?

  • A. Custom Setting (List)
  • B. Custom Metadata
  • C. Dynamic Endpoint
  • D. Named Credential

Answer: D


NEW QUESTION # 88
......

100% Free PDII Files For passing the exam Quickly: https://www.verifieddumps.com/PDII-valid-exam-braindumps.html

PDII Dumps Questions Study Exam Guide : https://drive.google.com/open?id=1b4tGYVAyxKON6XFywVu2lk5idxdbbaEh