Back to Top
Showing posts with label Salesforce Interview Questions. Show all posts
Showing posts with label Salesforce Interview Questions. Show all posts

Salesforce Developer Interview Questions

Posted on TimeJanuary 7, 2026

 Q:1 Asynchronus Apex

Ans: If we have to run some job that will take some time then in the case of synchronous apex we will get the limit error, heap size error, or timeout error. To avoid such issues, we can do those long-running or time-consuming operations using Asynchronous apex which will run in a separate thread and will not impact the main thread. So Asynchronous Apex is used to run the process in a separate thread at a later time.

Increase User Efficiency
More Heap Size and Higher Governer limit
Better Scalability

Batch Apex
Future methods
Queueable Apex
Scheduled Apex

Q.2 Where we can use Asynchronous Apex?
Sending Email to the user.
Calling an external system for multiple records
Schedule a job for a specific time
Chaining apex code execution which might use

Q. 3 Can a future method call another non-future method to process tasks like callouts, and have those methods return data to the future method for further processing?

No, we can not call future methods from the future method.

Q:4 How many Schedulable Apex jobs can you have at one time? In other words, what is the maximum number of Apex classes that can be scheduled concurrently?
100

Q:5  Why sObject parameters not supported in future methods?
The sObject might change between the time we call the method and the time it executes that’s why sObjects can’t be passed as arguments to future methods. In this case, the future method will get the old sObject values and might overwrite them.

Q:6  Can I call Queueable from a batch?
Yes, But it is limited to just one System.enqueueJob call per execute in the  Database.Batchable class. Salesforce has imposed this limitation to prevent explosive execution.

Q:7 How Future method helps in avoiding Mixed DML errors?

There are 2 kinds of sObjects in salesforce.
1. Non-Setup: Account, opportunity, etc
2. Setup: User, groups,Queue etc
If we are performing DML on both kinds of sObject in a single transaction, the system doesn’t allow it and throws an exception called Mixed DML exception, stating that a transaction can not have a Mixture of DML operation(Setup and Non-Setup).

Q.8 What is Database.QueryLocator & Iterable<sObject>?

In Database.QueryLocator, we use a simple query (SELECT) to generate the scope of objects. The governor limit for the total number of records retrieved by SOQL queries is bypassed, i.e. it can return up to 50 million records.

In Iterable<sObject>, we can create a custom scope for processing, which would be not possible to create using SOQL where clauses. the governor limit for the total number of records retrieved by SOQL queries is still enforced.


Topics For Salesforce Developer Interview Questions

Before attending any Interview, you should revise some topic in Salesforce.


Topics:

Admin

  • Report
  • Dashboard
  • Data Modeling (Object, Field, Relationship)
  • Validation Rule 
  • Record Type 
  • Page Layout
  • Automation Tool(Flow, Approval Process,Process Builder and Workflow)
  • Data Security - Object Level Security, Field Level Security,Record Level Security 
  • (Profile, Permission Set, OWD, Role Sharing Rule, Mannual Sharing)
  • Sales Cloud (If you are in Sales Cloud)
  • Service Cloud (If you are in Service Cloud)
  • Community Cloud/Experience Cloud
  • Assignment Rule
  • Auto Responsive Rule
  • Web To Lead 

Development

  • Apex Programming(Apex class and trigger)
  • Asynchronous Apex: Learning about future methods, batch Apex, queueable Apex, and scheduled Apex for long-running operations.
  • Test Class - Best Practices of Test Class, Some Annotation that are used in Test class 
  • LWC:
    • Lifecycle hook
    • Aura Vs LWC
    • Communication between Component. (Parent to Child, Child to Parent)
    • Way of fetching data from apex
    • Decorators
    • LMS
    • Pub Sub Model
  • SOQL AND SOSL - Parent to Child Relationship Query and Child to Parent Relationship Query, Query with date, filter
  • Governor Limits
  • Integration:
    • REST and SOAP API
    • Inbound and Outbound Integration
    • Restful Resource
    • Authorisation vs Authentication
    • Remote Site Setting
    • Named Credential
    • Connected App
    • Workbench/Postman
  • Deployment:
    • Vscode
    • Change Set
    • Git
    • Sandboxes

By diving deep into these topics, you will be well-equipped to handle both configuration tasks (Admin side) and custom development tasks (Developer side), giving you an edge in job roles, interviews, and real-world problem-solving.

Essential Topics for Salesforce Developer Interview Preparation

Posted on TimeJune 25, 2024

Preparing for a Salesforce Developer interview requires mastering various crucial topics. Here’s a structured guide to help you focus your preparation:

1. Salesforce Fundamentals: 

  • Architecture: Understand multi-tenant architecture and metadata-driven development.
  • Governor Limits: Learn limits and best practices for optimizing performance.
  • Data Modeling: Design and implement objects, fields, relationships, record types, page layouts, and validation rules.


  • 2. Apex Programming:


  • Syntax and Data Types: Master Apex syntax, variables, loops, conditionals, and data structures.
  • Triggers: Know trigger context variables, execution order, and design patterns.
  • Batch and Scheduled Apex: Process data asynchronously and schedule tasks.

  • 3. Visualforce Pages and Lightning Components: 

  • Visualforce: Create custom UIs and integrate with Apex logic.
  • Lightning Components: Understand Aura components and Lightning web components

  • 4. Integration:


  • APIs: Use REST and SOAP APIs for external system integration.
  • Apex REST Services: Develop and consume RESTful services.
  • Data Management: Utilize Data Loader and manage data import/export.

  • 5. Salesforce DX and Tooling:


  • Development Lifecycle: Understand sandbox management and deployment strategies.
  • Version Control: Use Git for versioning and collaboration.
  • Salesforce CLI and VS Code: Leverage tools for development and automation.

  • 6. Data Management:


  • Data Loader: Perform bulk data operations and migrations.
  • Data Relationships: Manage relationships like lookup and master-detail.
  • Data Security: Implement sharing rules, profiles, and permission sets.

  • 7. Governance and Security:


  • Role Hierarchy and Sharing Rules: Control data access with hierarchy and rules.
  • Profiles and Permission Sets: Configure user permissions effectively.
  • Security Best Practices: Follow standards like OWASP Top 10 and CSRF.

  • 8. Advanced Topics: 


  • Lightning App Builder and Community Builder: Build custom applications and portals.
  • Einstein Analytics and AI: Integrate analytics and AI features.
  • Heroku Integration: Extend capabilities with custom applications.

  • 9. Industry-Specific Knowledge:

  • Salesforce Solutions: Understand industry-specific implementations.
  • Compliance and Regulations: Be aware of relevant regulations.

  • Focus on these areas to demonstrate your readiness and excel in your Salesforce Developer interview. Good luck!