Salesforce Interview Questions
Master your tech interview with our curated database of real questions from top companies.
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...
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 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 ...
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 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...
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...
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...
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 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...
Architect serving and storage for recommender
System Design: Recommendation Service (Serving + Data Infrastructure) Context Design a production-ready recommendation service for a large-scale consu...
Design O(nm) grouping of rearranged strings
Given an array of strings, group together words that are permutations of the same characters. Provide a baseline solution that sorts each word (O(n · ...
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...
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...
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...
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...
Deduplicate a Linked List
Given a singly linked list, remove duplicate values in-place. Variant A (sorted list): delete repeated nodes so each value appears once using O( 1) ex...