[Q98-Q122] Exam PDI Realistic Dumps Verified Questions Free [Jul 27, 2023]

Share

Exam PDI Realistic Dumps Verified Questions Free [Jul 27, 2023]

Valid PDI Dumps for Helping Passing Salesforce Exam!

NEW QUESTION # 98
Which standard field is required when creating a new contact record?

  • A. LastName
  • B. Name
  • C. FirstName
  • D. AccountId

Answer: A


NEW QUESTION # 99
Which two sosl searches will return records matching search criteria contained in any of the searchable text fields on an object? choose 2 answers

  • A. [find 'acme*'in all fields returning account,opportunity]
  • B. [find 'acme*'returning account,opportunity]
  • C. [find 'acme*' in text fields returning account,opportunity]
  • D. [find 'acme*' in any fields returning account,opportunity]

Answer: A


NEW QUESTION # 100
A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which
<apex:page> attribute(s) to correctly implement controller functionality?

  • A. StandardController = "case" and extensions =" myControllerExtension"
  • B. Extensions=" myControllerExtension"
  • C. Controller=" myControllerExtension"
  • D. Controller = "case" and extensions =" myControllerExtension"

Answer: A


NEW QUESTION # 101
what are the methods used to show input in classic and lightning ?

Answer:

Explanation:
Use visualforce page in classic and lightning component in lightning


NEW QUESTION # 102
A custom picklist field, Food_Preference__c, exist on a custom object. The picklist contains the following options: 'Vegan','Kosher','No Preference'. The developer must ensure a value is populated every time a record is created or updated. What is the most efficient way to ensure a value is selected every time a record is saved?

  • A. Set a validation rule to enforce a value is selected.
  • B. Mark the field as Required on the field definition.
  • C. Set "Use the first value in the list as the default value" as True.
  • D. Mark the field as Required on the object's page layout.

Answer: A


