MongoSecurityException - AWS-EKS - How to keep session alive

Don’t quite unterstand how this works…Just testet now with the k8s pod which has been running ~2 days without interruption (and no activity towards Mongo). I would expect it to get an MongoSecurityException when tries to do a operation towards Mongo. But everything worked perfectly.

Found this post which is related: Re-establish AWS Assumerole connection - but still unsure about a solution here.