Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by Tech Mahindra Team. If you also belong to the team, you can get access from here

Tech Mahindra Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

Tech Mahindra Software Engineer and Salesforce Developer Interview Questions, Process, and Tips

Updated 30 Apr 2024

Tech Mahindra Software Engineer and Salesforce Developer Interview Experiences

1 interview found

Interview experience
3
Average
Difficulty level
Moderate
Process Duration
4-6 weeks
Result
Selected Selected

I applied via Naukri.com and was interviewed before Apr 2023. There was 1 interview round.

Round 1 - Technical 

(10 Questions)

  • Q1. What is roles and profile in Salesforce?
  • Q2. Explain security model in Salesforce?
  • Ans. 

    Salesforce security model ensures data protection through various layers of security features.

    • Salesforce uses a role hierarchy to control access to data based on user roles.

    • Permissions and sharing settings determine what data users can access.

    • Field-level security restricts access to specific fields on objects.

    • Profiles and permission sets define user permissions and access levels.

    • Salesforce also offers encryption option

  • Answered by AI
  • Q3. What is difference between lookup and master details relationship in Salesforce?
  • Ans. 

    Lookup relationship is loosely coupled while master-detail relationship is tightly coupled in Salesforce.

    • Lookup relationship does not impact the deletion of related records, while master-detail relationship does.

    • In lookup relationship, child records do not inherit the security and sharing settings of the parent record, while in master-detail relationship they do.

    • Lookup relationship can be set to optional, while master-...

  • Answered by AI
  • Q4. What is Apex in Salesforce?
  • Ans. 

    Apex is a strongly typed, object-oriented programming language used in Salesforce for creating custom business logic.

    • Apex is similar to Java and C# in syntax and structure

    • It allows developers to add custom code to Salesforce applications

    • Used for writing triggers, controllers, and batch processes

    • Can interact with Salesforce database using SOQL and DML statements

  • Answered by AI
  • Q5. What is trigger and different events in Salesforce?
  • Ans. 

    A trigger is a piece of code that is executed before or after specific events occur in Salesforce.

    • Triggers are used to perform custom actions like updating related records or sending email notifications.

    • Events in Salesforce that can trigger a trigger include before insert, before update, after insert, after update, etc.

    • Triggers are written in Apex programming language and are associated with specific objects in Salesfo...

  • Answered by AI
  • Q6. What is asynchronous Apex?
  • Ans. 

    Asynchronous Apex is used to run processes in the background, allowing for long-running tasks without blocking the user interface.

    • Asynchronous Apex allows for processing tasks in the background without blocking the user interface.

    • It is commonly used for long-running processes like sending email notifications, updating records, or making callouts to external systems.

    • Using asynchronous Apex helps improve performance and ...

  • Answered by AI
  • Q7. Can we call future method from batch Apex ?
  • Ans. 

    Yes, we can call future method from batch Apex.

    • Future methods can be called from batch Apex to perform asynchronous processing.

    • This can be useful for offloading long-running tasks to future methods to avoid hitting governor limits.

    • Example: Calling a future method to update records in Salesforce after processing them in a batch job.

  • Answered by AI
  • Q8. Explain deployment process for Salesforce?
  • Ans. 

    Deployment process for Salesforce involves moving changes from one environment to another using tools like Salesforce DX or Change Sets.

    • Create a deployment package containing metadata components like Apex classes, Visualforce pages, triggers, etc.

    • Use tools like Salesforce DX, Change Sets, or Metadata API to deploy changes to target environment.

    • Run tests in target environment to ensure changes do not break existing func...

  • Answered by AI
  • Q9. What are the different bundles in Aura component?
  • Ans. 

    Aura bundles are containers for organizing related resources in a Lightning component.

    • There are three types of bundles in Aura components: Component Bundle, Application Bundle, and Event Bundle.

    • Component Bundle contains the markup, controller, helper, style, and documentation for a single component.

    • Application Bundle contains the markup, controller, helper, style, and documentation for an application.

    • Event Bundle conta...

  • Answered by AI
  • Q10. Have you worked on lwc, what are the different decorators?

Skills evaluated in this interview

Interview questions from similar companies

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Newspaper Ad and was interviewed in Jan 2024. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Technical interview developer salesforce
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Selected Selected

