# How do Governor Limits impact Apex Triggers (specifically the 100 SOQL and 150 DML limits)?

**Topic:** Apex Trigger · **Difficulty:** Medium · **Asked at:** TCS, Wipro, Infosys, Cognizant · **Tags:** apex-trigger, trigger, governor-limits

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-governor-limits-impact-apex-triggers-specifically-the-100-soql-and-150-dml-limits

## Answer

Governor limits apply per transaction, and all triggers, flows and classes firing in that transaction **share** them. Key synchronous limits: 100 SOQL queries, 150 DML statements, 50,000 query rows, 10,000 DML rows, 10 s CPU, 6 MB heap.

SOQL/DML inside a loop in a trigger exhausts 100/150 quickly when 200 records are processed, causing an uncatchable `LimitException`. Bulkify, use Maps and Sets, and keep other automations on the object in mind, since they consume the same budget. Check usage with the `Limits` class.

---
Source: ForceChallenges · last updated 2026-10-21
