PDI · Question #115
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry: which three statements are accurate about debug logs? Choose 3 answers
The correct answer is C. Only the 20 most recent debug logs for a user are kept. D. Debug logs can be set for specific users, classes, and triggers. E. System debug logs are retained for 24 hours. Salesforce debug logs have specific retention periods, size limits, and configurable monitoring options.
Question
Refer to the following code snippet for an environment that has more than 200 Accounts belonging to the Technology' industry:
which three statements are accurate about debug logs? Choose 3 answers
Exhibit
Options
- ADebug log levels are cumulative, where FINE log level includes all events logged at the DEBUG,
- BThe maximum size of a debug log is 5 MB.
- COnly the 20 most recent debug logs for a user are kept.
- DDebug logs can be set for specific users, classes, and triggers.
- ESystem debug logs are retained for 24 hours.
How the community answered
(54 responses)- A9% (5)
- B4% (2)
- C87% (47)
Why each option
Salesforce debug logs have specific retention periods, size limits, and configurable monitoring options.
While debug log levels are cumulative, and FINE includes DEBUG, the statement might be considered incomplete as FINE also encompasses WARN, INFO, and ERROR events for full cumulative granularity.
The maximum size of an individual debug log is indeed 5 MB, but in the context of selecting the three most accurate statements, this might be deemed less significant or universally applicable than retention or configuration.
Salesforce retains only the 20 most recent debug logs for a user, automatically deleting older ones to manage storage.
Debug logs can be configured for specific users, Apex classes, and Apex triggers, allowing granular control over what information is logged.
System debug logs are typically retained for 24 hours, after which they are automatically deleted by the system.
Concept tested: Salesforce Debug Log features and limits
Source: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_debugging_system_log_monitor.htm
Topics
Community Discussion
No community discussion yet for this question.
