Tuesday, October 21, 2025
HomeInterview QuestionKPMG Salesforce Developer Interview Questions and Answers (2025)

KPMG Salesforce Developer Interview Questions and Answers (2025)

Telegram Group Join Now
whatsApp Channel Join Now
5/5 - (1 vote)

KPMG Salesforce Developer Interview Questions and Answers (2025): If you’re preparing for a Salesforce Developer interview at KPMG in 2025, this blog will help you get ready with real-world examples and scenario-based explanations.

KPMG focuses on your technical depth, problem-solving approach, and understanding of business logic behind every solution. Whether you’re an experienced Salesforce Developer or preparing for your first consulting role, this guide will help you answer questions confidently.

Check Salesforce Jobs Opportunities: Click Here

KPMG Salesforce Developer Interview Questions and Answers:

1. Apex & Trigger-Based Questions

Q1. What is the difference between before and after triggers? Provide real-time use cases.
Answer:

  • Before Triggers are used to update or validate record values before they’re saved to the database.
    Example: Automatically set a field value before inserting a record (e.g., setting Account Rating = “Hot” if AnnualRevenue > 1M).
  • After Triggers are used when you need record IDs or want to perform operations after data is committed.
    Example: Creating related child records (e.g., create a Contact after Account is inserted).

Q2. How do you handle recursion in Apex triggers?
Answer:
You can handle recursion by using a static Boolean variable in a helper class.
This flag prevents a trigger from executing multiple times during a recursive DML operation.

Q3. Explain the order of execution in a trigger context.
Answer:

  1. System validation rules
  2. Before triggers
  3. Custom validation rules
  4. After triggers
  5. Assignment rules, auto-response rules
  6. Workflow rules
  7. Process Builder / Flows
  8. Roll-up summary updates
  9. Commit to the database

Q4. What is the difference between Database.insert and insert?
Answer:

  • insert: Throws an exception if a record fails.
  • Database.insert: Allows partial success and returns a Database.SaveResult for each record.

Use Database.insert for bulk-safe operations.

Q5. When should you use @future, Queueable, or Batch Apex?
Answer:

  • @future: For simple async operations like callouts.
  • Queueable: For async jobs that need chaining or complex logic.
  • Batch Apex: For processing large data volumes (50K+ records).

2. SOQL & SOSL

Q1. How do you write a SOQL query to retrieve all Opportunities for a given Account?
Answer:

SELECT Id, Name FROM Opportunity WHERE AccountId = :accountId

Q2. What are Governor Limits in SOQL and how do you avoid hitting them?
Answer:
Governor limits ensure efficient resource use. You can avoid hitting them by:

  • Using bulk queries instead of loops.
  • Querying only required fields.
  • Using relationship queries or subqueries.

Q3. What is the difference between SOQL and SOSL? When should each be used?
Answer:

  • SOQL: Used for structured queries when you know the object.
  • SOSL: Used for text-based searches across multiple objects.

Use SOSL for global searches and SOQL for precise data retrieval.

3. LWC (Lightning Web Components)

Q1. How do you pass data from a child component to a parent in LWC?
Answer:
Use Custom Events. The child component dispatches an event that the parent handles.

Q2. What is the difference between @track, @api, and @wire?
Answer:

  • @track: Tracks internal reactive properties.
  • @api: Exposes properties/methods to parent components.
  • @wire: Connects Apex or Salesforce data to LWC components.

Q3. How does the lifecycle of an LWC component work?
Answer:
Main lifecycle hooks:

  • constructor()
  • connectedCallback()
  • renderedCallback()
  • disconnectedCallback()

Q4. How do you call Apex methods imperatively vs. using @wire?
Answer:

  • @wire: Reactive data binding (auto-refresh).
  • Imperative Call: Manual method call for actions like button clicks.

4. Flow & Automation

Q1. What is the difference between a Record-Triggered Flow and a Scheduled Flow?
Answer:

  • Record-Triggered Flow runs automatically on record create/update/delete.
  • Scheduled Flow runs at a specific time or frequency.

Q2. How would you design a Flow to update a Contact when a related Account changes?
Answer:
Use a Record-Triggered Flow on Account → Get related Contacts → Update elements.

Q3. How do you send custom notifications using Flow?
Answer: Use Send Custom Notification action in Flow and define a Notification Type.

