How did you make sure only good code reached the main branch?
BeginnerBehavioralCI/CD pipeline deep-dive
Answer
Good answer looks like → "Branch protection on main: PRs required, 1 approval (2 for infra repos), required status checks for lint, tests and security scans, CODEOWNERS for sensitive paths like terraform/prod/, no force pushes, and linear history with squash merges."
Follow-ups to expect → Could admins bypass it? How did you handle urgent hotfixes?
Red flags → Pushing directly to main as normal practice.
More on CI/CD pipeline deep-dive
Walk me through your CI/CD pipeline stage by stage.BeginnerWhy did you choose GitHub Actions (or Jenkins, or GitLab CI) for this pipeline?IntermediateHow did you share pipeline logic across many repositories?IntermediateHow did your pipeline authenticate to AWS (or your cloud)?IntermediateHow did you tag and version container images?BeginnerHow did you promote a build from staging to production?Intermediate