Salesforce Decode
Salesforcedecode
Back to questions
ApexBeginnergovernor-limitsplatform

What are governor limits?

Real World Scenario

A junior's integration works for one record but fails on batch jobs. You explain governor limits.

Expected Answer

• Governor limits cap resources per transaction to protect multitenant platform stability • Common limits: 100 SOQL queries, 150 DML statements, 10,000 DML rows, 10 MB heap, CPU time • Limits apply per synchronous transaction; async contexts have their own thresholds • Hitting a limit throws an exception and rolls back the whole transaction • Design patterns like bulkification and async processing stay within limits

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

No for standard limits in normal transactions. Some async types allow higher query rows. Architecture must fit within platform caps.

Architect Perspective

Connect limits to multitenant fairness—shows you understand why Salesforce enforces them.