Interview Questions for Sales force developer
1. What are Governor Limits in Salesforce?
In Sales force, it is the Governor Limits which controls how much data or how many records you can store in the shared databases. Why? Because, Sales force is based on the concept of multi-tenant architecture. In simpler words, Sales force uses a single database to store the data of multiple clients/ customers. The below image will help you relate to this concept.
2. Can you edit an apex trigger/ apex class in production environment? Can you edit a Visualforce page in production environment?
No, it is not possible to edit apex classes and triggers directly in production environment. It needs to be done first in Developer edition or testing org or in Sandbox org. Then, to deploy it in production, a user with Author Apex permission must deploy the triggers and classes using deployment tools.
3. What is a Custom Object in Sales force?
Custom Objects are nothing but database tables and are the objects created by you for the storage of information on company or industry. While building a custom object, the Sales force platform automatically builds things such as page layouts, etc for user interfaces. Ex: Property objects that store information on homes sold by a real estate agent.
4. Can you edit an apex trigger/ apex class in production environment? Can you edit a Visualforce page in production environment?
No, it is not possible to edit apex classes and triggers directly in production environment.
It needs to be done first in Developer edition or testing org or in Sandbox org. Then, to deploy it in production, a user with Author Apex permission must deploy the triggers and classes using deployment tools.
However, Visualforce pages can be created and edited in both sandbox and in production only if the page has to do something unique (different values), it would have to be developed via Sandbox.
5. What the difference is between is Null and is Blank?
Use the ISBLANK () function for text fields. As text fields can never be NULL, even if nothing is provided as a value, ISNULL() function takes only an empty value. If ISNULL() is used with a text field then it returns false.
6. Explain custom object in Salesforce?
The custom objects are used to refer specifically to database tables that store data related to company in Salesforce.com
7. What is a bucket field in reports?
A bucket field lets you group related records together by ranges and segments, without the use of complex formulas and custom fields. Bucketing can thus be used to group, filter or arrange report data. When you create a bucket field, you need to define multiple categories (buckets) that are used to group report values. The advantage is that earlier, we had to create custom fields to group or segment certain data.
8. What are the Permission Sets?
A permission set is a collection of settings and permissions for accessing various tools and functions in Salesforce. They are used for the extension of the user’s functional access, without any changes to the profiles. Users can have only one profile but multiple permission sets.
9. What happens to detail record when a master record is deleted? What happens to child record when a parent record is deleted?
In a Master-Detail relationship, when a master record is deleted, the detail record is deleted automatically (Cascade delete). In a Lookup relationship, even if the parent record is deleted, the child record will not be deleted.
10. What is the trigger?
Trigger is the code which nearly acts with database and it is executed before or after the record is updated or inserted.
11. What are Governor Limits? Give three examples?
Sales force works in a multi-tenant environment and imposes runtime limits to have the same performance within the database. These are imposed by the Apex runtime engine and ensure that the code does not misbehave. This way the developer is forced to write efficient, scalable code.
12. Is there a limit for data.com records?
Yes there is limit on data.com and the user can see their limit form setup. Go to setup and click on data.com administration/Users. Then select users section. Here in user section you can see monthly limit and as well as how many records are exported during the month.
13. Which database architecture sales force is based?
Sales force is based on multi-tenant architecture. The single copy of database is shared with multiple users or client.
14. How many active assignment rules can you have in a lead/ case?
Only one rule can be active at a time.
15. Explain the use of writing sharing rules?
Using Sharing rules we can give an access to user or individuals. These access can be edit access (public read and write) or public read only access.
16. What is Sandbox?
Sandbox is a copy for production environment which is used to test newly developed visual force pages or any Force.com application.
17. What are different types of sandboxes in salesforce?
Types of Sandboxes are:
• Developer Pro
• Partial Copy
18. What is static dashboard?
Static dashboards are the basic dashboard with fixed view (Single user perspective) and which is visible to any user who has made a report out of his data.
19. What is minimum test coverage required for trigger to deploy?
In Sales force, if you want to deploy your code to production, then you must make sure that at least 75% of your Apex code is covered by unit tests and all these tests must complete successfully.
20. Explain Master detail relationship in detail?
The parent child relationship in which parent (1 parent) is known as Master and child (n children) are controlled by this master object. If you delete master object its entire dependent child object will get deleted. Remember that master object cannot be empty.
21. What’s the difference between Salesforce.com & Force.com?
Salesforce.com is SaaS(Software-as-a-Service) product while Force.com is a PaaS product (Platform-as-a-Service). Salesforce.com has a selection of prepackaged solutions such as the Sales & Service Cloud that are designed for a specific purpose. While Force.com allows you to build your own applications. Salesforce.com is built on the Force.com platform.