nerdexam
Salesforce

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.

Submitted by khalil_dz· Apr 18, 2026Testing, Debugging, and Deployment

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

PDI question #115 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)
  • A
    9% (5)
  • B
    4% (2)
  • C
    87% (47)

Why each option

Salesforce debug logs have specific retention periods, size limits, and configurable monitoring options.

ADebug log levels are cumulative, where FINE log level includes all events logged at the DEBUG,

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.

BThe maximum size of a debug log is 5 MB.

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.

COnly the 20 most recent debug logs for a user are kept.Correct

Salesforce retains only the 20 most recent debug logs for a user, automatically deleting older ones to manage storage.

DDebug logs can be set for specific users, classes, and triggers.Correct

Debug logs can be configured for specific users, Apex classes, and Apex triggers, allowing granular control over what information is logged.

ESystem debug logs are retained for 24 hours.Correct

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

#Debug Logs#Apex Debugging#Salesforce Logging#Troubleshooting

Community Discussion

No community discussion yet for this question.

Full PDI Practice