SalesforceWizard

Salesforce scenario-based interview questions

Scenario questions are where interviews are won or lost. Each one here describes a real project problem; try answering before you open the solution.

0 of 30 reviewed
On this page (11 sections)Security and access scenariosAutomation and agent scenariosCode and governor limit scenariosIntegration scenariosData management scenariosReports and performance scenariosDeployment and org management scenariosHow to Answer Scenario QuestionsRelated Scenario-Based Interview QuestionsFrequently Asked Questions about Scenario-Based InterviewsRelated Resources

Scenario-based questions are the most common type in real Salesforce interviews. Interviewers present you with a problem and want to see how you think through it. These questions test your practical experience, not just what you know, but how you apply it. Each answer walks through the thought process, not just the solution.

Questions in each topic go from beginner to advanced. Use On this page to jump to the topic you need.

Security and access scenarios

01

A user reports they can see an Account but cannot edit a specific field. How do you troubleshoot?

Intermediate

Check in this order:

  • Field-Level Security: is the field set to read-only or hidden on the user's profile or permission sets? This is the most common cause.
  • Page Layout: is the field marked as read-only on the page layout?.
  • Validation Rules: is there a validation rule preventing the update?.
  • Record-level access: does the user have read-only access via sharing?.
  • Field is a formula or auto-number (inherently read-only).

Always start with FLS: it's the answer 80% of the time.

02

A client wants to restrict record access so sales reps only see their own Opportunities. How do you configure this?

Intermediate

Set the Organization-Wide Default for Opportunity to Private. This ensures users can only see opportunities they own. Then:

  • Configure the role hierarchy so managers can see their team's opportunities.
  • Create sharing rules for cross-team visibility where needed (e.g., sharing all opportunities in a specific region with the regional team).
  • Use teams or territory management for more complex sharing needs.

Never set OWD to Public and try to restrict: always restrict first, then open up.

03

Sales managers can see their team's opportunities, but a new regional director cannot see any of them. How do you troubleshoot?

Intermediate

