Salesforce PD-1 Questions Bank
Salesforce PD-1 Questions Bank
Developer Fundamental: -
1. What is Apex?
d. D) A reporting tool
c. C) 10 = Integer num;
a. A) Before Insert
b. B) After Update
c. C) Before Delete
d. D) After Execute
d. D) To delete records
c. C) A report type
d. D) A dashboard component
d. D) By using SOQL
11. What is the difference between a lookup relationship and a master-detail relationship?
c. C) Lookup relationships allow for roll-up summary fields; master-detail does not.
d. D) There is no difference.
d. D) A dashboard component
a. A) <apex:page>My Page</apex:page>
b. B) <page:apex>My Page</page:apex>
c. C) <apex:page name="MyPage">
d. D) <apex:page>My Page</apex:page>
d. D) A reporting tool
d. D)
17. What is the maximum number of records that can be returned by a SOQL query?
a. A) 10,000
b. B) 50,000
c. C) 100,000
d. D) 1,000,000
d. D) To schedule a job
22. Which of the following is a valid way to create a list of accounts in Apex?
24. Which of the following is a valid SOQL query to count the number of accounts?
a. A) myMethod();
b. B) call myMethod();
c. C) execute myMethod();
d. D) invoke myMethod();
27. What is the maximum number of SOQL queries that can be executed in a single
transaction?
a. A) 100
b. B) 150
c. C) 200
d. D) 300
30. Which of the following is a valid way to define a method that returns a string in Apex?
31. What is the maximum number of DML statements that can be executed in a single
transaction?
A) 100
B) 150
C) 200
D) 300
32. Which of the following is a valid way to declare a constant in Apex?
A) 200
B) 2,000
C) 10,000
D) 50,000
40. Which of the following is a valid way to create a new record in Apex?
A) Create a record
B) Update a record
D) A type of report
A) Screen Flow
B) Record-Triggered Flow
C) Scheduled Flow
D) Data Flow
B) A type of Flow
A) Create a record
B) Update a record
A) Process Builder can perform more complex actions than Workflow Rules.
B) Workflow Rules can only update records, while Process Builder can create records.
C) Process Builder is only for custom objects, while Workflow Rules are for standard objects.
D) There is no difference.
11. Which of the following is a valid way to create a formula in Process Builder?
14. What is the maximum number of criteria that can be defined in a Process Builder process?
A) 5
B) 10
C) 15
D) 20
15. Which of the following is a valid way to create a Quick Action in Salesforce?
B) <page:apex>My Page</page:apex>
C) <apex:page name="MyPage">
D) <apex:page>My Page</apex:page>
30. What is the primary purpose of Process Builder in Salesforce?
A) To create custom objects
B) To automate business processes using a visual interface
C) To write Apex code
D) To create reports and dashboards
31. Which of the following actions can be performed using Process Builder?
A) Create a record
B) Update a record
C) Send an email alert
D) All of the above
32. What is a Flow in Salesforce?
A) A way to visualize data
B) A tool for automating complex business processes
C) A method for writing Apex code
D) A type of report
33. Which of the following is NOT a type of Flow?
A) Screen Flow
B) Record-Triggered Flow
C) Scheduled Flow
D) Data Flow
34. What is the purpose of the Decision element in a Flow?
A) To create a new record
B) To update existing records
C) To branch the flow based on conditions
D) To send an email alert
35. How do you invoke a Flow from Process Builder?
A) By using the "Invoke Flow" action
B) By using the "Call Flow" action
C) By using the "Run Flow" action
D) By using the "Execute Flow" action
36. What is a Workflow Rule?
A) A set of criteria that triggers an action
B) A type of Flow
C) A method for writing Apex code
D) A way to create custom objects
37. Which of the following actions can be performed by a Workflow Rule?
A) Create a record
B) Update a record
C) Send an email alert
D) All of the above
38. What is the difference between Process Builder and Workflow Rules?
A) Process Builder can perform more complex actions than Workflow
Rules.
B) Workflow Rules can only update records, while Process Builder can
create records.
C) Process Builder is only for custom objects, while Workflow Rules
are for standard objects.
D) There is no difference.
39. What is the purpose of the Scheduled Action in Process Builder?
A) To execute actions immediately
B) To execute actions at a specified time in the future
C) To create a new record
D) To update existing records
40. Which of the following is a valid way to create a formula in Process
Builder?
A) By using the "Formula" action
B) By using the "Create Formula" option
C) By using the "Set Formula" option
D) By using the "Formula" field type
41. What is the purpose of the "Immediate Actions" in Process Builder?
A) To execute actions after a specified delay
B) To execute actions immediately when the criteria are met
C) To create a new record
D) To update existing records
42. How do you handle errors in Flow?
A) By using the "Error Handling" element
B) By using the "Fault" path
C) By using the "Try-Catch" block
D) By using the "Error Log" action
43. What is the maximum number of criteria that can be defined in a
Process Builder process?
A) 5
B) 10
C) 15
D) 20
44. Which of the following is a valid way to create a Quick Action in
Salesforce?
A) By using the "Create Quick Action" button in Setup
B) By using the "Quick Action" tab in the object settings
C) By using the "Quick Action" component in Lightning App Builder
D) All of the above
45. What is the primary function of a Record-Triggered Flow?
A) To run on a schedule
B) To execute when a record is created, updated, or deleted
C) To collect user input through screens
D) To send email notifications
46. Which of the following can be used to invoke a Flow from a Process
Builder?
A) Action Type: "Invoke Flow"
B) Action Type: "Call Flow"
C) Action Type: "Run Flow"
D) Action Type: "Execute Flow"
47. What is the maximum number of active Workflow Rules allowed per
object?
A) 5
B) 10
C) 20
D) Unlimited
48. Which of the following is NOT a valid action in Process Builder?
A) Create a record
B) Send an outbound message
C) Launch a Flow
D) Update a record
49. What is the purpose of the "Fault" path in a Flow?
A) To handle successful execution
B) To define actions when an error occurs
C) To create a new record
D) To update existing records
50. Which of the following statements is true about Process Builder?
A) It can only be used for custom objects.
B) It can perform actions across multiple objects.
C) It cannot update records.
D) It is limited to a single action.
51. What is the purpose of the "Scheduled Actions" in Process Builder?
A) To execute actions immediately
B) To execute actions at a specified time in the future
C) To create a new record
D) To update existing records
52. Which of the following is a valid way to create a formula in Process
Builder?
A) By using the "Formula" action
B) By using the "Set Formula" option
C) By using the "Create Formula" button
D) By using the "Formula" field type
53. What is the maximum number of criteria nodes you can have in a single
Process Builder process?
A) 5
B) 10
C) 15
D) 20
54. Which of the following is a valid way to reference a field in a Flow?
A) record.FieldName
B) FieldName
C) record[FieldName]
D) record.FieldName__c
55. What is the purpose of the "Immediate Actions" in Process Builder?
A) To execute actions after a specified delay
B) To execute actions immediately when the criteria are met
C) To create a new record
D) To update existing records
56. How can you ensure that a Flow runs only when a specific condition is
met?
A) By using a Decision element
B) By using a Loop element
C) By using a Record Lookup element
D) By using a Screen element
57. What is the maximum number of active Flows allowed in an
organization?
A) 100
B) 200
C) 300
D) Unlimited
58. Which of the following is a valid way to create a Quick Action in
Salesforce?
A) By using the "Create Quick Action" button in Setup
B) By using the "Quick Action" tab in the object settings
C) By using the "Quick Action" component in Lightning App Builder
D) All of the above
59. What is the purpose of the "Email Alert" action in Workflow Rules?
A) To send an email notification to a user or group
B) To create a new email template
C) To log email activity
D) To update a record with email information
60. What is the primary purpose of a Record-Triggered Flow?
A) To run on a schedule
B) To execute when a record is created, updated, or deleted
C) To collect user input through screens
D) To send email notifications
61. Which of the following actions can be performed using Process Builder?
A) Create a record
B) Update a record
C) Send an email alert
D) All of the above
62. What is the maximum number of active Process Builder processes
allowed per object?
A) 5
B) 10
C) 20
D) Unlimited
63. Which of the following is NOT a valid action in Process Builder?
A) Create a record
B) Send an outbound message
C) Launch a Flow
D) Update a record
64. What is the purpose of the Decision element in a Flow?
A) To create a new record
B) To update existing records
C) To branch the flow based on conditions
D) To send an email alert
65. How do you invoke a Flow from Process Builder?
A) By using the "Invoke Flow" action
B) By using the "Call Flow" action
C) By using the "Run Flow" action
D) By using the "Execute Flow" action
66. What is a Workflow Rule?
A) A set of criteria that triggers an action
B) A type of Flow
C) A method for writing Apex code
D) A way to create custom objects
67. Which of the following actions can be performed by a Workflow Rule?
A) Create a record
B) Update a record
C) Send an email alert
D) All of the above
68. What is the difference between Process Builder and Workflow Rules?
A) Process Builder can perform more complex actions than Workflow
Rules.
B) Workflow Rules can only update records, while Process Builder can
create records.
C) Process Builder is only for custom objects, while Workflow Rules
are for standard objects.
D) There is no difference.
69. What is the purpose of the Scheduled Action in Process Builder?
A) To execute actions immediately
B) To execute actions at a specified time in the future
C) To create a new record
D) To update existing records
70. Which of the following is a valid way to create a formula in Process
Builder?
A) By using the "Formula" action
B) By using the "Create Formula" option
C) By using the "Set Formula" option
D) By using the "Formula" field type
71. What is the purpose of the "Immediate Actions" in Process Builder?
A) To execute actions after a specified delay
B) To execute actions immediately when the criteria are met
C) To create a new record
D) To update existing records
72. How do you handle errors in Flow?
A) By using the "Error Handling" element
B) By using the "Fault" path
C) By using the "Try-Catch" block
D) By using the "Error Log" action
73. What is the maximum number of criteria that can be defined in a
Process Builder process?
A) 5
B) 10
C) 15
D) 20
74. Which of the following is a valid way to create a Quick Action in
Salesforce?
A) By using the "Create Quick Action" button in Setup
B) By using the "Quick Action" tab in the object settings
C) By using the "Quick Action" component in Lightning App Builder
D) All of the above
User Interface
D) A dashboard component
A) <apex:page>My Page</apex:page>
B) <page:apex>My Page</page:apex>
C) <apex:page name="MyPage">
D) <apex:page>My Page</apex:page>
D) To create a button
A) <lightning:component>
B) <aura:component>
C) <apex:component>
D) <ui:component>
A) {!v.fieldName}
B) {!fieldName}
C) {!record.fieldName}
D) {!object.fieldName}
C) To create a button
D) To display an image
12. Which of the following is a valid way to create a custom tab in Salesforce?
D) To create a button
14. Which of the following is a valid way to create a Lightning Web Component (LWC)?
B) To create a button
B) <apex:page name="MyPage">
C) <page:apex>My Page</page:apex>
D) <apex:page title="My Page">
18. What is the purpose of the <apex:form> tag in Visualforce?
A) To create a new record
B) To define a form for user input
C) To display data in a table
D) To create a button
19. Which of the following components is used to create a Lightning
component?
A) <lightning:component>
B) <aura:component>
C) <apex:component>
D) <ui:component>
20. What is the primary purpose of the Lightning App Builder?
A) To create custom objects
B) To build Lightning pages using drag-and-drop functionality
C) To write Apex code
D) To create reports and dashboards
21. Which of the following is a valid way to reference a field in a Lightning
component?
A) {!v.fieldName}
B) {!fieldName}
C) {!record.fieldName}
D) {!object.fieldName}
22. What is the purpose of the @AuraEnabled annotation in Apex?
A) To enable a method to be called from Lightning components
B) To mark a component as a Lightning component
C) To enable debug logging
D) To create a custom object
23. Which of the following is a valid way to create a custom button in
Salesforce?
A) By using the "Custom Button" option in the object settings
B) By using the "Create Button" option in the Setup menu
C) By writing Apex code
D) By creating a Visualforce page
24. What is the purpose of the lightning:input component?
A) To display read-only text
B) To create a text input field
C) To create a button
D) To display an image
25. Which of the following is a valid way to create a Lightning App?
A) By using the Lightning App Builder
B) By using the "Create App" button in Setup
C) By writing Apex code
D) All of the above
26. What is the purpose of the lightning:recordForm component?
A) To display a record in a read-only format
B) To create a new record or edit an existing record
C) To display a list of records
D) To create a custom report
27. Which of the following is a valid way to create a custom tab in
Salesforce?
A) By using the "Custom Tab" option in the object settings
B) By using the "Create Tab" button in Setup
C) By writing Apex code
D) By creating a Visualforce page
28. What is the purpose of the lightning:datatable component?
A) To display data in a tabular format
B) To create a form for user input
C) To display a single record
D) To create a button
29. Which of the following is a valid way to create a Lightning Web
Component (LWC)?
A) By using the lwc:create command in the Salesforce CLI
B) <apex:page name="MyPage">
C) <page:apex>My Page</page:apex>
D) <apex:page title="My Page">
33. What is the purpose of the <apex:form> tag in Visualforce?
A) To create a new record
B) To define a form for user input
C) To display data in a table
D) To create a button
34. Which of the following components is used to create a Lightning
component?
A) <lightning:component>
B) <aura:component>
C) <apex:component>
D) <ui:component>
35. What is the primary purpose of the Lightning App Builder?
A) To create custom objects
B) To build Lightning pages using drag-and-drop functionality
C) To write Apex code
D) To create reports and dashboards
36. Which of the following is a valid way to reference a field in a Lightning
component?
A) {!v.fieldName}
B) {!fieldName}
C) {!record.fieldName}
D) {!object.fieldName}
37. What is the purpose of the @AuraEnabled annotation in Apex?
A) To enable a method to be called from Lightning components
B) To mark a component as a Lightning component
C) To enable debug logging
D) To create a custom object
38. Which of the following is a valid way to create a custom button in
Salesforce?
A) By using the "Custom Button" option in the object settings
B) By using the "Create Button" option in the Setup menu
C) By writing Apex code
D) By creating a Visualforce page
39. What is the purpose of the lightning:input component?
A) To display read-only text
B) To create a text input field
C) To create a button
D) To display an image
40. Which of the following is a valid way to create a Lightning App?
A) By using the Lightning App Builder
B) By using the "Create App" button in Setup
C) By writing Apex code
D) All of the above
41. What is the purpose of the lightning:recordForm component?
A) To display a record in a read-only format
B) To create a new record or edit an existing record
C) To display a list of records
D) To create a custom report
42. Which of the following is a valid way to create a custom tab in
Salesforce?
A) By using the "Custom Tab" option in the object settings
B) By using the "Create Tab" button in Setup
C) By writing Apex code
D) By creating a Visualforce page
43. What is the purpose of the lightning:datatable component?
A) To display data in a tabular format
B) To create a form for user input
C) To display a single record
D) To create a button
44. Which of the following is a valid way to create a Lightning Web
Component (LWC)?
A) By using the lwc:create command in the Salesforce CLI
B) {!fieldName}
C) {!record.fieldName}
D) {!object.fieldName}
50. What is the purpose of the @AuraEnabled annotation in Apex?
A) To enable a method to be called from Lightning components
B) To mark a component as a Lightning component
C) To enable debug logging
D) To create a custom object
51. Which of the following is a valid Visualforce page declaration?
A) <apex:page>My Visualforce Page</apex:page>
B) <apex:page name="MyPage">
C) <page:apex>My Page</page:apex>
D) <apex:page title="My Page">
52. What is the purpose of the <apex:form> tag in Visualforce?
A) To create a new record
B) To define a form for user input
C) To display data in a table
D) To create a button
53. Which of the following components is used to create a Lightning
component?
A) <lightning:component>
B) <aura:component>
C) <apex:component>
D) <ui:component>
54. What is the purpose of the lightning:input component?
A) To display read-only text
B) To create a text input field
C) To create a button
D) To display an image
55. Which of the following is a valid way to create a custom button in
Salesforce?
A) By using the "Custom Button" option in the object settings
B) By using the "Create Button" option in the Setup menu
C) By writing Apex code
D) By creating a Visualforce page
56. What is the purpose of the lightning:recordForm component?
A) To display a record in a read-only format
B) To create a new record or edit an existing record
C) To display a list of records
D) To create a custom report
57. Which of the following is a valid way to create a custom tab in
Salesforce?
A) By using the "Custom Tab" option in the object settings
B) By using the "Create Tab" button in Setup
C) By writing Apex code
D) By creating a Visualforce page
58. What is the purpose of the lightning:datatable component?
A) To display data in a tabular format
B) To create a form for user input
C) To display a single record
D) To create a button
59. What is the maximum number of characters allowed in a custom label in
Salesforce?
A) 255
B) 1,000
C) 5,000
D) 10,000
60. Which of the following is a valid way to create a Lightning App?
A) By using the Lightning App Builder
B) By using the "Create App" button in Setup
C) By writing Apex code
D) All of the above