This page was exported from Free Exam Dumps Collection [ http://free.examcollectionpass.com ] Export date:Wed Oct 23 15:33:34 2024 / +0000 GMT ___________________________________________________ Title: 2023 Latest PDI DUMPS Q&As with Explanations Verified & Correct Answers [Q96-Q120] --------------------------------------------------- 2023 Latest PDI DUMPS Q&As with Explanations Verified & Correct Answers PDI dumps Exam Material with 171 Questions NO.96 Which aspect of Apex programming is limited due to multitenancy?  The number of active Apex classes  The number of methods in an Apex Class  The number of records processed in a loop  The number of records returned from database queries NO.97 For which three items can a trace flag be configured? (Choose three.)  Apex Trigger  Apex Class  Process Builder  User  Visualforce NO.98 Which two statements are true about Getter and Setter methods as they relate to Visualforce?  Setter methods always have to be declared global.  There is no guarantee for the order in which Getter methods are called.  A corresponding Setter method is required for each Getter method.  Getter methods pass values from a controller to a page. NO.99 Which three code lines are required to create a Lightning component on a Visualforce page? Choose 3 answers  $Lightning.createComponent  <apex:slds/>  $Lightning.useComponent  $Lightning.use (Missed)  <apex:includeLightning/> NO.100 A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? Choose 2 answers.  Use Schema.RecordTypeInfo returned byRecordType.SObjectType.getDescribe().getRecordTypeInfos().  Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues().  Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues().  Use Schema.RecordTypeInfo returned byOpportunity.SObjectType.getDescribe().getRecordTypeInfos(). NO.101 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  The parent component can use a custom event to pass the data to the child component,  The parent component can use the Apex controller class to send data to the child component.  The parent component can invoke a method in the child component  The parent component can use a public property to pass the data to the child component. NO.102 A Licensed_Professional__c custom object exist in the system with two Master-Detail fields for the following objects: Certification__c and Contact. Users with the “Certification Representative” role can access the Certification records they own and view the related Licensed Professionals records, however users with the“Salesforce representative” role report they cannot view any Licensed professional records even though they own the associated Contact record. What are two likely causes of users in the “Sales Representative” role not being able to access the Licensed Professional records? Choose 2 answers  The organization’s sharing rules for Licensed_Professional__c have not finished their recalculation process.  The organization recently modified the Sales representative role to restrict Read/Write access to Licensed_Professional__c  The organization has a private sharing model for Certification__c, and Contact is the primary relationship in the Licensed_Professional__c object  The organization has a private sharing model for Certification__c, and Certification__c is the primary relationship in the Licensed_Professional__c object. NO.103 A Next Best Action strategy uses an Enhance Element that invokes an Apex method to determinea discount level for a Contact, based on a number of factors. What is the correct definition of the Apex method?  @InvocableMethodglobal static ListRecommendation getLevel(List<ContactWrapper> input){ /*implementation*/ }  @InvocableMethodglobalstatic List<List<Recommendation>> getLevel(List<ContactWrapper> input){ /*implementation*/ }  @InvocableMethodglobal List<List<Recommendation>> getLevel(List<ContactWrapper> input){ /*implementation*/ }  @InvocableMethodglobal RecommendationgetLevel (ContactWrapper input){ /*implementation*/ } NO.104 What is a valid way of loading external JavaScript files into a Visualforce page? (Choose 2)  Using an (apex:includeScript)* tag. >  Using an (apex:define)* tag.  Using a (link)* tag.  Using a (script)* tag. NO.105 A developer must create a CreditcardPayment class that provides an implementation of an existing Payment class. Public virtual class Payment { public virtual void makePayment(Decimal amount) { /*implementation*/ } } Which is the correct implementation?  Public class CreditcardPayment extends Payment {public override void makePayment(Decimal amount) { /*implementation*/ }}  Public class CreditCardPayment implements Payment {public virtual void makePayment(Decimal amount) { /*implementation*/ }}  Public class CreditCardPayment extends Payment {public virtual void makePayment(Decimal amount) { /*implementation*/ }}  Public class CreditCardPayment implements Payment {public override void makePayment(Decimal amount) { /*Implementation*/ }} NO.106 What is the easiest way to verify a user before showing them sensitive content?  Sending the user a SMS message with a passcode.  Calling the generateVerificationUrl method in apex.  Sending the user an Email message with a passcode.  Calling the Session.forcedLoginUrl method in apex. NO.107 What can a Lightning Component contain in its resource bundle? Choose 2 answer  Custom client side rendering behavior.  Build scripts for minification  Properties files with global settings  CSS styles scoped to the component NO.108 A developer is implementingan Apex class for a financial system. Within the class, the variables ‘creditAmount’ and ‘debtAmount’ should not be able to change once a value is assigned. In which two ways can the developer declare the variables to ensure their value can only be assigned one time? Choose 2 answers  Use the static keyword and assign its value in the class constructor.  Use the final keyword and assign its value in the class constructor.  Use the static keyword and assign its value in a static initializer.  Usethe final keyword and assign its value when declaring the variable. NO.109 An org has a single account named ‘NoContacts’ that has no related contacts. Given the query:List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name=’NoContacts’]; What is the result of running this Apex?  accounts[0].contacts is invalid Apex.  accounts[0].contacts is an empty Apex.  accounts[0].contacts is Null.  A QueryException is thrown. NO.110 What is the advantage of Salesforce Lightning?  Uses service side for better handling  Option 4  Pre-defined components to give Standard Look and Feel  Option 3 NO.111 What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)  Loading files from Documents.  One-time loading for duplicate scripts.  Specifying loading order.  Loading scripts in parallel.  Loading externally hosted scripts. NO.112 When using SalesforceDX, what does a developer need to enable to create and manage scratch orgs?  Production  Dev Hub  Environment Hub  Sandbox Explanationhttps://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_scratch_orgs.htm When using SalesforceDX, a developer needs to enable Dev Hub in order to create and manage scratch orgs.A Dev Hub is a special type of org used by developers to store source code and other development-related artifacts. It is also used to create and manage scratch orgs, which are temporary orgs used for development and testing.Reference: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_intro.htmNO.113 A Salesforce Administrator is creating a record-triggered flow. When certain criteria are met, the flow must call an Apex method to execute complex validation involving several types of objects.When creating the Apex method, which annotation should a developer use to ensure the method Can be used within the flow?  @future  @RemoteAction  @InvocableMethod  @AuraEnaled NO.114 What should a developer do to check the code coverage of a class after running all tests?  View the code coverage percentage or the class using the Overalll code Coverage panel in the Developer Console Test tab.  View the Code Coverage column in the list on the Apex Classes page.  Select and run the class on the Apex est Execution page in the Developer Console.  View the Class test Percentage tab on the Apex Class list view in Salesforce Setup. NO.115 What is the data type returned by the following SOSL search? {FIND ‘Acme*’ in name fields returning account,opportunity};  List<List<Account>,List<Opportunity>  Map<sObject,sObject>  Map<Id,sObject>  List<List<sObject>> NO.116 When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)  To generate a PDF document with application data  To create components for dashboards and layouts  To deploy components between two organizations  To modify the page layout settings for a custom object NO.117 A developer creates a custom controller and a custom Visualforce page by using the code block below:public class MyController {public String myString {get {if (myString == null) { myString = ‘a’;}return myString;} private set; } public string getMyString (){return ‘getMyString’;} public string getStringMethod () {if (myString == null) {myString = ‘b’;} return myString;}} <apex:page controller = “MyController”> {!StringMethod}, {!myString}, {!myString} </apex:page> What can the user expect to see when accessing the custom page?  A, a, a  B, b, b  A, b, getMyString  B, a, getMyString NO.118 Uniersal Containers (UC) is developing a process for their sales teams that requires all sales reps to go through a set of scripted steps with each new customer they create.In the first steps of collecting information, UC’s ERP system must be checked via as a REST endpoint to see if the customerexists. If the customer exists, the data must be presented to the sales rep in Salesforce.Which two should a developer implement to satisfy the requirements?Choose2 answer  Flow  Future method  Trigger  Invocable method NO.119 What can be used to override the Account’s standard Edit button for Lightning Experience?  Lightning action  Lightning component  Lightning page  Lightning flow ExplanationA Lightning Component can be used to override the Account’s standard Edit button for Lightning Experience.This allows the developer to create a custom page with custom fields and custom functionality that can be used instead of the standard Edit page. It also allows for the creation of custom navigation and buttons to make the user experience more intuitive and efficient.Reference: https://trailhead.salesforce.com/en/content/learn/projects/quick-start-lightning-componentsNO.120 What is the accurate statement about with sharing keyword? choose 2 answers  Inner class do not inherit the sharing setting from the container class  Both inner and outer class can be declared as with sharing  Either inner class or outer classes can be declared as with sharing but not both  Inner class inherit the sharing setting from the container class  Loading … Share Latest PDI DUMP Questions and Answers: https://www.examcollectionpass.com/Salesforce/PDI-practice-exam-dumps.html --------------------------------------------------- Images: https://free.examcollectionpass.com/wp-content/plugins/watu/loading.gif https://free.examcollectionpass.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2023-11-11 11:09:10 Post date GMT: 2023-11-11 11:09:10 Post modified date: 2023-11-11 11:09:10 Post modified date GMT: 2023-11-11 11:09:10