I applied via LinkedIn and was interviewed in Nov 2024. There were 2 interview rounds.

Round 1 - Technical 

(3 Questions)

  • Q1. How to invoke flows - using other flows and Apex. How do we invoke an apex class from a flow and pass variables?
  • Ans. 

    Flows can be invoked using other flows and Apex. Apex classes can be invoked from a flow by using invocable methods and passing variables as input parameters.

    • To invoke a flow from another flow, use the 'Launch Flow' element in the Flow Designer.

    • To invoke an Apex class from a flow, create an invocable method in the Apex class and annotate it with @InvocableMethod.

    • Pass variables from a flow to an Apex class by defining i...

  • Answered by AI
  • Q2. Why can't we create a master detail on contact as the child object
  • Ans. 

    Master-detail relationship on Contact as child object is not allowed due to data integrity concerns.

    • Contact is a standard object and cannot be a child object in a master-detail relationship

    • Master-detail relationships require the child object to have a lookup to the parent object

    • Contacts are often used as the primary object in many relationships, making it unsuitable as a child object

  • Answered by AI
  • Q3. What is child to parent communication in LWC?
  • Ans. 

    Child to parent communication in LWC allows a child component to communicate with its parent component.

    • Child components can dispatch custom events to communicate with parent components.

    • Parent components can listen for these custom events and handle them accordingly.

    • This communication pattern helps in passing data and triggering actions between components.

  • Answered by AI
Round 2 - Technical 

(2 Questions)

  • Q1. Write triggers for updating user email from contact emails.
  • Ans. 

    Write triggers to update user email from contact emails

    • Create a trigger on the User object

    • Query for related Contact records

    • Update User email field with Contact email

  • Answered by AI
  • Q2. How does LWC ensure data refresh
  • Ans. 

    LWC ensures data refresh by using Lightning Data Service and @wire decorator.

    • LWC uses Lightning Data Service to ensure data refresh without needing to write Apex code.

    • The @wire decorator in LWC allows for declarative data binding and automatic refresh when data changes.

    • LWC components can also manually refresh data using imperative Apex calls or by calling the refreshApex() method.

  • Answered by AI
Interview experience
2
Poor
Difficulty level
Hard
Process Duration
4-6 weeks
Result
No response

I applied via Campus Placement and was interviewed in Oct 2024. There were 3 interview rounds.

Round 1 - Aptitude Test 

It was easy and basic

Round 2 - Coding Test 

Coding questions are bit complicated

Round 3 - Technical 

(2 Questions)

  • Q1. Salesforce platform questions
  • Q2. Basic hr questions and project based question
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Trigger to display all contacts on an account
  • Q2. Diff bw 15 to 18 digits id
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
No response

I applied via Approached by Company and was interviewed in Jun 2024. There was 1 interview round.

Round 1 - Technical 

(6 Questions)

  • Q1. Can we call future method from batch class
  • Ans. 

    Yes, future methods can be called from a batch class in Salesforce.

    • Future methods can be called from batch classes to perform asynchronous processing.

    • This can be useful for offloading long-running tasks to future methods to avoid hitting governor limits.

    • Example: Calling a future method from a batch class to update records in Salesforce asynchronously.

  • Answered by AI
  • Q2. What's the use of @track decorator. Is it mandatory to explicitly use it? If yes, for which use case?
  • Ans. 

    The @track decorator in Salesforce is used to track changes to a property in a Lightning web component.

    • Used to make a property reactive and trigger re-renders when its value changes

    • Not mandatory but recommended for properties that need to be reactive

    • Use @track when you want changes to a property to be reflected in the UI

  • Answered by AI
  • Q3. When does APEX CPU Limit Exceeded error happens. What's the best practice to avoid getting this error?
  • Ans. 

    APEX CPU Limit Exceeded error happens when code consumes too much CPU time. Best practices include optimizing code, reducing loops, and using asynchronous processing.

    • Avoid using nested loops and optimize code for better performance

    • Use asynchronous processing like @future or Queueable to offload CPU intensive tasks

    • Limit the use of SOQL queries inside loops to reduce CPU consumption

  • Answered by AI
  • Q4. When does Mixed DML Exception occurs?
  • Ans. 

    Mixed DML Exception occurs when DML operations are performed on setup and non-setup objects in a single transaction.

    • Occurs when DML operations are performed on both setup and non-setup objects in a single transaction

    • Setup objects include User, Profile, PermissionSet, etc.

    • Non-setup objects include custom objects, standard objects like Account, Contact, etc.

  • Answered by AI
  • Q5. Debug the following code: var a=10; function abc() { console.log(a); var a=2; } abc();
  • Ans. 

    The code will output 'undefined' because variable 'a' is hoisted within the function.

    • Variable 'a' is hoisted to the top of the function scope, so when 'console.log(a)' is called, 'a' is undefined.

    • To fix this, move the declaration of 'var a=2;' above the 'console.log(a);' statement.

  • Answered by AI
  • Q6. Write a SOQL query to fetch the values of description field from the Account. Why does "the description field cannot be filtered in the query call"?
  • Ans. 

    SOQL query to fetch description field from Account and reason for inability to filter

    • SOQL query: SELECT Description FROM Account

    • Description field is not filterable because it is a long text field

    • Long text fields cannot be filtered in SOQL queries

  • Answered by AI

