Magento 2 Certified Associate Developer — Question 4
You got a notification about error that occurred on a production environment. The merchant gave you the error identifier.
How do you find the error message based on the identifier?
Answer options
- A. An error is written to the var/log/exception.log file including the identifier
- B. The error is sent to the pre-configured error email with the identifier in the subject
- C. A file with a name matching the identifier is written to the var/report folder
- D. An error message is written to the database table error_log with an error_id field matching the identifier
Correct answer: B
Explanation
The correct answer is B because errors are typically sent to a pre-configured email with relevant details, including the identifier, which aids in quick identification. Options A and C refer to logging mechanisms that do not involve direct notification to the merchant, while option D involves database logging, which is not typically visible without querying the database.