Top 30 Salesforce Interview Questions: QnA Part 1

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.

  1. Introduce yourself.
  2. What is Salesforce?
    Salesforce is a cloud-based customer relationship management (CRM) platform used for managing Sales, Marketing, and customer services.
  3. What is CRM?
    CRM stands for Customer Resource Management Software, used to manage relationships and revenue between the company and the customer.
  4. 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).
  5. What are fields in Salesforce?
    Columns in the database used to collect information are called fields.
  6. What are Records?
    The information collected through fields is stored in rows of the table; these rows are called records.
  7. What are platforms provided by Salesforce?
    SAAS – Salesforce as a Service
    PAAS – Platform as a Service
    IAAS – Infrastructure as a Service
  8. How many datatypes?
    There are 24 datatypes.
  9. 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.
  10. 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.
  11. 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.
  12. 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.
  13. 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.
  14. 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.
  15. What is Polymorphism?
    “One name, many forms” is known as polymorphism. There are two types:
  16. Method Overloading in Apex: Same method name with different parameters in different classes.
  17. Method Overriding in Apex: Same method name with the same parameters in different classes.
  18. 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%)
  19. What is Interface?
    An interface is a blueprint of a class. It consists of static constants and abstract methods.
  20. What is Encapsulation?
    Encapsulation means wrapping code or data together into a single unit.
  21. 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:
  22. What is List: An ordered collection that holds any type of data (primitive or non-primitive).
  23. What is Set: An unordered collection of elements that do not contain any duplicates.
  24. What is Map: A collection of key-value pairs.
  25. What is sObject in Salesforce?
    An sObject represents a record of a particular object, declared in Apex using the API of the object.
  26. What is SOQL?
    SOQL stands for Salesforce Query Language, used to retrieve data from the Salesforce Database according to specified conditions and objects.
  27. What is Dynamic SOQL?
    Dynamic SOQL involves creating a SOQL string at runtime with Apex code.
  28. What is SOSL?
    SOSL stands for Salesforce Object Search Language, used to perform text searches in records.
  29. 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.
  30. 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”

Leave a Comment