Work from the sharing model outward. Check the opportunity org-wide default, then where the director sits in the role hierarchy (a common cause is that the role was created but not placed above the managers' roles, or the user was never assigned it). Then check sharing rules and territory assignments if the org uses Enterprise Territory Management.

The quickest proof is the Sharing button on one record, or a quick check with "View Setup Audit Trail" to see recent role changes. Fix the role placement rather than adding a manual share, so the access stays correct as the team changes.

04

You need to give a contractor access to only the cases for one product for three months. How do you set it up?

Intermediate

Create a permission set for the case access they need, use a criteria-based sharing rule or a queue for that product's cases shared to a public group containing the contractor, and set the permission set assignment to expire after three months. Freeze the user at the end rather than deleting, so their history stays intact.

Automation and agent scenarios

05

The business wants a field to be required only when the opportunity reaches Negotiation. How would you do it?

Beginner

Use a validation rule rather than making the field required on the layout, because layouts are not enforced for API or data loads. For example: AND(ISPICKVAL(StageName, "Negotiation"), ISBLANK(Discount_Reason__c)).

Pair it with Dynamic Forms or Path guidance so users see the field at the right stage and are not surprised by the error.

06

A manager wants to be emailed when a high-value deal has had no activity for 14 days. How would you build it?

Beginner

A scheduled flow that runs daily is a good fit. It finds open opportunities above the threshold whose last activity date is more than 14 days ago, then sends one summary email per owner's manager rather than one email per deal.

Mention that you would test the volume first. If hundreds of deals qualify, a report subscription might be a better answer than emails.

07

A client asks you to build a feature that could be done with Flow or Apex. How do you decide?

Intermediate

Default to Flow (declarative) when: the logic is straightforward, admins need to maintain it, it involves standard CRUD operations, or it's a screen-based process. Use Apex when: you need complex business logic with multiple conditions, the process requires callouts or platform events, performance is critical for high-volume processing, or the logic needs unit testing for reliability. Consider maintainability: who will own this after you leave? If the admin team is strong, Flow. If there's a dev team, Apex may be cleaner for complex logic.

08

How would you implement a lead assignment strategy for a global sales team?

Intermediate

Options depend on complexity:

  • Lead Assignment Rules, for simple routing based on criteria like country, industry, or lead source. Rules evaluate in order, first match wins.
  • Territory Management, for geographic-based assignment with complex overlapping territories.
  • Round-robin: use a custom counter field or Apex for equal distribution.
  • For complex scoring and routing, consider Salesforce's lead scoring tools or custom Apex.

Always include a catch-all rule so no lead goes unassigned. Test with edge cases like leads with missing data.

09

A Flow is creating duplicate records. How do you troubleshoot and fix it?

Intermediate

Root causes to check:

  • Flow runs on both create and update: add entry conditions to filter.
  • Multiple versions of the flow are active.
  • Another automation is updating the record, retriggering the flow.
  • Missing deduplication logic: the flow doesn't check for existing records before creating.

Fix: add a Get Records element before Create to check for duplicates. Use unique external ID fields for matching. Add entry conditions to prevent re-execution. Test with debug logs to trace the execution path.

10

A customer-facing Agentforce agent gives a wrong answer about the refund policy. How do you fix and prevent it?

Intermediate

First find the cause using the agent's conversation logs: was the knowledge article out of date, was the wrong subagent (formerly called topic) selected, or did the agent answer without retrieving anything? Then fix the source, usually by updating the knowledge article or tightening the topic instructions so refund questions must use the policy article.

Prevent repeats by adding test cases for refund questions to the agent's testing suite, and by requiring a hand-off to a person for refund amounts above a set limit.

11

Two automations are conflicting: a Flow and a trigger are both updating the same field. How do you resolve it?

Advanced

First, understand the order of execution: before triggers → validation rules → after triggers → assignment rules → auto-response rules → workflows → processes/flows. Identify which automation runs first and what values each sets. Solutions:

  • Consolidate logic into one automation.
  • Use a flag field to prevent re-execution.
  • If both are needed, ensure they set complementary values or one defers to the other.

Best practice: maintain one automation per object per event type.

12

A record-triggered flow works when users edit one record but fails during a nightly data load of 50,000 records. What is going on?

Advanced

Almost certainly a bulkification problem: an element such as Get Records or Update Records is inside a loop, or the flow calls an Apex action that queries per record. Data loads send records in batches of 200, so per-record queries hit the 100 SOQL limit.

Move queries outside loops, collect records into a collection and update them once, and consider a before-save flow for same-record updates. For the data load itself, a bypass custom permission for the integration user lets you skip automation that does not need to run on migrated data.

Code and governor limit scenarios

13

Your trigger is hitting the SOQL 100-query limit. How do you fix it?

Intermediate

The root cause is almost always SOQL queries inside a for loop. Solution:

  • Collect all necessary IDs into a Set or List before the loop.
  • Execute a single SOQL query using an IN clause with the collected IDs.
  • Store results in a Map for O(1) lookup.
  • Process records using the Map inside the loop.

Example: Instead of querying Contact for each Account in a trigger, collect all Account IDs first, query all Contacts in one SOQL, then Map<Id, List<Contact>> for processing.

14

Governor limits are being hit in production. How do you investigate and fix it?

Advanced

Investigation:

  • Check debug logs for the specific limit being hit (SOQL, DML, CPU, heap).
  • Reproduce in sandbox with same data volume.
  • Review recent deployments that might have introduced the issue.

Common fixes by limit type: SOQL; bulkify queries, use maps for lookups. DML: combine updates into collections. CPU: optimize loops, reduce unnecessary processing. Heap: process in batches, avoid loading large collections. Long-term: implement monitoring with Platform Events for limit warnings.

15

A batch job that updates millions of records fails with UNABLE_TO_LOCK_ROW. What do you do?

Advanced

Locks happen when parallel batches update records that share a parent, for example many contacts under the same account. Options are to sort the records by parent ID so each chunk touches fewer parents, reduce the batch size, run conflicting jobs at different times, and add retry logic for the failed chunk.

If one parent has a huge number of children, that is data skew, and the longer-term fix is to spread the children across more parents.

Integration scenarios

16

An external system sends the same order twice when its network times out, creating duplicate records. How do you stop this?

Intermediate

Make the integration idempotent. Give the order an external ID field marked unique, and have the external system upsert on that ID instead of inserting. A retried message then updates the existing record rather than creating a new one.

For records already duplicated, run a one-off clean-up with matching rules or a report on the external ID, merging where needed.

17

A client wants real-time data sync between Salesforce and their ERP. How do you design it?

Advanced

Evaluate the requirements: data volume, frequency, direction (one-way or bidirectional), and latency tolerance. For true real-time: use Platform Events or Change Data Capture for outbound, and REST API webhooks for inbound. For near-real-time: use middleware like MuleSoft with event listeners. Consider: conflict resolution for bidirectional sync, error handling and retry logic, field mapping complexity, and authentication. Always start with a proof of concept for the most complex data flow.

18

You're asked to integrate Salesforce with a system that has no API. What are your options?

Advanced

Options from most to least preferred:

  • Check if the system has a database you can connect to via middleware.
  • Use file-based integration: export from the source system to CSV/XML, then import via Salesforce Data Loader or Bulk API (can be automated).
  • If the system has a UI, consider RPA (Robotic Process Automation) tools to extract data.
  • Screen scraping as a last resort.

For any approach: define the data flow, schedule, error handling, and monitoring. File-based integration is the most common solution for legacy systems.

19

Sales and service teams both update the same Contact phone number from different systems, and values keep flipping. What would you propose?

Advanced

Agree on a system of record for each field, then enforce it: only the owning integration can write the field (through field-level security on the integration users), and the other system receives updates instead of sending them. If both must write, add a last-modified timestamp check in the integration so older updates are ignored.

Data management scenarios

20

A client wants to track the full history of a record through multiple status changes. How do you design it?

Intermediate

Options:

  • Field History Tracking: built-in, tracks up to 20 fields per object, 18-month retention (extendable with Shield).
  • Custom History Object: create a child object that logs each status change with timestamp, user, old value, and new value. Populate it via a before-save Flow or after trigger.
  • Big Objects, for very high volume history that doesn't need real-time access.

Choose based on retention needs, query requirements, and volume. Custom objects offer the most flexibility for reporting.

21

A user accidentally deleted 500 important records. How do you recover them?

Intermediate

Immediate steps:

  • Check the Recycle Bin: deleted records stay there for 15 days, and an admin can restore them. Its size is 25 times your org's storage in MB.
  • If not in Recycle Bin, use Data Export (weekly backup if configured) or Salesforce Backup if your company has it. Salesforce's paid data recovery service is a last resort: slow and expensive.
  • If you have an ETL tool, restore from the last backup.

Prevention: remove delete permission from users who don't need it (validation rules don't run on delete, so use a before delete trigger if you need a rule), implement a 'soft delete' with a status field instead of actual deletion for critical objects. Configure automated exports as insurance.

