advancedKubernetes & Production Ops

A scheduled job runs once locally but five times after scaling to five pods. How do you prevent this duplicate execution?

Tests whether you know a @Scheduled job needs a distributed lock (or ShedLock) to run exactly once across a clustered deployment.

This is a Pro question

Sign in, then upgrade to Pro or Power to unlock this question and the full Interview Prep bank.

A scheduled job runs once locally but five times after scaling to five pods. How do you prevent this duplicate execution?

Next Step

Continue to Your Spring Boot application takes 5 minutes to start in production but only 20 seconds locally. How do you debug it?← Back to all Spring Boot & Microservices questions