Q4. What are Flow loops and how can you avoid hitting limits?
Answer:
Use loops to process multiple records but avoid DML or Get Records inside loops — use collections instead.

5. Integration

Q1. What are Named Credentials in Salesforce?
Answer:
Named Credentials securely store external system authentication details like endpoint URLs and tokens.

Q2. How do you handle callouts in Apex?
Answer:
Use HttpRequest and HttpResponse classes within a @future(callout=true) or Queueable class.


Q3. What is a Platform Event and when would you use it?
Answer:
Platform Events enable real-time, event-driven communication between Salesforce and external systems (Pub/Sub model).


Q4. How would you integrate Salesforce with an external system using REST API?
Answer:
Expose a REST Apex class using @RestResource or make outbound callouts using HttpRequest methods.


6. Security & Access

Q1. What is the difference between Profile and Permission Set?
Answer:

  • Profile: Base-level access assigned to every user.
  • Permission Set: Provides additional access without changing the profile.

Q2. How do you enforce field-level security in Apex?
Answer:
Use Schema.sObjectType.fieldname.isAccessible() or Security.stripInaccessible() to enforce FLS.


Q3. What is With Sharing vs Without Sharing in Apex?
Answer:

  • With Sharing: Enforces sharing rules of the current user.
  • Without Sharing: Runs in system context, ignoring sharing rules.

7. Testing & Deployment

Q1. How do you write unit tests in Apex?
Answer:
Use @isTest classes to verify logic using test data and System.assert() methods.


Q2. What is test coverage and how do you achieve 75% coverage?
Answer:
At least 75% of Apex code must be covered by tests before deployment.
Use test data factories and cover both positive and negative cases.


Q3. How do you use Test.startTest() and Test.stopTest()?
Answer:
They define execution boundaries to test governor limits and asynchronous behavior.


Q4. What are best practices for deploying from Sandbox to Production?
Answer:

  • Use Change Sets or Metadata API.
  • Run all tests.
  • Validate first, then deploy.

8. Scenario-Based Questions

Q1. A user wants to auto-assign a Case based on Priority and Region — how would you achieve this?
Answer:
Use Record-Triggered Flow or Assignment Rules with decision elements based on region and priority.


Q2. On Opportunity Stage change to ‘Closed Won’, send an email, create a Task, and update a custom object — how would you design this?
Answer:
Use Record-Triggered Flow with actions to send email, create task, and update related records.


Q3. Explain a recent automation or integration you worked on.
Answer:
Discuss a real project where you automated a process using Flow or integrated Salesforce with an external ERP system using REST APIs.


9. Miscellaneous

Q1. How do you debug Apex code in Developer Console?
Answer:
Use System.debug() logs, check execution logs under Debug → Logs, and analyze debug statements.

Q2. What is a Wrapper Class and when do you use it?
Answer:
A Wrapper Class is a custom data structure combining multiple objects or variables to simplify UI or logic handling (e.g., displaying multiple records with checkboxes in LWC).

Q3. What is Dynamic Apex and why is it useful?
Answer:
Dynamic Apex allows developers to access sObject and field information at runtime, making code generic and reusable (e.g., field-level updates without hardcoding).

Q4. Explain the use of Custom Metadata vs Custom Settings.
Answer:

  • Custom Metadata: Used for deployable configuration data.
  • Custom Settings: Used for organization-level or user-level data storage (non-deployable).

Check Other Companies Salesforce Interview Experience:

Follow Us for Daily Salesforce Jobs Hiring Update:

Social PlatformLinks
TelegramJoin Here
WhatsappJoin Here
LinkedInFollow Here

SEO Keywords Used

  • KPMG Salesforce Interview Questions 2025
  • KPMG Salesforce Developer Interview
  • Salesforce Technical Interview Questions
  • Salesforce LWC and Apex Interview KPMG
  • KPMG Salesforce Flow and Integration Questions
  • Salesforce Developer Interview Preparation 2025 KPMG
  • Salesforce Developer Interview Questions and Answers

Mohit
Mohithttp://salesforceboss.com
My name is Mohit Varshney, and I’m a Salesforce developer and blog writer. I work at PwC, one of the Big Four professional services firms, where I specialize in building efficient Salesforce solutions. Through my blogs, I share insights on Salesforce, career opportunities, and tech trends to help students and professionals grow in the IT industry.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments