Salesforce Software Engineer Interview Questions
Preparing for Salesforce Software Engineer interview questions means getting ready for a mix of algorithmic coding, system design, and behaviorally focused conversations that assess both technical depth and cultural fit. What’s distinctive about interviews for Salesforce is the emphasis on reliable, customer-facing SaaS engineering: expect questions that probe scalable, multi-tenant architectures, code quality, testing and edge cases, and collaboration across product and operations teams. Interviewers often look for clear problem decomposition, thoughtful trade-offs, and evidence you can own features from design to production. In practice, the process typically includes a recruiter screen, one or more timed coding assessments (remote platforms like CoderPad or HackerRank are common), followed by live technical interviews that cover algorithms, design, and past-project discussions, plus behavioral rounds aimed at cultural alignment. For effective interview preparation, balance algorithm practice with system-design sketches, rehearse concise STAR-style stories about impact and ownership, and study Salesforce’s product patterns so you can relate technical choices to customer outcomes. Prioritize clarity, tests, and trade-offs during your responses.
Find longest subsequence of x that is a substring of y
Given two strings x and y, compute the maximum length of a string s such that: - s is a subsequence of x (can delete zero or more characters from x wi...
Solve array duplicate flags and binary swaps
Problem 1: Flag duplicates on the left and right You are given an integer array nums of length n. For each index i, determine: 1. Left-duplicate: whet...
Design a recommendation system
Design a User–Item Recommendation System Context You are asked to design an end-to-end recommendation service that suggests items to users. The servic...
Design a 911 emergency calling service
System Design Prompt Design a 911 emergency calling service (or emergency call routing platform) that allows users to place emergency calls from mobil...
Determine minimal substitutions and removals
Question Given a list of words, determine the minimum number of character substitutions required so that, in every word, no two adjacent characters ar...
Remove duplicates from a singly linked list
You are given the head of a singly linked list of integers. Modify the list in place so that it contains only the first occurrence of each value (i.e....
Design cloud & k8s architecture
Technical Screen: Kubernetes, Cloud Services, and Secure CI/CD Context You are designing and operating services on Kubernetes in a public cloud. Answe...
Implement 64-bit modular exponentiation safely
Implement a function to compute (a^b) mod m where 0 ≤ a,b < 2^61−1 and 1 ≤ m < 2^61−1 using only 64-bit operations without overflow. Provide implement...
Flatten nested JSON into a string map
Problem You are given an input JSON object that may contain nested objects and arrays. Your task is to flatten it into a single-level key/value mappin...
Convert integer to NAF form
Question Convert a given integer into its Non-Adjacent Form (NAF) representation such that no two non-zero digits are adjacent, and prove that the res...
Compare cloud compute; design Kubernetes security and CI/CD
Cloud Compute Models, Testing Strategies, Kubernetes Deep Dive, Security, and CI/CD to GKE Context You are designing and operating services across pub...
Minimize steps to reduce integer
Given a positive integer n (1 <= n <= 2^61 - 1), in one step you may replace n with n/2 if n is even, or with n+1 or n-1 if n is odd. Return the minim...
Remove duplicates in linked list
Question Given a linked list, remove all duplicate values so that each value appears only once. Provide solutions for both sorted and unsorted linked ...
Design an end-to-end recommendation system
System Design Prompt: End-to-End Movie Recommendation System You are tasked with designing an end-to-end movie recommendation system for a large-scale...
Explain background and Salesforce motivation
Behavioral: Background, Motivation, and Team Fit (Salesforce, GCP-Focused) Prompt Provide a concise, structured response that covers: 1. Background ov...
Convert Integer to Non-Adjacent Form
Implement toNAF(n) that converts an integer n (allow negative n) to its Non-Adjacent Form using digits from {-1, 0, 1} with no two adjacent nonzero di...
Implement an LFU cache
Problem: LFU Cache Design and implement a Least Frequently Used (LFU) cache with a fixed capacity. The cache supports the following operations: - get(...
Design secure Kubernetes with CI/CD
Kubernetes Architecture, Troubleshooting, Security, and CI/CD (GKE/EKS) Context: You are the on-call software engineer for a managed Kubernetes cluste...
Explain background and Salesforce motivation
Behavioral Prompt: SDE II (GCP-Focused Team) You are interviewing for an SDE II role on a GCP-focused team at Salesforce during a technical screen. Pr...
Compare GCP vs AWS and testing strategy
Public Cloud Building Blocks, Compute Choice, and Testing Strategy Context Assume you are designing a new stateless HTTP microservice that exposes RES...