Monitoring and Logging Flashcards

(6 cards)

1
Q

How can you monitor job execution history?

A

By querying the BATCH_JOB_EXECUTION table.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you enable logging for Spring Batch?

A

By configuring a logging framework like Logback or Log4j.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the ExecutionContext?

A

A key-value store for sharing data between steps.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How can you track item processing times?

A

By implementing a StepExecutionListener to log start/end times.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you customize job failure handling?

A

By using JobExecutionListener to send alerts on failure.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you retry a failed job execution?

A

By relaunching it with the same job parameters.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly