Interview Prep/Python for DevOps/Testing, CI/CD, packaging & services

Walk me through how you would present the cloud-ops audit CLI from the lab in an interview.

IntermediateScenarioTesting, CI/CD, packaging & services
Answer

Situation read → Project storytelling: problem, design, trade-offs, results.

What I'd do →

  1. Problem: no visibility into untagged/idle EC2, open security groups and old snapshots across regions.
  2. Design: click CLI, boto3 with paginators and adaptive retries, per-region threads with one Session each, findings as dataclasses, JSON/CSV/Markdown renderers, exit code 2 on HIGH findings.
  3. Quality: pytest with moto (offline, free), ruff, mypy strict, Docker multi-stage non-root.
  4. Operations: weekly GitHub Actions run via OIDC with a read-only role, report as artifact and job summary.
  5. Trade-offs: moto gaps (snapshot timestamps) handled with stubs; "no metrics" treated as unknown, not idle.

Why → Structure shows engineering judgment, not just code.

Interview tip → Always have one trade-off and one thing you would improve next ready.

All Python for DevOps questions Roadmap: Python for automation

More on Testing, CI/CD, packaging & services