Tavant Salesforce Interview Questions

CompanyTavant
Focus AreaSalesforce Developer
Questions21+
Topics4

Tavant – Salesforce Developer Interview Questions

What's Covered

Topics covered in this interview.

01SOQL & Data7
02Apex & Triggers4
03Salesforce Core Concepts1
04General & Experience9

All Interview Questions

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

1Can I make a callout after DML operation in the same transaction?
2What is LIKE clause in SOQL?
3Explain various operators in SOQL?
49. What is FOR UDATE clause in SOQL?
5Which DML operations we can perform using Database class?
6Why there is a need for code bulkification?
7Which trigger event allows a developer to update fields in the Trigger.new list without using an additional DML statement?
8Can we call REST in Trigger?
9What is System.runAs() in test class?
10What are the best practices while implementing the triggers?
11What will you do if a method inside apex class need to be executed only when it is getting called from trigger?
12Why does Salesforce offers sandboxes and a set of deployment tools?
13What is rollup summery field?
14Tell me about Event Monetoring?
15What are ways to find data bridge?
16What is Audit Trail?
17Explain the concept and use of sharing and without sharing.
18What are sandboxes? What are various types of sandboxes?
19What is test.starttest() and test.stoptest() ?
20What are custom exceptions? How to write the custom exceptions?
21What is FIELD_CUSTOM_VALIDATION_EXCEPTION Error?

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.

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?
  • How do you bulkify a trigger?
  • Why can you not update the records in Trigger.new directly inside an after trigger?

Apex questions

  • What does @AuraEnabled(cacheable=true) do?
  • How do you handle exceptions in Apex, and what is a custom exception?
  • What is a SOQL for loop, and why is it useful for large result sets?
  • What is Database.Stateful in Batch Apex?

SOQL and Data questions

  • What are the limits on the number of SOQL queries and rows returned?
  • What is dynamic SOQL, and how do you prevent SOQL injection?
  • What is the difference between a lookup and a master-detail relationship?
  • What is an external ID, and how is it used with upsert?

Deployment and Tools questions

  • What are the steps and test levels for deploying to production?
  • What is the difference between the Metadata API and the Tooling API?
  • What is the difference between change sets and source-driven development with Salesforce DX?

General and experience questions

  • How do you approach debugging a production issue?
  • How do you decide between a declarative and a programmatic solution?
  • Which best practices do you follow in Apex and LWC?

Concepts to Revise

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

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

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

SOQL and Data

  • SOQL clauses: WHERE, ORDER BY, LIMIT, OFFSET, GROUP BY, HAVING
  • Relationship queries and subqueries
  • Aggregate functions and AggregateResult
  • SOSL versus SOQL and when to use each
  • Dynamic SOQL and bind variables
  • Lookup, master-detail and roll-up summary fields

How to Prepare

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

  • Write a trigger with a handler class from memory, then test it with 200 records to prove it is bulk safe.
  • Practise explaining governor limits and bulkification with a real example from your own project.
  • Run relationship, aggregate and subquery examples in the Developer Console until you can write them without looking.
  • 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