Free PDI Questions for Salesforce Platform Developer I (PDI) PDI Exam as PDF & Practice Test Engine
How does the Lightning Component framework help developers implement solutions faster?
Correct Answer: B
Vote an answer
The values ' High ' , ' Medium ' , and ' Low ' are identified as common values for multiple picklists across different objects.
What is an approach a developer can take to streamline maintenance of the picklists and their values, while also restricting the values to the ones mentioned above?
What is an approach a developer can take to streamline maintenance of the picklists and their values, while also restricting the values to the ones mentioned above?
Correct Answer: B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
A developer created a new after insert trigger on the Lead object that creates Task records for each Lead.
After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart.
Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task insert statement, so that manual restarts are not needed?
After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart.
Which change should the developer make to allow the integration to continue when some records in a batch cause failures due to the Task insert statement, so that manual restarts are not needed?
Correct Answer: A
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Which two actions may cause triggers to fire?
Correct Answer: B,D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
A developer is designing a new application on the Salesforce platform and wants to ensure it can support multiple tenants effectively.
Which design framework should the developer consider to ensure scalability and maintainability?
Which design framework should the developer consider to ensure scalability and maintainability?
Correct Answer: C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
What will be the output in the debug log in the event of a QueryException during a call to the aQuery method if it is following example?
public class myclass { class CustomException extends Exception {}
public static Account aQuery() {
Account theAccount;
try {
system.debug( ' Querying Accounts. ' );
theAccount = [SELECT Id FROM Account WHERE CreatedDate > TODAY];
}
catch (CustomException ex) {
system.debug( ' Custom Exception. ' );
}
catch (QueryException ex) {
system.debug( ' Query Exception. ' );
}
finally {
system.debug( ' Done. ' );
}
return theAccount;
}
public class myclass { class CustomException extends Exception {}
public static Account aQuery() {
Account theAccount;
try {
system.debug( ' Querying Accounts. ' );
theAccount = [SELECT Id FROM Account WHERE CreatedDate > TODAY];
}
catch (CustomException ex) {
system.debug( ' Custom Exception. ' );
}
catch (QueryException ex) {
system.debug( ' Query Exception. ' );
}
finally {
system.debug( ' Done. ' );
}
return theAccount;
}
Correct Answer: D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Refer to the code snippet below:
import fetchOps from ' @salesforce/apex/OpportunitySearch.fetchOpportunities ' ;
@wire(fetchOps) opportunities;
When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.
Which three considerations must the developer implement to make the
fetchOpportunities method available when Lightning web component?
import fetchOps from ' @salesforce/apex/OpportunitySearch.fetchOpportunities ' ;
@wire(fetchOps) opportunities;
When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.
Which three considerations must the developer implement to make the
fetchOpportunities method available when Lightning web component?
Correct Answer: A,C,D
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
A developer is asked to update code that requires them to validate input into a trigger.
Which Apex Control Flow Statement should the developer use?
Which Apex Control Flow Statement should the developer use?
Correct Answer: B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
While writing an Apex class, a developer wants to make sure that all functionality being developed is handled as specified by the requirements.
Which approach should the developer use to be sure that the Apex class is working according to specifications?
Which approach should the developer use to be sure that the Apex class is working according to specifications?
Correct Answer: C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Cloud Kicks Fitness, an ISV Salesforce partner, is developing a managed package application. One of the application modules allows the user to calculate body fat using the Apex class, BodyFat, and its method, calculateBodyFat(). The product owner wants to ensure this method is accessible by the consumer of the application when developing customizations outside the ISV ' s package namespace.
Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?
Which approach should a developer take to ensure calculateBodyFat() is accessible outside the package namespace?
Correct Answer: B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
When importing and exporting data into Salesforce, which two statements are true?
Choose 2 answers
Choose 2 answers
Correct Answer: B,C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
Universal Containers wants to assess the advantages of declarative development versus programmatic customization for specific use cases in its Salesforce implementation.
What are two characteristics of declarative development over programmatic customization?
Choose 2 answers
What are two characteristics of declarative development over programmatic customization?
Choose 2 answers
Correct Answer: A,B
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
A developer needs to make a custom Lightning Web Component available in the Salesforce Classic user interface.
Which approach can be used to accomplish this?
Which approach can be used to accomplish this?
Correct Answer: C
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
A lead developer creates an Apex interface called ' Laptop ' . Consider the following code snippet: public class SilverLaptop{ //code implementation } How can a developer use the ' Laptop ' interface within the ' SilverLaptop ' class?
Correct Answer: A
Vote an answer
Explanation: Only visible for ExamDiscuss members. You can sign-up / login (it's free).
0
0
0
10
