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 →
- Problem: no visibility into untagged/idle EC2, open security groups and old snapshots across regions.
- 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.
- Quality: pytest with moto (offline, free), ruff, mypy strict, Docker multi-stage non-root.
- Operations: weekly GitHub Actions run via OIDC with a read-only role, report as artifact and job summary.
- 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.
More on Testing, CI/CD, packaging & services
You join a team whose Python automation repo has no tests. Where do you start?BeginnerYour pytest suite takes 12 minutes. How do you speed it up?IntermediateA test passes locally but fails in CI only when run with the rest of the suite. What do you suspect?IntermediateYou want a reusable CI pipeline for 15 Python tool repos. What goes in it?IntermediateYour Python Docker image is 1.1 GB. How do you shrink it?IntermediateYou want to distribute an internal CLI to 200 engineers. What are your options?Intermediate