SalesforceWizard

Salesforce integration scenario-based questions

Each scenario describes a real integration requirement. Decide on the pattern first, then check the answer for the details that usually trip people up.

0 of 10 reviewed
On this page (6 sections)Interview questionsCommon MistakesRelated Integration Scenarios Interview QuestionsFrequently Asked Questions about Integration Scenarios InterviewsRelated CertificationsRelated Resources

Senior interviews aren't about API definitions: they're about design decisions under real constraints. These scenario questions test whether you can pick the right pattern, respect governor limits and design for failure.

01

Sync customer data from SAP to Salesforce in near real-time. How would you design it?

SAP publishes change events (IDocs or OData webhooks) to middleware (MuleSoft/Boomi). Middleware transforms and upserts into Salesforce via Bulk API 2.0 (high volume) or sObject Collections (small batches), keyed on SAP_External_Id__c. Use Platform Events back to SAP for changes originating in Salesforce. Add dead-letter queue + retry.

02

External order system needs to query Account data live during checkout. Best approach?

Salesforce Connect with an OData adapter: exposes external system data as external objects, no copy needed. Or, if data must be in Salesforce, expose a custom Apex REST endpoint with @ReadOnly annotation to bypass row limits, with proper auth via JWT bearer + Named Credentials.

03

Process 5 million records nightly from a CSV. How?

Bulk API 2.0: async job, upload CSV in compressed gzip, Salesforce processes in chunks. Don't trigger heavy Apex on insert (use Trigger.isBulk checks, defer non-critical work to Batch Apex). Monitor job status via /jobs/ingest/<jobId>. Schedule via middleware scheduler, not Salesforce.

04

Need to call an external pricing API on every Opportunity edit. How to avoid governor limits?

Don't call from trigger. Publish a Platform Event from the trigger; an event-triggered Flow or Apex queueable consumes it and makes the callout async. Cache prices for short windows. Use future or queueable for the actual HTTP call.

05

Two Salesforce orgs need to share Cases bi-directionally. Design?

Salesforce-to-Salesforce (S2S) for simple sharing, or Platform Events + middleware for complex transformation. Use external IDs (SourceOrgCaseId__c) in both orgs to avoid duplicates. Add a 'last updated by sync' flag to prevent infinite loops.

06

How do you avoid duplicate records during repeated retries?

Use upsert with an external ID field. Idempotency: same external ID = same record, no matter how many retries. Combine with a request-id or correlation-id pattern in middleware to detect duplicates before reaching Salesforce.

07

External system sends webhooks but Salesforce can't accept arbitrary HTTP from anywhere. How?

Expose @RestResource Apex endpoint at /services/apexrest/webhook/. Use Connected App with OAuth or signed JWTs from the source. Validate signature in Apex, queue heavy work as a Queueable, return 200 quickly so the webhook doesn't time out.

08

Customer wants real-time chat data in Salesforce: design the architecture.

Chat platform → middleware → Salesforce. Use Platform Events for individual messages (low latency). Use Streaming/Pub-Sub API to push agent activity back. Store transcripts in a Big Object if volume is huge, regular custom object if moderate.

09

How would you handle Salesforce going down during an integration?

Middleware queues messages, retries with exponential backoff, alerts after threshold. Persist messages durably (don't keep in memory). When Salesforce returns, drain queue in order. Report any messages that exceeded max retries to ops via dead-letter queue.

10

Need to call 100 different external APIs per record. How?

Don't. Aggregate calls in middleware: Salesforce makes one call to middleware, middleware fans out and aggregates response. Apex callout limit is ~100 per transaction anyway. Use Composite API to bundle Salesforce-side operations.

Common Mistakes

Synchronous callouts in triggers. Always go async via Platform Events or Queueable.

No external ID strategy. Without it you cannot upsert reliably.

Designing without limits in mind. Calculate API + DML usage upfront.

Single point of failure. Always have retry, DLQ and monitoring.

Frequently Asked Questions about Integration Scenarios Interviews

Bulk API 1.0 vs 2.0?

2.0 is simpler: submit job + upload CSV, Salesforce splits batches automatically. Always use 2.0 for new work.

When to use Salesforce Connect?

When data lives elsewhere and you don't want a copy: e.g. archived data, ERP master records.

Long-running callouts in Apex?

Use Continuation pattern: async callout from Visualforce/LWC without holding the request thread.

How to test integrations?

HttpCalloutMock for Apex unit tests; postman collections + middleware sandboxes for end-to-end.

Best pattern for high-volume one-way sync?

Source publishes events → middleware → Bulk API 2.0 into Salesforce. Async, batched, idempotent.

Integration Architect, Application Architect. See certification guides.

Chat on WhatsApp