NEW QUESTION # 103
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which three statements are useful inside the unit test to effectively test the custom controller?
Choose 3 answers

  • A. Test.setCurrentPage(pageRef);
  • B. String nextPage - controller.save().getUrl();
  • C. public ExtendedController(ApexPages StandardController cntrl) { }
  • D. insert pageRef.
  • E. ApexPages.CurrentPage().getParameters().put('input\', 'TestValue');

Answer: A,B,E


NEW QUESTION # 104
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter. How should the developer prevent a cross site scripting vulnerability?

  • A. String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
  • B. String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
  • C. ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
  • D. ApexPages.currentPage() .getParameters() .get('url_param')

Answer: A


NEW QUESTION # 105
Universal Hiring is using Salesforce to capture job applications. A salesforce administrator created two custom objects; Job c acting as the master object, Job application.__: acting as the detail.
What is the recommended tool a developer should use to meet the business requirement?

  • A. Formula field
  • B. Record-triggered flow
  • C. Process Builder
  • D. Apex trigger

Answer: A


NEW QUESTION # 106
A developer must create a ShippingCalculator class that cannot be instantiated and must include a working default implementation of a calculate method, that sub-classes can override.
What is the correct implementation of the ShippingCalculator class?

  • A. Option C
  • B. Option B
  • C. Option A
  • D. Option D

Answer: B


NEW QUESTION # 107
How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?

  • A. By using the hasAccess() method.
  • B. By using the isCreatable() method.
  • C. By using the canCreate() method.
  • D. By using the isInsertable() method.

Answer: B


NEW QUESTION # 108
Universal Container(UC) wants to lower its shipping cost while making the shipping process more efficient.
The Distribution Officer advises UC to implement global addresses to allow multiple Accounts to share a default pickup address. The Developer is tasked to create the supporting object and relationship for this business requirement and uses the Setup Menu to create a custom object called "Global Address". Which field should the developer ad to create the most efficient model that supports the business need?

  • A. Add a Lookup field on the Global Address object to the Account object
  • B. Add a Master-Detail field on the Account object to the Global Address object
  • C. Add a Master-Detail field on the Global Address object to the Account object.
  • D. Add a Lookup field on the Account object to the Global Address object.

Answer: B


NEW QUESTION # 109
When a user edits the Postal Code on an Account, a custom Account text field named ''Timezone'' must be updated based on the values in a postalCodeToTimezone_c custom object.
What should be built to implement this feature?

  • A. Account custom trigger
  • B. Account approval process
  • C. Account workflow rule
  • D. Account assignment rule

Answer: A


NEW QUESTION # 110
Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers

  • A. By using the PageReference.getURL() method
  • B. By using an object standard set controller action
  • C. By using ApexPages.currentPage()
  • D. By using an object standard controller action

Answer: A,B


NEW QUESTION # 111
A developer needs to allow users to complete a form on an Account record that will create a record for a custom object. The form needs to display different fields depending on the user's job role. The functionality should only be available to a small group of users.
Which three things should the developer do to satisfy these requirements?
Choose 3 answers

  • A. Create a dynamic form.
  • B. Add a dynamic action to the Account record page.
  • C. Create a custom permission for the users.
  • D. Add a dynamic action to the user's assigned page layouts.
  • E. Create a Lightning web component.

Answer: A,B,C


NEW QUESTION # 112
A developer must troubleshoot to pinpoint the causes of performance issues when a custom page loads in their org. Which tool should the developer use to troubleshoot?

  • A. AppExchange
  • B. Developer Console
  • C. Salesforce CLI
  • D. Visual Studio Core IDE

Answer: B


NEW QUESTION # 113
A developer created a child Lightning web component nested inside a parent Lightning web component, parent component needs to pass a string value to the child component.
In which two ways can this be accomplished?
Choose 2 answers

  • A. The parent component can use the Apex controller class to send data to the child component.
  • B. Theparent component can invoke a method in the child component
  • C. The parent component can use a public property to pass the data to the child component.
  • D. The parent component can use a custom event to pass the data to the child component,

Answer: C,D


NEW QUESTION # 114
A developer has an integer variable called maxAttempts. The developer meeds to ensure that once maxAttempts is initialized, it preserves its value for the lenght of the Apex transaction; while being able to share the variable's state between trigger executions. How should the developer declare maxAttempts to meet these requirements?

  • A. Declare maxattempts as a private static variable on a helper class
  • B. Declare maxattempts as a constant using the static and final keywords
  • C. Declare maxattempts as a variable on a helper class
  • D. Declare maxattempts as a member variable on the trigger definition.

Answer: B


NEW QUESTION # 115
Which code displays the contents of a Visualforce page as a PDF?

  • A. <apex:page renderAs="pdf">
  • B. <apex:page contentType="application/pdf">
  • C. <apex:page rendersAs="application/pdf">
  • D. <apex:page contentType="pdf">

Answer: A

Explanation:
Reference:
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_output_pdf_renderas.htm You can generate a downloadable, printable PDF file of a Visualforce page using the PDF rendering service. Convert a page to PDF by changing the <apex:page> tag.
<apex:page renderAs="pdf">


NEW QUESTION # 116
Which three options can be accomplished with formula fields? (Choose three.)

  • A. Determine which of three different images to display using the IF function.
  • B. Determine if a datetime field value has passed using the NOW function.
  • C. Return and display a field value from another object using the VLOOKUP function.
  • D. Display the previous value for a field using the PRIORVALUE function.
  • E. Generate a link using the HYPERLINK function to a specific record.

Answer: A,B,E


NEW QUESTION # 117
Which two roll-up summary field types are required to find the average of values on detail records in a Master-Detail relationship?

  • A. Roll-up summary field of type TOTAL
  • B. Roll-up summary field of type COUNT
  • C. Roll-up summary field of type NUM
  • D. Roll-up summary field of type SUM

Answer: B,D


NEW QUESTION # 118
A developer wants to invoke on outbound message when a record meets a specific criteria.
Which three features satisfy this use case?
Choose 3 answer

  • A. Visual Workflow can be used to check the record criteria and send an outbound message without Apex Code.
  • B. Approval Process has the capacity to check the record criteria and send an outbound message without Apex Code
  • C. Process builder can be used to check the record criteria and send an outbound messagewithout Apex Code.
  • D. Process builder can be used to check the record criteria and send an outbound message with Apex Code.
  • E. workflows can be used to check the record criteria and send an outbound message.

Answer: B,D,E


NEW QUESTION # 119
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:

which three statements are accurate about debug logs?
Choose 3 answers

  • A. Debug log levels are cumulative, where FINE log level includes all events logged at the DEBUG, INFO, WARN, and ERROR levels.
  • B. Debug logs can be set for specific users, classes, and triggers.
  • C. Only the 20 most recent debug logs for a user are kept.
  • D. System debug logs are retained for 24 hours.
  • E. The maximum size of a debug log is 5 MB.

Answer: B,C,D


NEW QUESTION # 120
Assuming that 'name; is a String obtained by an <apex:inputText> tag on a Visualforce page.
Which two SOQL queries performed are safe from SOQL injections? Choose 2 answers

  • A. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' +
    String.escapeSingleQuotes(name) + '%\'';
    List<Account> results = Database.query(query);
  • B. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name.noQuotes() + '%\''; List<Account> results = Database.query(query);
  • C. String query = 'SELECT Id FROM Account WHERE Name LIKE \''%' + name + '%\''; List<Account> results = Database.query(query);
  • D. String query = '%' + name + '%';
    List<Account> results = [SELECT Id FROM Account WHERE Name LIKE :query];

Answer: A,D


NEW QUESTION # 121
Which governor limit applies to all the code in an apex transaction?

  • A. Elapsed CPU time
  • B. Elapsed SOQL query time
  • C. Number of new records created
  • D. Number of classes called

Answer: A


NEW QUESTION # 122
......

PDI Exam Dumps For Certification Exam Preparation: https://www.actual4dump.com/Salesforce/PDI-actualtests-dumps.html

Download Free Salesforce PDI Exam Questions & Answer : https://drive.google.com/open?id=1I8JQ95faupkrBf65Hn5P5hIkVszjbkcx