Interview Questions - Set I
Ques 1.
Explain Below
<apex:actionFunction>
<apex:actionSupport>
<apex:commandLink>
<apex:outputLink>
<apex:outputText>
<flow:interview>
Ques 2.
What are Best code practices?
Ans: below are the best practices (https://developer.salesforce.com/page/Apex_Code_Best_Practices)
#1: Bulkify your Code
#2: Avoid SOQL Queries or DML statements inside FOR Loops
#3: Bulkify your Helper Methods
#4: Using Collections, Streamlining Queries, and Efficient For Loops
#5: Streamlining Multiple Triggers on the Same Object
#6: Querying Large Data Sets
#7: Use of the Limits Apex Methods to Avoid Hitting Governor Limits
#8: Use @future Appropriately
#9: Writing Test Methods to Verify Large Datasets
#10: Avoid Hardcoding IDs
Ques 3.
How to bypass Mixed DML operation error in main class?
Ans: Asynchronous call (Future Call, Batch Job, Queueable Job)
Ques 4.
How can we query More than 50000 rows?
Ans: use SOQL with "Read Only". That will fetch upto 5 lakh records.
Ques 5.
How to setup service cloud & sales cloud.
Ans:
Service Cloud:
Ques 6.
Service Cloud:
- Go to Setup.
- In Quick find box, type 'Support Process'.
- Click on Support Process, and press New button.
- Fill Required Information.
- Select the Case status values shown on left side to right side.
- Go to Setup --> Cases --> Record type
- Create new Record Type with existing support process.
Sales Cloud:
- Go to Setup.
- In Quick find box, type 'Sales Processes'.
- Click on Sales Process, and press New button.
- Fill Required Information.
- Select the Opportunity status values shown on left side to right side.
- Go to Setup --> Opportunity --> Record type
- Create new Record Type with existing Sales process.
How to migrate Japanese data from one org to another org using Data Loader.
Ques 7.
Can we call callouts using batch job, how, what is the time limit.
Ans: Yes, we can. Time limit is 120 sec.
Ques 8.
Explain Rest & SOAP api with scenario's.
Ques 9.
What is the difference between Roles, Profiles. How they are important for Salesforce security.
Ans: Roles are used to defined Record level access, while Profiles are used to define Object level access.
Ans: Roles are used to defined Record level access, while Profiles are used to define Object level access.
Ques 10.
What is OWD and how to setup it for Community User.
Ques 11.
Can we delete users in Salesforce and how?
Ans: No, we can deactivate them.
Ans: No, we can deactivate them.
Ques 12.
Can we query Deleted record (recycle bin) in developer console?
Ans: [Select Id, Name FROM Report WHERE IsDeleted = True ALL ROWS]
Ques 13.
What are Sharing setting, Manual share, Apex share. Explain with example.
Ans:
Sharing Setting, are used to define Record Level access on particular record for a particular user. There are three types of Sharing:
1. Manual Share:
This type of sharing enabled, when the OWD of an object is set to "Private". To share a record manually, user must have access over the record to share eg: Owner
2. Apex Share:
When we want to share the records based on some values using Apex. We use apex sharing to create new sharing records for user.
3. Criteria Based Sharing:
This sharing is used to share a record using configuration from OWD sharing setting.
Ans:
Sharing Setting, are used to define Record Level access on particular record for a particular user. There are three types of Sharing:
1. Manual Share:
This type of sharing enabled, when the OWD of an object is set to "Private". To share a record manually, user must have access over the record to share eg: Owner
2. Apex Share:
When we want to share the records based on some values using Apex. We use apex sharing to create new sharing records for user.
3. Criteria Based Sharing:
This sharing is used to share a record using configuration from OWD sharing setting.
Ques 14.
If OWD is public read/write, can we enable manual share? or What are the pre-requisite for Manual share.
Ans: No, to manually share a record OWD setting must not be Public Read / Write and User must have permission to share the record.
Ans: No, to manually share a record OWD setting must not be Public Read / Write and User must have permission to share the record.
Ques 15.
Can we migrate custom object tabs with Change set, and if yes, explain how they will be assigned to profiles?
Ques 16.
Can we assign permission set to group, queue?
Ans: No. Only to user's
Ans: No. Only to user's
Ques 17.
What is use of Permission set, and how they can be assigned using Apex.
Ans: Permission Sets are used to open access on objects for particular user's which are not provided by Profile permissions.
To assign Permission Set, create a new record for "PermissionSetAssignment"
Ans: Permission Sets are used to open access on objects for particular user's which are not provided by Profile permissions.
To assign Permission Set, create a new record for "PermissionSetAssignment"
Ques 18.
Can we provide View all, modify all access on Standard object in profile.
Ans: No, create Permission Set and assign to user.
Ans: No, create Permission Set and assign to user.
Ques 19.
What is author apex permissions.
Ans:
Author apex is profile level permission. This permission is for Developer's to execute and write apex in org.
Author apex is profile level permission. This permission is for Developer's to execute and write apex in org.
Ques 20.
What are Automation process, explain each of them
- Process builder
- Approval Process
- Workflow
Ques 21.
What is difference between Process Builder and Workflow.
Ans: Process builder is much advanced approach as compare to Workflow.
Benefits of Process Builder:
Ans: Process builder is much advanced approach as compare to Workflow.
Benefits of Process Builder:
- Send Email Alert
- Field Update
- Create New task
- Compare Reference Values.
- Initiate Approval Processes.
Ques 22.
When we need to choose Workflow over Process Builder.
Ans: When we need to send Outbound Messages
Ans: When we need to send Outbound Messages
Ques 23.
Do you know User Email Setting, if yes, what is return address and how to set it up using apex.
Ans: Yes, User Email Settings are basically Reply-To Address that is defined under User --> My Setting --> Email Setting.
This email is used to set particular Email Address where customer will response.
Query: [SELECT Id, SenderEmail FROM User]
Ans: Yes, User Email Settings are basically Reply-To Address that is defined under User --> My Setting --> Email Setting.
This email is used to set particular Email Address where customer will response.
Query: [SELECT Id, SenderEmail FROM User]
Ques 24.
What are various type of Reports.
Ans: There are 4 types of reports:
Ans: There are 4 types of reports:
- Matrix report
- Summary Report
- Tabular Report
- Joint Report
Comments