ORDER-MANAGEMENT-ADMINISTRATOR practice question 5 of 15

What two tools can an administrator use to debug an issue with an Apex trigger?

Full set: 85 questions
Answer options
A: Apex Logs in Setup
B: Error Logs in the Developer Console
C: Log Inspector in the Developer Console Correct answer
D: Debug Logs in Setup Correct answer
Correct Answer:
C. Log Inspector in the Developer Console; D. Debug Logs in Setup
Explanation

To debug an Apex trigger, an administrator uses a two-part process. First, they use the "Debug Logs" page in Setup to set trace flags for a specific user, which captures detailed execution logs. Second, after the trigger has run and a log is generated, they use the "Log Inspector" within the Developer Console to open and analyze the log file. The Log Inspector provides a structured view of the execution path, governor limit usage, and variable states, which is essential for identifying issues.

Why Incorrect

A. Apex Logs in Setup: The correct name for the feature in Setup is "Debug Logs," not "Apex Logs."
B. Error Logs in the Developer Console: The Developer Console does not have a separate section for "Error Logs"; errors are reported within the main debug log view.

References

Apex Developer Guide, "Debug Logs": This section details how to use the "Debug Logs" page in Setup to configure trace flags to monitor database operations, system processes, and errors that occur when executing transactions.

Salesforce Developer Console Guide, "Log Inspector": "Use the Log Inspector to review debug logs... The Log Inspector is a context-sensitive execution viewer that shows the source of an operation, what triggered the operation, and what occurred next." This confirms its role in analyzing generated logs.

Scroll to Top