Common backend failure patterns · mid
Failures that start on the hour: time zones and expiry
A failure that starts exactly on the hour with no change points to time: an expired certificate, token or licence, or a date computed in the wrong time zone.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- A failure that starts on the hour with no deploy points to time. Confirm with openssl s_client and the notAfter dates on both sides.
- "Certificate has expired" or "PKIX path validation failed" in our client means the server certificate expired. "Received fatal alert: certificate_expired" means the other side rejected our client certificate.
- Apps often load a keystore only at startup. After renewal, restart in rolling fashion or reload certificates when the mounted secret changes.
- Prevent: an inventory of every certificate (public, internal, partner, client), expiry checks from outside (for example probe_ssl_earliest_cert_expiry from the Prometheus blackbox exporter), alerts at 30, 14 and 7 days to a team channel, and automatic renewal. Reminders must go to a team, not to one person.
- IST is UTC+5:30 with no daylight saving. Midnight IST is 18:30 UTC the day before, so from 00:00 to 05:30 IST the UTC date is still yesterday.
- Check the time zone of new nodes (TZ), the database session time zone, and every place that takes "now" or "today". new Date().toISOString().slice(0, 10) gives the UTC date.
- Keep servers in UTC, store instants in timestamptz, and compute business dates with an explicit zone (Asia/Kolkata). A timestamp without time zone column can end up with two meanings after a move.
- Kubernetes CronJobs follow the controller time zone unless you set .spec.timeZone.
The red pen
Common traps: mistake → fix
Mistake: Servers must run in the business time zone
Fix: run in UTC and convert at the edges.
Mistake: A renewed certificate is live at once
Fix: a process that loaded the old one keeps using it until restart or reload.
Mistake: Certificate reminders by email to one engineer are enough
Fix: that person may leave; use a team channel and monitoring.
Easy to hard
Questions interviewers ask, easy to hard
- Every call to the bank fails since 10:00 and nothing was deployed. What do you suspect?
- How do you know whose certificate expired?
- Free delivery works wrongly only between midnight and 5:30 in the morning. Why?
- How do you stop certificate expiry from surprising you again?
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.