Prepare for your Salesforce interview with a comprehensive guide to common questions, covering everything from basic concepts like CRM and objects to advanced topics such as polymorphism, encapsulation, and Salesforce-specific functionalities like SOQL and DML operations. Elevate your understanding and boost your confidence for a successful interview in the dynamic world of Salesforce development.
- Introduce yourself.
- What is Salesforce?
Salesforce is a cloud-based customer relationship management (CRM) platform used for managing Sales, Marketing, and customer services. - What is CRM?
CRM stands for Customer Resource Management Software, used to manage relationships and revenue between the company and the customer. - What are Objects?
Objects are tables in the database. There are two types of objects in Salesforce: Standard Object (provided by Salesforce) and Custom Object (created by the user/developer). - What are fields in Salesforce?
Columns in the database used to collect information are called fields. - What are Records?
The information collected through fields is stored in rows of the table; these rows are called records. - What are platforms provided by Salesforce?
SAAS – Salesforce as a Service
PAAS – Platform as a Service
IAAS – Infrastructure as a Service - How many datatypes?
There are 24 datatypes. - What are the names of Datatypes in Salesforce?
Autonumber, Formula, Checkbox, Date, DateTime, Time, Email, Phone, Number, URL, Currency, Lookup Relationship, Master-Detail Relationship, External Lookup Relationship, Rollup Summary, GeoLocation, Text, Text Area, Text Area (Long), Text Area (Rich), Text (Encrypted), Picklist, Picklist (Multiselect), Percent. - What is Self-Lookup?
A custom object creates a lookup relationship with itself, allowing records within the same object. It’s commonly used to establish hierarchical relationships. - What is Lookup relationship?
A lookup is a relationship between two objects, where an object field refers to the ID of another object. Lookups are commonly used to create relationships between standard and custom objects. - What is Master-Detail Relationship?
A master-detail relationship establishes a parent-child connection between two objects, with the master acting as the parent and the detail as the child. The master record controls certain behaviors of the detail records. - What are Triggers?
Triggers are pieces of Apex Code that execute before or after records are inserted, updated, deleted, responding to events such as before insert, before update, before delete, after insert, after update, after delete, after undelete. - What is Inheritance?
Inheritance allows us to inherit the properties or methods of a class. The base class acts as the parent, and the class that is inheriting is called the child class. - What is Polymorphism?
“One name, many forms” is known as polymorphism. There are two types: - Method Overloading in Apex: Same method name with different parameters in different classes.
- Method Overriding in Apex: Same method name with the same parameters in different classes.
- What is Abstraction in OOPs?
Abstraction shows only essential attributes and hides unnecessary information. It is achieved through:
Abstract class (0 to 100%)
Interface (100%) - What is Interface?
An interface is a blueprint of a class. It consists of static constants and abstract methods. - What is Encapsulation?
Encapsulation means wrapping code or data together into a single unit. - What is Collection in Salesforce?
A collection allows storing multiple records/values of a particular data type (primitive or non-primitive). There are three types: - What is List: An ordered collection that holds any type of data (primitive or non-primitive).
- What is Set: An unordered collection of elements that do not contain any duplicates.
- What is Map: A collection of key-value pairs.
- What is sObject in Salesforce?
An sObject represents a record of a particular object, declared in Apex using the API of the object. - What is SOQL?
SOQL stands for Salesforce Query Language, used to retrieve data from the Salesforce Database according to specified conditions and objects. - What is Dynamic SOQL?
Dynamic SOQL involves creating a SOQL string at runtime with Apex code. - What is SOSL?
SOSL stands for Salesforce Object Search Language, used to perform text searches in records. - What is DML?
DML (Data Manipulation Language) is used to create and modify records in Salesforce, providing straightforward ways to manage records through operations like insert, update, upsert, delete, undelete, and merge. - What is Partial DML?
1.It supports partial execution, meaning if an error is encountered in an apex records execution, it will not roll back the full transaction.
2.Records with sufficient or valid data will get inserted/updated, while others will be ignored.
2 thoughts on “Top 30 Salesforce Interview Questions: QnA Part 1”