22

The business asks you to delete all leads older than three years, about two million records. How do you do it safely?

Intermediate

Confirm the rule in writing and check whether any leads are linked to campaigns or reports people still use. Export a backup first. Then delete with Bulk API (Data Loader in bulk mode) or a Batch Apex job, outside business hours, and use hard delete only if storage is the reason and the backup is confirmed.

Turn off or bypass automation on Lead delete for the job, and check storage usage afterwards to confirm the result.

23

You need to load 5 million records into Salesforce. What is your approach?

Advanced

Use the Bulk API 2.0 for maximum throughput. Break the data into manageable batches. Disable triggers, workflows, and validation rules during the initial load (use custom settings as kill switches). Load parent objects before child objects. Use external IDs for upsert operations to handle duplicates. Monitor batch job status via API. Validate data with count comparisons and spot-check reports. Re-enable automation after verification. Plan for off-hours loading to minimize impact.

Reports and performance scenarios

24

A client's reports are running slowly. How do you improve performance?

Intermediate

Diagnose first: check report complexity, filters, date ranges, and row counts. Solutions:

  • Add selective filters to reduce data scanned.
  • Use indexed fields in filter criteria.
  • Request custom indexes from Salesforce support for frequently filtered fields.
  • Consider skinny tables for complex reports.
  • Archive old data that's no longer needed in reports.
  • Use report snapshots for historical trend data instead of querying live data.
  • Limit cross-filter and formula field usage in report filters.
25

Users complain the Account page takes ten seconds to load. How do you speed it up?

Intermediate

Measure first: use the Lightning Usage app or browser dev tools to see which components are slow. Common culprits are many related lists, heavy custom components making several Apex calls, and report charts on the page.

Fixes include moving rarely used related lists to a separate tab, using Dynamic Forms and conditional visibility, caching Apex results with @AuraEnabled(cacheable=true), and combining several server calls into one.

26

The CEO wants a dashboard that shows data from Salesforce and two external systems. How do you approach it?

Advanced

