exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 94 discussion

Actual exam question from Salesforce's CRT-450
Question #: 94
Topic #: 1
[All CRT-450 Questions]

Which governor limit applies to all the code in an Apex transaction?

  • A. Elapsed SOQL query time
  • B. Number of classes called
  • C. Number of new records created
  • D. Elapsed CPU time
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
LordGreed
9 months, 1 week ago
Selected Answer: D
D is correct. https://developer.salesforce.com/docs/atlas.en-us.salesforce_app_limits_cheatsheet.meta/salesforce_app_limits_cheatsheet/salesforce_app_limits_platform_apexgov.htm CPU time is calculated for all executions on the Salesforce application servers occurring in one Apex transaction. CPU time is calculated for the executing Apex code, and for any processes that are called from this code, such as package code and workflows. CPU time is private for a transaction and is isolated from other transactions. Operations that don't consume application server CPU time aren't counted toward CPU time. For example, the portion of execution time spent in the database for DML, SOQL, and SOSL isn't counted, nor is waiting time for Apex callouts. Application server CPU time spent in DML operations is counted towards the Apex CPU limit, but isn’t expected to be significant. Bulk API and Bulk API 2.0 consume a unique governor limit for CPU time on Salesforce Servers, with a maximum value of 60,000 milliseconds.
upvoted 4 times
...
Sib1993B
1 year, 11 months ago
A. Ref: https://developer.salesforce.com/docs/atlas.en-us.234.0.apexcode.meta/apexcode/apex_gov_limits.htm Maximum SOQL query run time before Salesforce cancels the transaction (120s)
upvoted 1 times
bobbyaaaaa
1 year, 10 months ago
This answer A only applies to Static limitations, which doesn't represent all the code in an Apex transaction.They represent extra limitations. This is a very specific situation, in which extra limitations regarding Apex callouts, queries, records, and when there’s more than one transaction. In the question, it asks for all the code in an Apex transaction, which makes D correct. In your article, solution D would be under per-transaction. https://onilab.com/blog/governor-limits-salesforce/
upvoted 4 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago