| TOPIC | KEY ANSWER FOR INTERVIEW |
|---|---|
| API-led connectivity | 3 layers: XAPI โ PAPI โ SAPI. SAPI reused by 4 PAPIs = 75% code reduction. |
| Scatter-Gather output | Object (indexed Map) keyed "0", "1". Use payload."0".payload or flatten(payload..payload). Time = slowest route. Failure = MULE:COMPOSITE_ROUTING unless Try scope per route. |
| ForEach output | Payload UNCHANGED after ForEach โ original collection. Collect results in a variable. Error stops loop unless Try scope inside. |
| Batch Job phases | Load & Dispatch โ Process (Batch Steps) โ On Complete. Default maxFailedRecords=0 (stops on first failure). Use -1 to never stop. |
| Until Successful | maxRetries=5 default, millisBetweenRetries=60000 default. Exhaustion = MULE:RETRY_EXHAUSTED. Does NOT count initial attempt. |
| On Error Continue vs Propagate | Continue = 200 success response. Propagate = passes error to parent. Continue for expected; Propagate for unexpected. |
| Anypoint MQ MANUAL ack | ack on success, nack on failure (returns to queue). Max retries โ DLQ. Use persistent ObjectStore for idempotency. |
| ObjectStore | In-Memory (lost on restart), Persistent (survives restart), Anypoint OS v2 (multi-worker). Always use v2 in CloudHub 2+ workers. |
Platform Events replayId | -1 = new only, -2 = last 72h, N = from specific ID. Use -2 on restart. 72h retention. |
| Salesforce JWT Bearer | RSA key pair. Upload public cert to Connected App. No password. Token auto-renews 1hr. Key rotation: upload new BEFORE removing old. |
| Bulk API 2.0 | Uses separate 15,000 batches / 150M records per 24h pool (does NOT count against 100k+ daily REST/SOAP quota). CSV auto-batch up to 150 MB base64-encoded (~100 MB raw); results retained 7 days. Always log failures. |
DataWeave $ and $$ | $ = current value. $$ = current index (array) or key (object). Short form for anonymous lambdas. |
| Watermarking | Store last-processed timestamp in persistent ObjectStore. Read at job start, update in On Complete. |
| Rate Limiting vs Spike Control | Rate Limiting REJECTS excess (429). Spike Control QUEUES excess โ better for bursty traffic. |
| SLB vs DLB | SLB = shared multi-tenant CloudHub infra. DLB = your own VPC, private IPs, custom SSL, VPN support. |
| VPC vs VPN | VPC = private network in CloudHub. VPN = encrypted tunnel connecting VPC to on-premise. VPC is where apps live; VPN is how they connect. |
Quick Reference Interview Cheat Sheet โ Interview Questions & Scenarios (2026)
High-yield rapid review: 30 critical one-liner definitions and standard interview answers.
๐ Quick Reference Interview Cheat Sheet
High-yield rapid review: 30 critical one-liner definitions and standard interview answers.
How do you encrypt properties in MuleSoft? How do you bypass applied API policies in Studio?
Encrypting properties: Use Anypoint Studio's Secure Properties Tool: right-click โ Mule โ Create a
Secure Properties File. Enter key and encrypt value. In config YAML: db.password: "![encrypted-
value]" . In global.xml: . Key passed via Runtime Manager Properties tab โ never stored in code.
Bypass API policies in Studio: Policies are enforced by API Gateway in CloudHub. In local Studio,
AutoDiscovery is present but not connected to API Manager. To bypass for local testing: comment
out element during local development, or use the API Manager stub locally. Never remove
AutoDiscovery in code committed to Git.
If 5 people are invoking the same URL, how does MuleSoft ensure the correct response goes to
each caller?
HTTP is stateless and request-response. Each HTTP request opens a unique connection/thread. The
HTTP listener binds the response to the original request connection. MuleSoft's thread pool assigns
one thread per request โ each thread has its own Mule event context (payload, variables, attributes).
Thread A's response is sent back on Thread A's connection, Thread B's on Thread B's, etc. The HTTP
infrastructure ensures isolation. correlationId (set at start of each request) further tracks each
individual transaction through all layers.
๐น RAML, API Design & Salesforce Connectors
What are traits, resource types, and fragments in RAML?
Traits: Reusable request/response patterns applied to multiple methods. Example: a pageable trait
adds queryParameters (limit, offset) โ applied with is: [pageable] . Resource Types: Reusable
resource patterns โ define a collection resource type with GET/POST/DELETE and apply it to
multiple resources. Fragments: External RAML files (DataTypes, Traits, ResourceTypes,
SecuritySchemes, Libraries) published to Exchange. Referenced with uses: MyLib:
exchange_modules/... . All 3 reduce duplication โ define once, reuse everywhere.
Project: Energy & Utility โ API-led Microservices Modernization.
Problem: Frontend and backend teams worked in silos, leading to contract discrepancies, breaking changes, and 3-week delays during integration testing.
What I Did: Standardized RAML 1.0 API specifications with modular DataTypes and mock services in Exchange, enforcing API Autodiscovery and Client ID enforcement policies.
Result: Enabled consumer teams to develop against live mocks 4 weeks earlier, eliminating contract defects and accelerating time-to-market by 35%.
What is the difference between Query and QueryAll in Salesforce?
Query: Returns only active/non-deleted records. Standard SOQL operation. Example: SELECT Id
FROM Account WHERE Type='Customer' โ returns active Accounts only.
QueryAll: Returns all records including deleted and archived records (those in the Recycle Bin).
Useful for compliance/audit scenarios where you need to know what was deleted. In MuleSoft
Salesforce Connector: use QueryAll operation instead of Query to include deleted records in results.
How do you handle SFTP strategies? How do you auto-delete files on SFTP?
SFTP Strategies: (1) Polling Strategy โ trigger when file arrives (Mule SFTP listener with
watermark). (2) Read Strategy โ on-demand file read with SFTP Read operation. (3) Write Strategy
โ write processed files back to SFTP.
Auto-delete files: SFTP Listener has an autoDelete="true" attribute โ deletes the file from SFTP
server after reading. For archiving instead of deleting: use autoDelete="false" and add an SFTP
Move operation after processing to move file to an /archive/ folder with a timestamp suffix. For
purging old files: scheduled Mule flow that lists files older than N days via SFTP List and deletes them
with SFTP Delete.
In a Bulk Insert with 10 records, if record 7 is invalid, what happens?
This depends on the connector and database.
Database Bulk Insert (non-XA transaction): All 10 records are sent in a single batch. If record 7 fails
validation at the database, the entire batch is typically rolled back โ 0 records inserted. This is
database-level atomic behavior.
Salesforce Bulk Insert: Partial success is possible โ Salesforce processes all records and returns
individual success/failure results. Records 1-6 and 8-10 may succeed while record 7 fails. Retrieve
results via Bulk API result polling.
Solution for guaranteed partial processing: Use Batch Job โ each record processed individually.
Record 7 fails, recorded in failedRecords, records 1-6 and 8-10 succeed. Total failures tracked in On
Complete.