Skills evaluated in this interview

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Company Website and was interviewed in Sep 2024. There was 1 interview round.

Round 1 - Technical 

(3 Questions)

  • Q1. Explain Lifecycle hook of LWC
  • Ans. 

    Lifecycle hooks in LWC are methods that allow developers to interact with the component lifecycle at specific points.

    • Lifecycle hooks include connectedCallback, disconnectedCallback, renderedCallback, errorCallback, and others.

    • connectedCallback is called when a component is inserted into the DOM.

    • disconnectedCallback is called when a component is removed from the DOM.

    • renderedCallback is called after the component's templ...

  • Answered by AI
  • Q2. Explain Security Model
  • Ans. 

    Security model refers to the framework that controls access to data within a system.

    • Defines who can access what data

    • Includes roles, profiles, and permissions

    • Ensures data integrity and confidentiality

    • Can be customized to meet specific security requirements

  • Answered by AI
  • Q3. How to acheive child to parent communication
  • Ans. 

    Child to parent communication can be achieved in Salesforce using lookup relationships or formula fields.

    • Create a lookup relationship field on the child object that references the parent object

    • Use formula fields to display parent information on the child record

    • Utilize cross-object formulas to display parent fields on related lists or reports

  • Answered by AI

Skills evaluated in this interview

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - This was round1 

(2 Questions)

  • Q1. NA explained below
  • Q2. NA explained below1
Round 2 - One-on-one 

(2 Questions)

  • Q1. Project related questions
  • Q2. Flows, lwc, sharing, cdc, exp cloud

Interview Preparation Tips

Interview preparation tips for other job seekers - Round 1: Sr Salesforce Developer
> Duration 45 minutes
Asked about the project I mentioned and what all clouds I have worked on.
Security model and related questions
Flows questions (scheduled flows, how can we monitor the progress, how to show LWC on screen flows, how to call an apex from flow )
Explained CDC as I said I have worked on it
Experience cloud basic questions
Expalained LWC lifecycle hook : when which hook get called.
Apex and Manual sharing, what is Rowcause in it.

Interviewer was friendly and overall experience was good
Got selected for the 2nd round
Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
-

I applied via Job Portal

Round 1 - Technical 

(3 Questions)

  • Q1. LWC, parent child communication
  • Q2. Asynchronous apex
  • Ans. 

    Asynchronous apex refers to code that runs in the background without user interaction.

    • Asynchronous apex is used for long-running processes that do not need to be completed immediately.

    • It allows for better performance by not blocking the user interface.

    • Examples include batch apex, future methods, and queueable apex.

  • Answered by AI
  • Q3. Apex integration

Skills evaluated in this interview

Interview experience
2
Poor
Difficulty level
-
Process Duration
-
Result
No response
Round 1 - HR 

(1 Question)

  • Q1. Resume shortlist
Round 2 - Technical 

