Salesforce & Enterprise Connectors ยท Developer

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 Bulk API 2.0 Lifecycle Diagram showing Bulk API 2.0 state machine from Open to JobComplete. 1. Job: Open POST /jobs/ingest Returns: JobId 2. Stream CSV Data PUT /jobs/ingest/{id}/batches Payload: text/csv 3. UploadComplete state: UploadComplete Queued in Salesforce 4. JobComplete GET /successfulResults GET /failedResults Governor Limits Advantage Standard REST/SOAP: 100k+ calls/24h rolling (license-based) ยท Bulk API 2.0: Separate asynchronous pool up to 150M records & 15,000 batches/24h.
Figure B.1: Salesforce Bulk API 2.0 โ€” Job creation, CSV block upload, asynchronous server processing, and results retrieval state machine.

โ˜๏ธ Salesforce Connector & Bulk API 2.0

SOQL operations, Upsert with External IDs, Bulk API v2, and Salesforce governor limits handling.

Q1 [DEVELOPER] โฑ๏ธ 1 min read Module B

What Salesforce Connector operations have you used?

โšก Self-Test Mode Ready
โœ“ ANSWER
OPERATIONWHEN TO USEOUR USAGE IN PRODUCTION
QuerySOQL readAccount 360, Opportunity details after Platform Event
UpsertInsert or update by External IDSAPโ†’SF sync using SAP_Customer_ID__c โ€” idempotent
Upsert BulkMillions of records asyncNightly 50K account loads โ€” no governor limit impact
SubscribePlatform Events / CDCOpportunity_Closed_Won__e โ†’ trigger SAP order
PublishFire Platform EventsSAP_Order_Created__e write-back confirmation
DeleteRemove recordsData cleanup + compliance jobs
Q2 [DEVELOPER] โฑ๏ธ 1 min read Module B

What is Salesforce Bulk API? When do you use it?

โšก Self-Test Mode Ready
โœ“ ANSWER

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

DWL
%dw 2.0
output application/java
---
payload map (rec) -> {
SAP_Customer_ID__c: rec.sapId,
Name: rec.companyName,
BillingCity: rec.city
}
โœ… BULK API BEST PRACTICES

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

๐ŸŽฏ๐ŸŽฏ Interview Pitch - Say It Like This (30 Sec)
"I reach for the Salesforce Bulk API v2 whenever we need to ingest or export datasets exceeding 10,000 records. Unlike standard REST APIs that consume 1 call per record or batch, Bulk API v2 automatically chunks records, manages concurrency on the Salesforce side, and tracks job status asynchronously, ensuring maximum throughput with minimal API call consumption."
๐Ÿ’ผ๐Ÿ’ผ Real-Time Project Example

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.

Q3 [DEVELOPER] โฑ๏ธ 1 min read Module B

How do you handle Salesforce governor limits?

โšก Self-Test Mode Ready
โœ“ ANSWER

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

๐ŸŽฏ๐ŸŽฏ Interview Pitch - Say It Like This (30 Sec)
"When integrating with Salesforce, governor limits are top of mind. Rather than performing individual synchronous REST calls, I architect integrations using the Bulk API v2 for large datasets, cache reusable reference data in ObjectStore v2, and leverage Platform Events for event-driven asynchronous processing to keep daily API consumption well below 40% of allocated limits."
๐Ÿ’ผ๐Ÿ’ผ Real-Time Project Example

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.

Q4 [DEVELOPER] โฑ๏ธ 1 min read Module B

JWT Bearer vs Username-Password auth for Salesforce โ€” which do you use?

โšก Self-Test Mode Ready
โœ“ ANSWER

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)

๐ŸŽฏ๐ŸŽฏ Interview Pitch - Say It Like This (30 Sec)
"For secure system-to-system integrations with Salesforce or third-party gateways, I mandate OAuth 2.0 JWT Bearer flow. It completely eliminates storing username/passwords or interactive user approvals. We sign a JWT claim with an RSA private key stored securely in the keystore, and exchange it for a short-lived access token, managing key rotation seamlessly with dual certificates."
๐Ÿ’ผ๐Ÿ’ผ Real-Time Project Example

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.

Q5 [DEVELOPER] โฑ๏ธ 1 min read Module B

What is an External ID in Salesforce? How is it used in Upsert?

โšก Self-Test Mode Ready
โœ“ ANSWER

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.

๐ŸŽฏ๐ŸŽฏ Interview Pitch - Say It Like This (30 Sec)
"In enterprise integrations, I enforce using Salesforce External IDs paired with the Upsert operation as a best practice for idempotency. This allows MuleSoft to create or update records in a single transactional call based on the enterprise key (such as SAP Customer Number or Account ID), eliminating the need for expensive 'Query before Insert' lookups and preventing duplicate record creation."
๐Ÿ’ผ๐Ÿ’ผ Real-Time Project Example

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.

Platform Events & Change Data Capture (CDC โ†’