Attested PDI Dumps PDF Resource [2023]
Latest PDI Actual Free Exam Questions Updated 171 Questions
Salesforce PDI (Platform Developer I) Certification Exam is designed for developers who are responsible for designing and developing custom applications on the Salesforce platform. Passing PDI exam demonstrates that the developer has the skills and knowledge necessary to develop custom applications and solutions on the Salesforce platform.
NEW QUESTION # 49
Which annotation exposes an Apex class as a RESTful web service?
- A. @Httplnvocable
- B. @AuraEnabled
- C. @Remote Action
- D. @RestResource
Answer: B
NEW QUESTION # 50
When creating unit tests in Apex, which statement is accurate?Choose 2
- A. System Assert statements that do not Increase code coverage contribute important feedback in unit tests
- B. Unit tests with multiple methods result in all methods failing every time one method fails.
- C. Increased test coverage requires large test classes with many lines of code in one method.
- D. Triggers do not require any unit tests in order to deploy them from sandbox to production.
Answer: A,C
NEW QUESTION # 51
Universal Containers recently transitioned from Classic to Lighting Experience. One of its business processes requires certain value from the opportunity object to be sent via HTTP REST callout to its external order management system based on a user-initiated action on the opportunity page. Example values are as follow Name Amount Account Which two methods should the developer implement to fulfill the business requirement? (Choose 2 answers)
- A. Create a Process Builder on the Opportunity object that executes an Apex immediate action to perform the HTTP REST callout whenever the Opportunity is updated.
- B. Create a Lightning component that performs the HTTP REST callout, and use a Lightning Action to expose the component on the Opportunity detail page.
- C. Create an after update trigger on the Opportunity object that calls a helper method using @Future(Callout=true) to perform the HTTP REST callout.
- D. Create a Visualforce page that performs the HTTP REST callout, and use a Visualforce quick action to expose the component on the Opportunity detail page.
Answer: B,C
NEW QUESTION # 52
Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1,000,000. A developer created the following trigger on the Account object to satisfy this requirement.
Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, It fails with system. Exception errors.
Which two actions should the developer take to fix the code segment shown above?
Choose 2 answers
- A. Use Database.query to query the opportunities.
- B. Move the DML that saves opportunities outside the for loop.
- C. Query for existing opportunities outside the for loop.
- D. Check if all the required fields for Opportunity are being added on creation.
Answer: B,C
NEW QUESTION # 53
A developer created a Lightning web component called statusComponent to be inserted into the Account record page.
Which two things should the developer do to make the component available?
- A. Add < masterLabel>Account</master Label> to the statusComponent.js-meta ml file.
- B. Add <isExposed> true</isExposed> to the statusComponent.js-meta ml file.
- C. Add <target> lighting _RecordPage </target> to the statusComponent.js-meta ml file.
- D. Add<target> Lightning_RecordPage </target> to the statusComponent.js file.
Answer: B,C
NEW QUESTION # 54
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles. Which tool should they use to deploy to the sandbox?
- A. Change Sets
- B. VSCode
- C. Developer Console
- D. Ant Migration Tool
Answer: D
NEW QUESTION # 55
Which two ways can a developer instantiate a PageReference in Apex? Choose 2 answers
- A. By using an object standard controller action
- B. By using an object standard set controller action
- C. By using the PageReference.getURL() method
- D. By using ApexPages.currentPage()
Answer: B,C
NEW QUESTION # 56
Which query should a developer use to obtain the Id and Name of all the Leads, Accounts, and Contacts that have the company name "Universal Containers"?
- A. FIND 'Universal Containers' IN CompanyName Fields RETURNING lead(id,name), account (id,name), contact(id,name)
- B. SELECT lead(id, name), account(id, name), contact(id,name) FROM Lead, Account, Contact WHERE Name = 'Universal Containers'
- C. SELECT Lead.id, Lead. Name, Account.id, Account.Name, Contact.Id, Contact. Name FROM Lead, Account, Contact WHERE CompanyName = 'Universal Containers'
- D. IND 'Universal Containers' IN Name Fields RETURNING lead(id, name), account(id,name), contact(id,name)
Answer: D
NEW QUESTION # 57
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. Visual Studio Core IDE
- C. Developer Console
- D. Salesforce CLI
Answer: C
NEW QUESTION # 58
A developer receives an error when trying to call a global server-side method using the @remoteAction decorator.
How can the developer resolve the error?
- A. Add static to the server-side method signature.
- B. A Decorate the server-side method with (static=true).
- C. Change the function signature to be private static.
- D. Decorate the server-side method with (static=false).
Answer: B
NEW QUESTION # 59
Given the following trigger implementation:
trigger leadTrigger on Lead (before update){
final ID BUSINESS_RECORDTYPEID = '012500000009Qad';
for(Lead thisLead : Trigger.new){
if(thisLead.Company != null && thisLead.RecordTypeId != BUSINESS_RECORDTYPEID){ thisLead.RecordTypeId = BUSINESS_RECORDTYPEID;
}
}
}
The developer receives deployment errors every time a deployment is attempted from Sandbox to Production.
What should the developer do to ensure a successful deployment?
- A. Ensure BUSINESS_RECORDTYPEID is retrieved using Schema.Describe calls.
- B. Ensure BUSINESS_RECORDTYPEID is pushed as part of the deployment components.
- C. Ensure the deployment is validated by a System Admin user on Production.
- D. Ensure a record type with an ID of BUSINESS_RECORDTYPEID exists on Production prior to deployment.
Answer: B
NEW QUESTION # 60
A developer needs an Apex method that can process Account or Contact records. Which method signature should the developer use?
- A. Public void doWork(sObject theRecord)
- B. Public void doWork(Record theRecord)
- C. Public void doWork(Account Contact)
- D. Public void doWork(Account || Contatc)
Answer: A
NEW QUESTION # 61
A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce. Which statement can a developer use to retrieve the correct URL for the current user'sprofile and display this on a Visualforce Page?
- A. {!$Setup.Url_Settings__C.Instance[Profile.Id].URL__c}
- B. {!$Setup.Url_Settings__C.[Profile.Id].URL__c}
- C. {!$Setup.Url_Settings__C.[$Profile.Id].URL__c}
- D. {!$Setup.Url_Settings__C.URL__c}
Answer: D
NEW QUESTION # 62
Which three process automations can immediately send an email notification to the owner of an Opportunity when its Amount is changed to be greater than $10,000? Choose 3 answers
- A. Escalation Rule
- B. Process Builder
- C. Workflow Rule
- D. Approval Process
- E. Flow Builder
Answer: B,C,D
NEW QUESTION # 63
Which three steps allow a custom SVG to be included in a Lightning web component? Choose 3 answers
- A. Reference the getter in the HTML template. (Missed)
- B. Import the static resource and provide a getter for it in JavaScript. (Missed)
- C. Reference the import in the HTML template.
- D. Import the SVG as a content asset file.
- E. Upload the SVG as a static resource. (Missed)
Answer: A,B,E
NEW QUESTION # 64
Which two number expressions evaluate correctly? (Choose two.)
- A. Integer I = 3.14159;
- B. Long l = 3.14159;
- C. Double d = 3.14159;
- D. Decimal d = 3.14159;
Answer: C,D
NEW QUESTION # 65
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. Add a dynamic action to the user's assigned page layouts.
- B. Create a custom permission for the users.
- C. Create a dynamic form.
- D. Create a Lightning web component.
- E. Add a dynamic action to the Account record page.
Answer: B,C,E
NEW QUESTION # 66
The following automations already exist on the Account object;
* A workflow rule that updates a field when a certain criteria is met
* A custom validation on a field
* A How that updates related contact records
A developer created a trigger on the Account object.
What should the developer consider while testing the trigger code?
- A. The trigger may fire multiple times during a transaction.
- B. The flow may be launched multiple times.
- C. A workflow rule field update will cause the custom validation to run again.
- D. Workflow rules will fire only after the trigger has committed all DML operations to the database.
Answer: A
NEW QUESTION # 67
A developer is building custom search functionality that uses SOSL to search account and contact records that match search terms provided by the end user. The feature is exposed through a Lightning web component, and the end user is able to providea list of terms to search.
Consider the following code snippet:
What is the maximum number of search terms the end user can provide to successfully execute the search without exceeding a governor limit?
- A. 0
- B. 1
- C. 2,000
- D. 2
Answer: A
NEW QUESTION # 68
Which two are phases in the Salesforce Application Event propagation framework? Choose
2 answers
- A. Bubble
- B. Default
Answer: A,B
NEW QUESTION # 69
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?
- A. Public class CreditCardPayment extends Payment {
public virtual void makePayment(Decimal amount) { /*implementation*/ }
} - B. Public class CreditCardPayment implements Payment {
public override void makePayment(Decimal amount) { /*Implementation*/ }
} - C. Public class CreditCardPayment implements Payment {
public virtual void makePayment(Decimal amount) { /*implementation*/ }
} - D. Public class CreditcardPayment extends Payment {
public override void makePayment(Decimal amount) { /*implementation*/ }
}
Answer: D
NEW QUESTION # 70
Which two statements are true regarding formula fields? Choose 2 answers
- A. Fields that are referenced by formula field can not be deleted until the formula is modified or deleted.
- B. When concatenating fields, line breaks can be added to improve readability.
- C. When using the & operator to concatenate strings, the result is automatically truncated to fit the destination.
- D. Formula fields may reference formula field on the same object to a level of one deep.
Answer: A,D
NEW QUESTION # 71
......
To be eligible to take the Salesforce PDI exam, candidates need to have a solid understanding of the Salesforce platform and its development tools. They should have experience in developing custom applications using Apex, Visualforce, and other Salesforce technologies. Candidates should also have a good understanding of data modeling, integration, and security concepts.
PDI Certification Overview Latest PDI PDF Dumps: https://www.vceengine.com/PDI-vce-test-engine.html
Free PDI Exam Braindumps certification guide Q&A: https://drive.google.com/open?id=1oUVBlnYGFgZHH6Ey6JTZIC8LDR_AKVRV
