What is the difference between a terminating and non-terminating error?
Documentation: Microsoft Learn
A terminating error stops the current operation and can be caught directly.
Interview · Question 9 of 34
Answer before reveal
Your draft
Write the answer you would give in an interview. The model answer stays hidden until you have drafted at least a short response.
A strong answer
A terminating error stops the current operation and can be caught directly. Many cmdlets emit non-terminating errors and continue; -ErrorAction Stop can promote those to terminating errors for controlled handling.
Show it concretely
Expect this follow-up
Would native application exit codes behave exactly like PowerShell exceptions?