TCS – Salesforce Developer Interview Questions

CompanyTCS 2024
Focus AreaSalesforce Developer
Questions10+
Topics4

TCS 2024 Salesforce developer interview experience, shared by a real candidate.

What's Covered

Topics covered in this interview.

01Lightning Web Components2
02SOQL & Data1
03Salesforce Core Concepts1
04General & Experience6

All Interview Questions

Every question asked in this interview, listed one by one.

1Write a component which you have written in your project with apex part.
2How to communicate between siblings components in lwc?
3Tigger: Suppose I am having a csv file with 200 country, regions , there is no bulk upload, how will you get data in salesforce and on account update you should update the region based on country also write a trigger for it.
4What is Integration?
5What are wrapper classes, why we need them?
6How you deploy code?
7Write git command to commit code?
8Do you used agile technology?
9Explain your project.
10Write code to show data in datatable.

More Salesforce Interview Questions to Practice

The extra questions below are not from this interview. They cover the same topics and are commonly asked in Salesforce developer interviews, so they make good practice before your own round.

Apex questions

  • How do you read values from custom metadata types in Apex?
  • What is the difference between static and instance variables in Apex?
  • What is the difference between with sharing, without sharing and inherited sharing?
  • What are governor limits? Name five important ones.
  • What is the difference between Database.insert and the insert DML statement?

Lightning Web Components questions

  • How do you navigate between pages using NavigationMixin?
  • What is shadow DOM, and what is synthetic shadow in LWC?
  • How do you write Jest tests for a Lightning web component?
  • How can a parent component call a public method of a child component?

Triggers questions

  • What is the difference between before and after triggers, and when do you use each?
  • What is the difference between Trigger.new and Trigger.newMap?
  • What is a trigger handler framework, and why use one?
  • Can you make a callout from a trigger? How?

SOQL and Data questions

  • What is the difference between SOQL and SOSL?
  • How do you write a parent-to-child and a child-to-parent relationship query?
  • How do you use aggregate functions and GROUP BY in SOQL?

General and experience questions

  • Which best practices do you follow in Apex and LWC?
  • How do you handle code reviews and technical debt on your team?
  • What is your experience with agile or scrum on Salesforce projects?

Concepts to Revise

Based on the questions on this page, these are the areas most worth revising.

Apex

  • Governor limits for SOQL, DML, CPU time and heap size
  • Bulkification: no SOQL or DML inside loops
  • Sharing keywords and how they affect record access
  • Asynchronous Apex: future, queueable, batch and schedulable
  • Test classes: test data, System.assert, Test.startTest and Test.stopTest
  • Collections and wrapper classes

Lightning Web Components

  • Lifecycle hooks: constructor, connectedCallback, renderedCallback, disconnectedCallback
  • Decorators: @api, @track, @wire and when each is needed
  • Parent to child and child to parent communication using properties and custom events
  • Lightning Data Service and the uiRecordApi functions
  • Calling Apex: wire versus imperative, and cacheable methods
  • Template directives: if:true, for:each, key and lwc:if

Triggers

  • Context variables: isBefore, isAfter, isInsert, isUpdate, isDelete, isUndelete
  • Trigger.new, Trigger.old, Trigger.newMap and Trigger.oldMap, and in which events each exists
  • One trigger per object with a handler class
  • Preventing recursion with static variables
  • addError to block a save with a message
  • Testing triggers with single and bulk records

How to Prepare

The questions on this page lean towards Apex, Lightning Web Components and Triggers. Spend most of your revision time there, then cover the remaining topics lightly.

  • Practise explaining governor limits and bulkification with a real example from your own project.
  • Build one small component that uses @wire, an imperative Apex call and a custom event, and be ready to explain each part.
  • Write a trigger with a handler class from memory, then test it with 200 records to prove it is bulk safe.
  • Say your answers out loud. Interviewers listen for clear, structured explanations, not memorised definitions.
  • Prepare one or two real examples from your own projects for the general questions.

Preparing for a Salesforce developer interview?

Browse more real company interview experiences and hands-on Apex trigger patterns.

Leave a Reply