(5 Questions)

  • Q1. Mostly Questions come from real-time scenarios only, interviewer taken 1 hour of my time for interview
  • Q2. How to change create date while uploading the record through data loader?
  • Ans. 

    You can change the create date while uploading records through Data Loader by enabling the 'Allow Insert' option.

    • Enable 'Allow Insert' option in Data Loader settings

    • Map the 'Created Date' field in the mapping file to the desired date/time value

    • Ensure the user has the necessary permissions to change the create date

  • Answered by AI
  • Q3. How wire method works, while importing data want to add record inside wire method in Jsfile how?
  • Ans. 

    Wire method in Salesforce is used to fetch data from Apex controller to Lightning Web Component. Adding records inside wire method in JS file involves using imperative Apex to create records.

    • Use @wire decorator in Lightning Web Component JS file to call an Apex method

    • Inside the wire method, use imperative Apex to create records by calling the createRecord method from the Lightning Data Service

    • Pass the record data as pa

  • Answered by AI
  • Q4. Write a trigger on account if account already having 1 contact then user can't able to create another
  • Q5. How security works in apex, let's say user don't have access on Phone field and SELECT id, Name, Phone from Account WITH_SECURITY_ENFORCED how this query works?
  • Ans. 

    In Apex, security is enforced by default. If a user doesn't have access to a field, they won't be able to query it.

    • In Apex, security is enforced by default, meaning that users can only access data they have permission to see.

    • If a user doesn't have access to the Phone field in the Account object, they won't be able to query it even with WITH_SECURITY_ENFORCED.

    • The SELECT id, Name, Phone from Account WITH_SECURITY_ENFORCE...

  • Answered by AI

Skills evaluated in this interview

Tech Mahindra Interview FAQs

How many rounds are there in Tech Mahindra Software Engineer and Salesforce Developer interview?
Tech Mahindra interview process usually has 1 rounds. The most common rounds in the Tech Mahindra interview process are Technical.
What are the top questions asked in Tech Mahindra Software Engineer and Salesforce Developer interview?

Some of the top questions asked at the Tech Mahindra Software Engineer and Salesforce Developer interview -

  1. What is difference between lookup and master details relationship in Salesfor...read more
  2. What is trigger and different events in Salesfor...read more
  3. Can we call future method from batch Ape...read more

Tell us how to improve this page.

Tech Mahindra Software Engineer and Salesforce Developer Interview Process

based on 1 interview

Interview experience

3
  
Average
View more

Interview Questions from Similar Companies

TCS Interview Questions
3.7
 • 10.4k Interviews
Accenture Interview Questions
3.8
 • 8.2k Interviews
Infosys Interview Questions
3.6
 • 7.6k Interviews
Wipro Interview Questions
3.7
 • 5.6k Interviews
Cognizant Interview Questions
3.8
 • 5.6k Interviews
Capgemini Interview Questions
3.7
 • 4.8k Interviews
HCLTech Interview Questions
3.5
 • 3.8k Interviews
Genpact Interview Questions
3.8
 • 3.1k Interviews
LTIMindtree Interview Questions
3.8
 • 3k Interviews
IBM Interview Questions
4.0
 • 2.4k Interviews
View all
Tech Mahindra Software Engineer and Salesforce Developer Salary
based on 5 salaries
₹2 L/yr - ₹2.4 L/yr
58% less than the average Software Engineer and Salesforce Developer Salary in India
View more details

Tech Mahindra Software Engineer and Salesforce Developer Reviews and Ratings

based on 1 review

3.0/5

Rating in categories

4.0

Skill development

4.0

Work-life balance

3.0

Salary

4.0

Job security

3.0

Company culture

3.0

Promotions

3.0

Work satisfaction

Explore 1 Review and Rating
Software Engineer
26.4k salaries
unlock blur

₹2 L/yr - ₹9.2 L/yr

Senior Software Engineer
21.4k salaries
unlock blur

₹5.5 L/yr - ₹23 L/yr

Technical Lead
11.7k salaries
unlock blur

₹9.5 L/yr - ₹38 L/yr

Associate Software Engineer
5.5k salaries
unlock blur

₹1.8 L/yr - ₹8.2 L/yr

Team Lead
5k salaries
unlock blur

₹5.2 L/yr - ₹17 L/yr

Explore more salaries
Compare Tech Mahindra with

Infosys

3.6
Compare

Cognizant

3.8
Compare

Accenture

3.8
Compare

Wipro

3.7
Compare
Did you find this page helpful?
Yes No
write
Share an Interview