The interview problem

Practice prompt

A customer must replace a service credential while scheduled work continues. Plan a rotation with clear rollback boundaries.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume the provider supports either overlapping credentials or a documented maintenance window. Inventory every consumer and cache, create the new credential through the authorized owner, validate it on a harmless scoped operation, then switch consumers by credential version. Monitor successful use before revoking the old version. Keep secret values out of tickets and logs; the handoff artifact contains owners, versions and timestamps only.

2. Trace the design or derivation

Inventory consumers
  → validate new key
  → switch and refresh caches
  → observe coverage
  → revoke old key

The rotation checklist should include low-frequency jobs, disaster-recovery workers and manual support tooling. Mark each as observed on the new version or explicitly untested. If a consumer cannot be exercised before revocation, record that residual risk and an owned recovery plan instead of reporting complete migration.

3. Calculate the example

If workers cache credentials for 60 minutes and the old secret is revoked after 10, remaining old-cache workers can fail for up to 50 minutes. A forced cache refresh or overlap exceeding the measured cache lifetime closes that gap.

4. Failure cases and trade-offs

A rollback to a revoked key is impossible. Undiscovered cron jobs often surface only after revocation. Longer overlap lowers outage risk but extends dual-valid exposure. Define a stop/go checkpoint before irreversible revocation and verify all consumers, not just the main API process.

5. Validation, follow-ups and self-review

Exercise rotation with a low-impact test credential and an intentionally stale worker. Follow-up: what changes if only one key can be valid? Self-review: inventory caches and identify the irreversible step.

Sources and related practice

Technical reference: docs.aws.amazon.com — Secret rotation concepts; overlap depends on the provider contract.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Resolve customer OAuth refresh races; Rotate service certificates without interrupting traffic.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.