Salesforce Connector & Bulk API 2.0 โ Interview Questions & Scenarios (2026)
SOQL operations, Upsert with External IDs, Bulk API v2, and Salesforce governor limits handling.
โ๏ธ Salesforce Connector & Bulk API 2.0
SOQL operations, Upsert with External IDs, Bulk API v2, and Salesforce governor limits handling.
What Salesforce Connector operations have you used?
| OPERATION | WHEN TO USE | OUR USAGE IN PRODUCTION |
|---|---|---|
| Query | SOQL read | Account 360, Opportunity details after Platform Event |
| Upsert | Insert or update by External ID | SAPโSF sync using SAP_Customer_ID__c โ idempotent |
| Upsert Bulk | Millions of records async | Nightly 50K account loads โ no governor limit impact |
| Subscribe | Platform Events / CDC | Opportunity_Closed_Won__e โ trigger SAP order |
| Publish | Fire Platform Events | SAP_Order_Created__e write-back confirmation |
| Delete | Remove records | Data cleanup + compliance jobs |
What is Salesforce Bulk API? When do you use it?
Bulk API 2.0 loads or extracts millions of records asynchronously and does NOT consume your org's standard REST/SOAP 24-hour rolling API request allocation (100,000 base + 1,000 per license in Enterprise Edition). (Note: 150 is the Apex synchronous DML statements-per-transaction limit, not the REST API call quota.)
Bulk API 1.0 vs 2.0: Bulk 1.0 (XML/CSV) requires explicit batch creation (10,000 records/batch). Bulk API 2.0 uses CSV with single uploads up to 150 MB base64-encoded (~100 MB raw), auto-chunks batches behind the scenes, and provides a dedicated 15,000 batches / 150M records per 24-hour quota โ always choose 2.0 for new integrations.
DataWeave โ Map records for Bulk Upsert
%dw 2.0
output application/java
---
payload map (rec) -> {
SAP_Customer_ID__c: rec.sapId,
Name: rec.companyName,
BillingCity: rec.city
}
Use Upsert Bulk with External ID (SAP_Customer_ID__c) for idempotency on retry
Retrieve job results in On Complete phase โ store failures in S3/DLQ for review
Batch Aggregator batch size = 5,000 for optimal Salesforce batch throughput
Results retained 7 days โ always persist your own failure logs
Project: Insurance โ Daily Legacy Master Data Migration.
Problem: Synchronously migrating 250,000 customer accounts via standard REST endpoints was timing out and taking over 6 hours.
What I Did: Created an asynchronous ingestion pipeline using MuleSoft's Salesforce Bulk API v2 'Create Job' operation with CSV payload streaming.
Result: Cut total ingestion time from 6 hours to 18 minutes while consuming only 2 API calls on Salesforce.
How do you handle Salesforce governor limits?
Standard REST/SOAP API Limit (Enterprise Edition): Rolling 24-hour org quota of 100,000 base calls + 1,000 calls per Salesforce user license (Sandboxes allow up to 5,000,000 calls per 24 hours โ not unlimited; note that 150 is the Apex synchronous DML limit per transaction, not REST API calls/hour). Key mitigations:
Bulk API 2.0 โ uses a separate 150M records / 15,000 batches per 24h pool so it does NOT exhaust standard REST/SOAP API quotas
ObjectStore caching โ cache frequently-read SF data with TTL=5min
Platform Events/CDC โ event-driven instead of polling reduces calls
queryMore โ for large SOQL results, paginate instead of multiple queries
Project: Aviation โ High-Volume Customer Account Synchronization.
Problem: Synchronous individual REST calls were consuming 85% of Salesforce's 24-hour API limit by mid-day, threatening to block production transactions.
What I Did: Implemented Batch Processing in MuleSoft with a Batch Aggregator of 200 records calling Salesforce Composite and Bulk API v2.
Result: Reduced daily Salesforce API consumption from 95,000 calls to under 8,500 calls (a 91% reduction) with zero limit breaches.
JWT Bearer vs Username-Password auth for Salesforce โ which do you use?
Username-Password: requires actual user credentials. Password changes break integration, account
can lock, appears as user in audit logs โ never use in production.
JWT Bearer: RSA asymmetric key pair โ no password needed. Token signed by MuleSoft private key,
validated by Salesforce with uploaded public key. Survives password changes, cleaner audit trail
showing Connected App not a user.
โ ALWAYS USE JWT BEARER IN PRODUCTION
Generate RSA key pair โ upload public cert to Connected App in Salesforce Setup
Store keystore.jks as Secure Property (AES-CBC encrypted) in CloudHub
Rotate keys: upload new cert BEFORE removing old one (zero-downtime rotation)
Project: Energy & Utility โ Automated Headless Microservice Authentication.
Problem: Legacy integrations used hardcoded service account passwords that broke every 90 days due to corporate password expiration policies.
What I Did: Re-architected authentication to Salesforce Connected App using OAuth 2.0 JWT Bearer Token flow with a 2048-bit digital certificate stored in JKS keystore.
Result: Achieved 100% automated headless authentication with zero password maintenance outages and passed corporate SOC2 security audits.
What is an External ID in Salesforce? How is it used in Upsert?
A custom field with "External ID" checkbox enabled in Salesforce Setup. Stores source system ID (SAP Customer Number). For Upsert: Salesforce finds records matching this field โ found โ update, not found โ insert.
In MuleSoft: set externalIdFieldName="SAP_Customer_ID__c" on the Upsert operation. Makes integrations safe to retry without creating duplicates.
Project: Retail & E-Commerce โ Bidirectional Customer Master Data Sync.
Problem: Network retries caused duplicate account records to be created in Salesforce when downstream ACKs were delayed.
What I Did: Configured an External ID field `SAP_Customer_Number__c` in Salesforce and executed Upsert operations directly from the MuleSoft Salesforce connector.
Result: Eliminated 100% of duplicate account records and improved API throughput by 35% by skipping preliminary SOQL lookups.