Skip to main content

Salesforce Interview Questions

Review this list of 57 Salesforce interview questions and answers verified by hiring managers and candidates.
  • Salesforce logoAsked at Salesforce 
    18 answers
    Video answer for 'Given an nxn grid of 1s and 0s, return the number of islands in the input.'
    +15

    " from typing import List def getnumberof_islands(binaryMatrix: List[List[int]]) -> int: if not binaryMatrix: return 0 rows = len(binaryMatrix) cols = len(binaryMatrix[0]) islands = 0 for r in range(rows): for c in range(cols): if binaryMatrixr == 1: islands += 1 dfs(binaryMatrix, r, c) return islands def dfs(grid, r, c): if ( r = len(grid) "

    Rick E. - " from typing import List def getnumberof_islands(binaryMatrix: List[List[int]]) -> int: if not binaryMatrix: return 0 rows = len(binaryMatrix) cols = len(binaryMatrix[0]) islands = 0 for r in range(rows): for c in range(cols): if binaryMatrixr == 1: islands += 1 dfs(binaryMatrix, r, c) return islands def dfs(grid, r, c): if ( r = len(grid) "See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Salesforce logoAsked at Salesforce 
    2 answers
    Video answer for 'How do you handle a customer who asks why your product is so expensive?'

    "I dont know is good and you should use however than but."

    Satesh A. - "I dont know is good and you should use however than but."See full answer

    Sales Representative
    Behavioral
    +2 more
  • Salesforce logoAsked at Salesforce 
    12 answers
    +8

    "def find_primes(n): lst=[] for i in range(2,n+1): is_prime=1 for j in range(2,int(i**0.5)+1): if i%j==0: is_prime=0 break if is_prime: lst.append(i) return lst "

    Anonymous Raccoon - "def find_primes(n): lst=[] for i in range(2,n+1): is_prime=1 for j in range(2,int(i**0.5)+1): if i%j==0: is_prime=0 break if is_prime: lst.append(i) return lst "See full answer

    Data Engineer
    Data Structures & Algorithms
    +4 more
  • Salesforce logoAsked at Salesforce 
    30 answers
    +22

    " O(n) time, O(1) space from typing import List def maxsubarraysum(nums: List[int]) -> int: if len(nums) == 0: return 0 maxsum = currsum = nums[0] for i in range(1, len(nums)): currsum = max(currsum + nums[i], nums[i]) maxsum = max(currsum, max_sum) return max_sum debug your code below print(maxsubarraysum([-1, 2, -3, 4])) `"

    Rick E. - " O(n) time, O(1) space from typing import List def maxsubarraysum(nums: List[int]) -> int: if len(nums) == 0: return 0 maxsum = currsum = nums[0] for i in range(1, len(nums)): currsum = max(currsum + nums[i], nums[i]) maxsum = max(currsum, max_sum) return max_sum debug your code below print(maxsubarraysum([-1, 2, -3, 4])) `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Salesforce logoAsked at Salesforce 
    Add answer
    Software Engineer
    Data Structures & Algorithms
    +4 more
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • Salesforce logoAsked at Salesforce 
    Add answer
    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Salesforce logoAsked at Salesforce 
    2 answers

    "This is my first attempt. Requesting feedback - Design a bookshelf for the users. I would like to create a framework to solve this problem and follow it. It will have the below sections - Goals User Persona Use Cases Pain Points Features Prioritization Metrics Few clarifying questions - What is the objective of doing this? (User engagement, matching a product that a competition has just launched) What type of industry we are in? (Are we a furniture design company, ar"

    Sandeep B. - "This is my first attempt. Requesting feedback - Design a bookshelf for the users. I would like to create a framework to solve this problem and follow it. It will have the below sections - Goals User Persona Use Cases Pain Points Features Prioritization Metrics Few clarifying questions - What is the objective of doing this? (User engagement, matching a product that a competition has just launched) What type of industry we are in? (Are we a furniture design company, ar"See full answer

    Product Manager
    Product Design
  • Salesforce logoAsked at Salesforce 
    1 answer

    " Situation Our data engineering team was tasked with developing a new real-time analytics platform for derivatives trading. To ensure the project’s success, we needed buy-in and support from various non-technical teams, including finance, compliance, and senior management. These teams needed to understand the importance of the project, the resources required, and how it would benefit the organization. Task My task was to effectively communicate the technical requirements and benefits of"

    Scott S. - " Situation Our data engineering team was tasked with developing a new real-time analytics platform for derivatives trading. To ensure the project’s success, we needed buy-in and support from various non-technical teams, including finance, compliance, and senior management. These teams needed to understand the importance of the project, the resources required, and how it would benefit the organization. Task My task was to effectively communicate the technical requirements and benefits of"See full answer

    BizOps & Strategy
    Behavioral
    +1 more
  • Salesforce logoAsked at Salesforce 
    3 answers

    "Project Schedule is a living document which is prepared based on inputs from the entire team including product, engineering, finance, sales, marketing, legal etc. It is owned by Project/Program Manager but it reflects progress of the whole team. Inputs required for the development of schedule includes project charter, list of stakeholders, project scope, WBS, freeze calendar, vendor SOWs etc. I will use the following approach for schedule development: Copy Milestone level plan from Project"

    Saket S. - "Project Schedule is a living document which is prepared based on inputs from the entire team including product, engineering, finance, sales, marketing, legal etc. It is owned by Project/Program Manager but it reflects progress of the whole team. Inputs required for the development of schedule includes project charter, list of stakeholders, project scope, WBS, freeze calendar, vendor SOWs etc. I will use the following approach for schedule development: Copy Milestone level plan from Project"See full answer

    Software Engineer
    Program Sense
    +1 more
  • Salesforce logoAsked at Salesforce 
    2 answers

    "Estimate the number of Slack Users. Are we going to calculate the number of Slack users only in the US or throughout the world ? Slack users within the US By Slack users, are we going to consider only personal account users or enterprise account owners as well ? Both. Enterprise and Personal Account. Assuming that there are around 330 Million individuals in the US, splitting them into various age groups. 0-20, 2-40, 40-60 - 80 Million each Above 80 = 80 Million Since"

    Sai ganapathy S. - "Estimate the number of Slack Users. Are we going to calculate the number of Slack users only in the US or throughout the world ? Slack users within the US By Slack users, are we going to consider only personal account users or enterprise account owners as well ? Both. Enterprise and Personal Account. Assuming that there are around 330 Million individuals in the US, splitting them into various age groups. 0-20, 2-40, 40-60 - 80 Million each Above 80 = 80 Million Since"See full answer

    Product Manager
    Estimation
  • Salesforce logoAsked at Salesforce 
    4 answers
    +1

    "static boolean sudokuSolve(char board) { return sudokuSolve(board, 0, 0); } static boolean sudokuSolve(char board, int r, int c) { if(c>=board[0].length) { r=r+1; c=0; } if(r>=board.length) return true; if(boardr=='.') { for(int num=1; num<=9; num++) { boardr=(char)('0' + num); if(isValidPosition(board, r, c)) { if(sudokuSolve(board, r, c+1)) return true; } boardr='.'; } } else { return sudokuSolve(board, r, c+1); } return false; } static boolean isValidPosition(char b"

    Divya R. - "static boolean sudokuSolve(char board) { return sudokuSolve(board, 0, 0); } static boolean sudokuSolve(char board, int r, int c) { if(c>=board[0].length) { r=r+1; c=0; } if(r>=board.length) return true; if(boardr=='.') { for(int num=1; num<=9; num++) { boardr=(char)('0' + num); if(isValidPosition(board, r, c)) { if(sudokuSolve(board, r, c+1)) return true; } boardr='.'; } } else { return sudokuSolve(board, r, c+1); } return false; } static boolean isValidPosition(char b"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Salesforce logoAsked at Salesforce 
    1 answer

    "This is a Diagnosis problem. We've gone over diagnosis problems in the past, but most are centered around usage. Even though this is about retention - do not be alarmed. We can still follow the TROPIC method to create a plan to thoroughly diagnose the issue: Ask clarifying questions List potential high level reasons Gather Context (TROPIC)Time Region Other features / products (internal) Platform Industry / Competition Cannibalization **Establish a theory of proba"

    Exponent - "This is a Diagnosis problem. We've gone over diagnosis problems in the past, but most are centered around usage. Even though this is about retention - do not be alarmed. We can still follow the TROPIC method to create a plan to thoroughly diagnose the issue: Ask clarifying questions List potential high level reasons Gather Context (TROPIC)Time Region Other features / products (internal) Platform Industry / Competition Cannibalization **Establish a theory of proba"See full answer

    Product Manager
    Analytical
    +1 more
  • Salesforce logoAsked at Salesforce 
    2 answers
    Video answer for 'Should Amazon enter the food delivery business?'

    "One challenge that I faced when working with sales was managing unrealistic expectations. As a developer, I often had to work with sales teams to define the scope and timeline for projects. However, it was not uncommon for the sales team to promise clients certain features or deliverables that were not feasible within the allotted time and budget. To address this challenge, I learned to be proactive in clarifying the limitations and constraints of the project with the sales team, and to work wit"

    Anonymous Flamingo - "One challenge that I faced when working with sales was managing unrealistic expectations. As a developer, I often had to work with sales teams to define the scope and timeline for projects. However, it was not uncommon for the sales team to promise clients certain features or deliverables that were not feasible within the allotted time and budget. To address this challenge, I learned to be proactive in clarifying the limitations and constraints of the project with the sales team, and to work wit"See full answer

    Solutions Architect
    Behavioral
    +2 more
  • Solutions Architect
    Technical
  • Salesforce logoAsked at Salesforce 
    Add answer
    Product Manager
    Behavioral
    +2 more
  • Salesforce logoAsked at Salesforce 
    1 answer

    "This is a classic Favorite Product question with a constrained product type. For this, we want to make sure it's a SaaS product. Let's go over the Favorite Product formula before diving in: Choose a product and briefly explain what it is Who are the users? What are their pain points? How did competitors solve it in the past? How does this product address these pain points differently and better? How would you improve it/make it better? **Summarize"

    Exponent - "This is a classic Favorite Product question with a constrained product type. For this, we want to make sure it's a SaaS product. Let's go over the Favorite Product formula before diving in: Choose a product and briefly explain what it is Who are the users? What are their pain points? How did competitors solve it in the past? How does this product address these pain points differently and better? How would you improve it/make it better? **Summarize"See full answer

    Product Manager
    Product Design
  • Salesforce logoAsked at Salesforce 
    Add answer
    Video answer for 'How would you limit access of certain users to a website or service?'
    Solutions Architect
    Technical
  • Salesforce logoAsked at Salesforce 
    Add answer
    Video answer for 'How do CDNs work?'
    Solutions Architect
    Technical
  • Salesforce logoAsked at Salesforce 
    2 answers

    "Your approach was illuminating for sure, particularly the use of frameworks for stories."

    Marcos P. - "Your approach was illuminating for sure, particularly the use of frameworks for stories."See full answer

    Solutions Architect
    Behavioral
Showing 21-40 of 57
Exponent

Get updates in your inbox with the latest tips, job listings, and more.

Follow Us

Products
Courses
Interview Questions
Interview Experiences
Popular articles
Guides
Coaching
For Partners
Company
Exponent © 2026
Terms of Service | Privacy