最新的Salesforce Platform Developer I (PDI) - PDI免費考試真題
What is the result of the following code snippet?
public word doWork(Account acct) {
for (Integer i = 0; i <= 2007 i++) {
insert acct;
}
public word doWork(Account acct) {
for (Integer i = 0; i <= 2007 i++) {
insert acct;
}
正確答案: C
說明:(僅 Fast2test 成員可見)
Universal Containers has a large number of custom applications that were built using a third-party JavaScript framework and exposed using Visualforce pages. The company wants to update these applications to apply styling that resembles the look and feel of Lightning Experience.
What should the developer do to fulfill the business request in the quickest and most effective manner?
What should the developer do to fulfill the business request in the quickest and most effective manner?
正確答案: A
說明:(僅 Fast2test 成員可見)
Universal Containers (UC) uses out-of-the-box order management, that has a Master-Detail relationship between Order and Order Line Item.
UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.
Which method should be used to calculate the estimated ship date for an Order?
UC stores the availability date on each Order Line Item and Orders are only shipped when all of the Order Line Items are available.
Which method should be used to calculate the estimated ship date for an Order?
正確答案: B
說明:(僅 Fast2test 成員可見)
Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment.
What is the recommended process for deploying the code and configurations to Production?
What is the recommended process for deploying the code and configurations to Production?
正確答案: D
說明:(僅 Fast2test 成員可見)
What is an example of a polymorphic lookup field in Salesforce?
正確答案: C
說明:(僅 Fast2test 成員可見)
A developer is creating a Lightning web component to show a list of sales records.
The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field.
How should this be enforced so that the component works for both users without showing any errors?
The Sales Representative user should be able to see the commission field on each record. The Sales Assistant user should be able to see all fields on the record except the commission field.
How should this be enforced so that the component works for both users without showing any errors?
正確答案: C
說明:(僅 Fast2test 成員可見)
Universal Containers has a Visualforce page that displays a table of every Container__c being rented by a given Account. Recently this page is failing with a view state limit because some of the customers rent over
10,000 containers.
What should a developer change about the Visualforce page to help with the page load errors?
10,000 containers.
What should a developer change about the Visualforce page to help with the page load errors?
正確答案: C
說明:(僅 Fast2test 成員可見)
A developer wants to send an outbound message when a record meets a specific criteria.
Which two features satisfy this use case?
Which two features satisfy this use case?
正確答案: A,D
說明:(僅 Fast2test 成員可見)
Universal Containers has implemented an order management application. Each Order can have one or more Order Line items. The Order Line object is related to the Order via a master-detail relationship. For each Order Line item, the total price is calculated by multiplying the Order Line item price with the quantity ordered.
What is the best practice to get the sum of all Order Line item totals on the Order record?
What is the best practice to get the sum of all Order Line item totals on the Order record?
正確答案: C
說明:(僅 Fast2test 成員可見)
A developer is integrating with a legacy on-premise SQL database.
What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?
What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?
正確答案: C
說明:(僅 Fast2test 成員可見)
A developer is creating an app that contains multiple Lightning web components.
One of the child components is used for navigation purposes. When a user clicks a button called Next in the child component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?
One of the child components is used for navigation purposes. When a user clicks a button called Next in the child component, the parent component must be alerted so it can navigate to the next page.
How should this be accomplished?
正確答案: A
說明:(僅 Fast2test 成員可見)
A developer created a custom order management app that uses an Apex class. The order is represented by an Order object and an OrderlItem object that has a master-detail relationship to Order. During order processing, an order may be split into multiple orders.
What should a developer do to allow their code to move some existing OrderItem records to a new Order record?
What should a developer do to allow their code to move some existing OrderItem records to a new Order record?
正確答案: A
說明:(僅 Fast2test 成員可見)
Which two are best practices when it comes to Aura component and application event handling?
Choose 2 answers
Choose 2 answers
正確答案: A,C
說明:(僅 Fast2test 成員可見)
A development team wants to use a deployment script to automatically deploy to a sandbox during their development cycles.
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers
Which two tools can they use to run a script that deploys to a sandbox?
Choose 2 answers
正確答案: C,D
說明:(僅 Fast2test 成員可見)