Options:

  • Salesforce Connect: create External Objects for real-time access to external data, then report on them alongside Salesforce data.
  • ETL/middleware: import external data into custom Salesforce objects on a schedule, then build native reports.
  • CRM Analytics (formerly Tableau CRM): connect to multiple data sources for advanced visualization.

Consider: data freshness requirements, volume, complexity of joins, and licensing costs. For most scenarios, scheduled ETL into Salesforce objects is the most practical approach.

Deployment and org management scenarios

27

A deployment to production fails because of test coverage. How do you handle it?

Intermediate

First, check which classes are below 75% coverage. Don't just write meaningless tests to hit the number: write meaningful tests. Quick fixes:

  • Identify uncovered lines using the Developer Console test results.
  • Add test scenarios that exercise those code paths.
  • For large deployments, run all tests in the target org first to identify pre-existing coverage issues.

Prevention: enforce testing standards during code review, set team minimum at 85% not 75%, and run tests in CI before attempting production deployment.

28

Two admins changed the same flow in different sandboxes and one overwrote the other's work in production. How do you prevent this?

Intermediate

Move to source-driven development: metadata in Git, a branch per piece of work, and a pipeline (DevOps Center, Copado, Gearset or Salesforce CLI with CI) that merges changes and shows conflicts before anything is deployed. Change sets cannot show you that someone else changed the same component.

29

A client needs to support users in 10 countries with different languages and currencies. How do you configure this?

Advanced
  • Enable Multi-Currency and configure exchange rates.
  • Enable Translation Workbench for multi-language support.
  • Create language-specific translations for custom labels, field labels, and picklist values.
  • Configure locale settings per user.
  • Use record types if different regions need different page layouts or picklist values.
  • Consider time zone handling in automation and reports.
  • Test thoroughly: date formats, currency display, and number formatting vary by locale.

Plan for ongoing translation updates.

30

You inherit a Salesforce org with no documentation. How do you audit and understand it?

Advanced

Systematic approach:

  • Review Setup Audit Trail for recent changes.
  • Use Schema Builder to map the data model.
  • Document automation: list all triggers, flows, process builders, and workflow rules per object.
  • Review profiles and permission sets for the security model.
  • Check integrations: Connected Apps, Named Credentials, and Remote Site Settings.
  • Interview key users and admins.
  • Run reports on data volume and usage patterns.
  • Create an org health check document.

Tools: Salesforce Inspector, ORGanizer, or dedicated audit AppExchange packages.

How to Answer Scenario Questions

Think out loud. Interviewers want to hear your reasoning process, not just the final answer. Walk them through your thought process step by step.

Ask clarifying questions. Real scenarios have ambiguity. Asking "How many records are we talking about?" or "What's the latency requirement?" shows experience.

Consider trade-offs. Present multiple approaches and explain why you'd choose one over another. This demonstrates senior-level thinking.

Mention edge cases. What happens when the data is null? What if the volume doubles? Thinking about edge cases shows you've been through real implementations.

Frequently Asked Questions about Scenario-Based Interviews

Why do Salesforce interviews focus so much on scenario questions?

Definitions can be memorized; scenarios reveal how you think. Hiring managers want to see whether you can take an ambiguous business need, ask the right clarifying questions, weigh declarative vs programmatic options, and consider security, governor limits, and maintainability: all in real time.

What framework should I use to answer scenario questions?

A reliable structure is: (1) Restate the problem and ask 2–3 clarifying questions about volume, users, and timing; (2) Identify the simplest declarative solution; (3) Note when code is justified; (4) Mention security and sharing impact; (5) Close with testing strategy and rollout plan. This framework signals senior-level thinking.

How do I answer scenario questions when I don't know the exact solution?

Don't fake it. Say 'I haven't built this exact thing, but here's how I'd approach it' and walk through your reasoning. Mention the documentation or Trailhead module you'd consult. Interviewers value structured thinking and intellectual honesty far more than a guessed answer.

What are the most common scenario question topics in 2026?

Top recurring themes: large-data-volume reporting, multi-currency and multi-language rollouts, Flow vs Apex decision-making, integration patterns (Platform Events vs CDC), sharing model design for matrix organizations, and Agentforce/AI agent integration scenarios.

Should I draw diagrams during scenario interviews?

Yes whenever possible. Even a rough sketch of the data model, sharing hierarchy, or integration flow shows you visualize systems holistically. In remote interviews, use the shared whiteboard tool or share your screen with a simple diagramming app: interviewers consistently rate visual answers higher.

Chat on WhatsApp