The goal is to assess their previous experience and learnings. The focus is on learnings. We all have had previously bad experiences, the importance is on how fast did the candidate learn from them.
You can find 50+ questions and follow ups in the list.