CI/CD Pipelines: GitHub Actions and Azure DevOps Interview Questions
261 multiple-choice tech interview questions on CI/CD Pipelines: GitHub Actions and Azure DevOps: continuous integration, delivery and deployment, workflows and YAML pipelines, runners and agents, environments, deployment strategies. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 241 key terms with the flashcards first, then test yourself.
Take the practice test · Flashcards · All study tools
What it covers
- 9.1 CI/CD concepts and practices
- 9.2 GitHub Actions workflows
- 9.3 GitHub Actions at scale: reuse, runners and caching
- 9.4 Azure Pipelines YAML
- 9.5 Azure DevOps environments, approvals and connections
- 9.6 Testing and quality gates in pipelines
- 9.7 Deployment strategies and releases
- 9.8 Pipeline security and supply chain
- 9.9 Artifacts, versioning and GitOps
Key terms
9.1 CI/CD concepts and practices
- Continuous integration
- Merging small changes often, each built and tested automatically
- Continuous delivery
- Every change is kept releasable, with a manual go-live decision
- Continuous deployment
- Every passing change is released to production automatically
- Pipeline as code
- Pipeline definitions stored as files in the repo
- Shift left
- Moving quality and security checks earlier
- Scheduled build
- A pipeline run on a timer, not a commit
- Hermetic build
- A build isolated from undeclared external inputs
- Commit stage
- The fast first stage of a deployment pipeline
- Pipeline stages
- Ordered phases that code passes through
- Fail fast
- Ordering checks so cheap ones run first
- Flaky test
- A test that passes and fails without code changes
- Pre-merge pipeline
- Checks run on a pull request before merging
- Walking skeleton
- A minimal app wired through build to deploy early
- Externalized config
- Settings supplied per environment, not built in
- Migration step
- Applying versioned schema changes during deployment
- Roll forward
- Fixing a bad release with a new one instead of reverting
- Pipeline metrics
- Duration, queue time and failure rates of pipelines
- Toolchain pinning
- Fixing the compiler or SDK version in the repo
- Build vs deploy pipeline
- Splitting artifact creation from release
- Preview environment
- A temporary deployment for one pull request
- Clean build environment
- A fresh, known setup for every build
- Test sharding
- Splitting a suite across parallel runners
- Small batches
- Releasing a few changes at a time
- Single path to production
- All deploys going through the pipeline
- CI servers
- Systems that run build and test pipelines
- .gitlab-ci.yml
- The GitLab CI pipeline definition file
9.2 GitHub Actions workflows
- Workflow
- A GitHub Actions automation defined in YAML under .github/workflows
- Runner
- The machine that executes a CI job
- branches filter
- Limiting a push or pull_request trigger to branches
- paths filter
- Triggering only on changes to given files
- workflow_dispatch
- A trigger for running a workflow manually
- schedule trigger
- Cron-based workflow runs
- needs
- Declares job dependencies in a workflow
- if conditional
- An expression deciding whether a job or step runs
- uses vs run
- Calling an action versus running a script
- fetch-depth
- How many commits checkout clones
- setup actions
- Actions that install a language toolchain
- Expression syntax
- `${{ }}` for evaluating contexts and functions
- GITHUB_OUTPUT
- File where steps write named outputs
- Job outputs
- Values a job exposes to jobs that need it
- GITHUB_ENV
- File that sets env vars for later steps
- Job summary
- Markdown written by steps to the run page
- continue-on-error
- Letting a failing step not fail the job
- timeout-minutes
- Maximum run time for a job or step
- concurrency
- Limits simultaneous runs in a group
- fail-fast
- Cancelling sibling matrix jobs after a failure
- Service containers
- Sidecar containers for a job, like databases
- Job container
- Running a whole job inside a container image
- defaults
- Default settings for run steps
- Tag trigger
- Running a workflow when matching tags are pushed
- workflow_run
- A trigger fired by another workflow's run
- Status functions
- `success()`, `failure()`, `always()`, `cancelled()`
9.3 GitHub Actions at scale: reuse, runners and caching
- workflow_call
- Trigger that makes a workflow callable
- Calling a reusable workflow
- Job-level `uses:` pointing at a workflow file
- secrets: inherit
- Passing the caller's secrets to a called workflow
- Composite action
- An action made of multiple steps
- Reuse levels
- Jobs via reusable workflows, steps via composite actions
- Action types
- JavaScript, Docker container and composite actions
- action.yml
- Metadata file for an action
- Workflow templates
- Org-shared starter workflows
- Workflow artifacts
- Files saved from a run for other jobs or download
- Artifact retention
- How long run artifacts are stored
- Immutable artifacts
- v4 artifacts can't be appended to once uploaded
- Cache vs artifact
- Speed-up storage versus kept outputs
- restore-keys
- Fallback prefixes when the exact cache key misses
- Cache eviction
- Removal of unused or excess caches
- Cache scope
- Which branches' caches a run can read
- Built-in setup cache
- Caching option in setup actions
- Larger runners
- Bigger GitHub-hosted machines
- Runner labels
- Tags used to route jobs to runners
- ARC
- Kubernetes operator for autoscaling runners
- Ephemeral runner
- A runner that takes one job, then is removed
- Runner groups
- Access control for sets of runners
- Arm runners
- GitHub-hosted Linux runners on Arm64
- GitHub environment
- A deployment target with protection rules
- vars context
- Non-secret configuration variables
- Required workflows
- Rulesets that require workflows before merging
- Dynamic matrix
- A matrix built from an earlier job's JSON output
- Rerun failed jobs
- Retrying only failing jobs of a run
- Debug logging
- Extra diagnostic step logs
9.4 Azure Pipelines YAML
- Service connection
- Azure DevOps credentials for reaching external services
- Environment
- A deployment target with approvals and checks
- trigger
- Azure Pipelines CI trigger on pushes
- trigger: none
- Turning off push-based CI
- Microsoft-hosted agent
- Agent VMs run by Microsoft
- Predefined variables
- Built-in values like Build.BuildId
- Variable syntax
- Template, macro and runtime expressions
- Variable group
- Shared set of variables across pipelines
- Secret variables
- Masked variables not auto-exposed to scripts
- Output variables
- Values set with isOutput=true for other jobs
- Logging commands
- Special output lines the agent interprets
- dependsOn
- Declares job or stage dependencies
- Conditions
- Expressions controlling whether jobs or stages run
- Task version
- Major version pinned on a task
- Script shortcuts
- Inline script step keywords
- Pipeline artifacts
- Files published from a run
- Matrix strategy
- Running a job per set of variables
- Runtime parameters
- Typed inputs chosen at queue time
- Repository resources
- Extra repos a pipeline can use
- Pipeline resources
- Triggers and artifacts from other pipelines
- Scheduled triggers
- Cron-based pipeline runs
- Classic pipelines
- UI-defined build and release pipelines
- Parallel jobs
- How many jobs can run at once
- Managed DevOps Pools
- Azure-hosted, customizable agent pools
- fetchDepth
- How many commits checkout fetches
- Parallel stages
- Stages with no dependencies run at once
- timeoutInMinutes
- Job time limit
9.5 Azure DevOps environments, approvals and connections
- Deployment job
- A job that deploys to an environment
- Deployment strategies
- runOnce, rolling, canary in deployment jobs
- Lifecycle hooks
- Phases of a deployment strategy
- Deployment job checkout
- Source isn't cloned in deployment jobs
- Environment resources
- Targets registered in an environment
- Environment checks
- Conditions a stage must pass to use a resource
- Exclusive lock
- Allows one run at a time to use a resource
- Branch control
- Check limiting resources to specific branches
- Required template
- Check that pipelines extend approved YAML
- Approval timeout
- Time an approval waits for a decision
- Self-approval
- Whether the run's requester can approve it
- Business hours check
- Limits deployments to set times
- Azure Monitor alerts check
- Gate on active alerts
- Protected resources
- Resources that support checks
- Pipeline permissions
- Per-resource authorization for pipelines
- Workload identity federation
- Secretless auth with token exchange
- Least-privilege connections
- Narrow scope for pipeline identities
- Managed identity connection
- Connection using an agent VM's identity
- Secure files
- Encrypted files stored in the Library
- AzureCLI task
- Runs az commands signed in via a connection
- Personal access token
- A user token for Azure DevOps APIs
- Job authorization scope
- Limits the pipeline token's reach
- System.AccessToken
- Job-scoped token for Azure DevOps APIs
- Deployment history
- Record of runs deployed to an environment
- Build validation
- Branch policy requiring a successful build
- Manual validation
- A task that waits for human input
- Agentless job
- Job run by Azure DevOps itself
9.6 Testing and quality gates in pipelines
- Quality gate
- Pass/fail criteria for continuing a pipeline
- Coverage gate
- Failing builds below a coverage level
- Diff coverage
- Coverage measured on changed lines
- Skipped required checks
- Path-filtered workflows leaving checks pending
- Coverage collection
- Gathering coverage data during tests
- Annotations
- Errors and warnings linked to file lines
- CodeQL
- GitHub's semantic code analysis engine
- DAST
- Security testing of a running app
- Split test jobs
- Separate jobs for unit and integration tests
- merge_group
- Event fired for merge queue builds
- Performance gate
- Failing a run on load-test thresholds
- Aggregate check job
- A final job depending on all others
- Failure artifacts
- Debug files saved only on failure
- License scanning
- Checking dependency licenses against policy
- Lighthouse CI
- Automated Lighthouse runs with budgets
- Security gate policy
- Severity thresholds for failing builds
- Test data
- Data used by test environments
- Pre-commit vs CI
- Local hooks versus enforced pipeline checks
- Coverage publishing
- Showing coverage in the pipeline UI
- Environment parity
- Testing in the same image or setup as production
- Warnings as errors
- Failing builds on compiler warnings
- Test analytics
- Trends of test results across runs
- Fuzzing
- Feeding random or mutated inputs to code
- Migration testing
- Rehearsing schema changes on realistic data
- Container structure test
- Assertions about a built image's contents
- Release configuration
- Testing the build that ships
- AI code review
- Automated review suggestions from AI tools
- Test timeouts
- Limits on how long each test may run
- PR summary comment
- Bot comment with CI results
9.7 Deployment strategies and releases
- Blue-green deployment
- Switching traffic between two identical environments
- Canary release
- Rolling out to a small share of traffic first
- Feature flag
- A runtime switch that turns features on or off without redeploying
- Recreate deployment
- Stopping the old version before starting the new
- Replica-ratio canary
- Splitting traffic by Pod counts behind a Service
- A/B test
- Comparing variants to see which performs better
- Canary analysis
- Statistical comparison of canary and baseline metrics
- Flag evaluation side
- Where a flag is checked: client or server
- Consistent bucketing
- Hashing IDs so users stay in one cohort
- Rollback hazard
- Old code meeting data written by new code
- Deployment rings
- Successive audiences for a release
- Regional waves
- Rolling releases region by region
- Bake time
- Observation period between rollout stages
- Expand and contract
- Making schema changes in compatible steps
- Flag debt
- Accumulated old feature flags
- Deployment freeze
- A period with no routine releases
- Toggle types
- Release, experiment, ops and permission flags
- OpenFeature
- CNCF standard for feature flag SDKs
- App Configuration flags
- Feature flags in Azure App Configuration
- Change approval
- How changes get authorized for release
- Shared database
- One database behind both blue and green
- Dark launch
- A feature deployed but not visible to users
- Rollback artifacts
- Stored earlier builds for quick redeploy
- Readiness check
- A probe that says an instance can take traffic
- Weighted routing
- Splitting traffic by percentage across backends
- Staged rollout
- Releasing an app to a growing share of users
- Build info
- Version and commit data exposed by a running app
9.8 Pipeline security and supply chain
- pull_request_target
- Trigger running in the base repo's trusted context
- Script injection
- Untrusted input expanded into a shell script
- Fork PR restrictions
- Limits on workflows triggered from forks
- Per-job permissions
- Token permissions set on individual jobs
- Cache poisoning
- Tampering with build caches used by trusted runs
- Keyless signing
- Signing with ephemeral certs from an OIDC identity
- Untrusted artifacts
- Outputs of fork PR runs used by privileged jobs
- Fork builds
- PR builds from forks in Azure Pipelines
- Dependabot secrets
- Secrets available to Dependabot-triggered runs
- Dependency review
- PR check for risky new dependencies
- GITHUB_TOKEN lifetime
- Token valid only for the job
- OIDC subject claim
- Token claim naming the repo and ref or environment
- Runner egress control
- Restricting where runners can connect
- Signing keys
- Keys used to sign release artifacts
- Workflow ownership
- Extra review for pipeline definitions
- Allowed actions policy
- Org or repo setting limiting usable actions
- Dependabot groups
- Batching dependency updates
- Masking limits
- Log masking only hides known exact strings
- Immutable releases
- Releases whose tag and assets can't change
- CI audit logs
- Records of settings and permission changes
- Identity separation
- Different credentials per pipeline stage
- GITHUB_TOKEN triggers
- Events from the token don't start most workflows
9.9 Artifacts, versioning and GitOps
- Artifact repository
- Store for versioned packages and binaries
- Upstream sources
- Feed proxies for public package registries
- Feed views
- Filtered views of a feed for promotion
- Breaking platform change
- Dropping support for a runtime or platform
- Pre-release version
- A version with a hyphenated label
- Build metadata
- The `+` suffix on a SemVer version
- Conventional Commits
- Structured commit messages for automation
- release-please
- Tool automating versions and changelogs from commits
- Git-based versioning
- Deriving versions from tags and commits
- Immutable versions
- A published version that never changes
- Artifact retention policy
- Rules to clean up old artifacts
- Reconciliation interval
- How often a controller checks Git
- Pull-based deployment
- An in-cluster agent pulls changes from Git
- Ignored fields
- Fields excluded from GitOps drift checks
- Self-heal
- Reverting manual changes to match Git
- GitOps promotion
- Changing desired state per environment in Git
- Config repo
- Repository holding deployment manifests
- Image automation
- Updating image tags in Git automatically
- Kustomize overlays
- Environment patches on a common base
- Chart versions
- Chart version versus packaged app version
- Sync waves
- Ordering resource sync in Argo CD
- ApplicationSet
- Template for many Argo CD Applications
- GitOps rollback
- Reverting desired state in Git
- Generated release notes
- Release notes built from merged PRs
- Checksums file
- Hashes of release assets
- CalVer
- Date-based version numbers
- OpenGitOps principles
- Four principles defining GitOps
- Universal Packages
- Generic versioned file packages in Azure Artifacts
- Initial development
- SemVer 0.y.z versions
Sample practice questions
What is continuous integration (CI)?
- Deploying every single change to production automatically, with no gates
- Integrating two different companies' codebases after an acquisition
- Running the full test suite once, right before each major release
- Merging small changes to main often, each one built and tested automatically
Answer: D. Merging small changes to main often, each one built and tested automatically CI catches integration problems early, while they are small and cheap to fix.
Where are GitHub Actions workflows defined?
- YAML files in `.github/workflows/`
- The repository settings page only
- A `Jenkinsfile` at the repo root
- `azure-pipelines.yml` at the root
Answer: A. YAML files in `.github/workflows/` Each workflow has triggers (`on:`), jobs and steps.
What does dependency caching in a pipeline (for example `actions/cache` or `Cache@2`) do?
- Stores every build log permanently for audits
- Caches the production database for faster tests
- Keeps runners online and warm between jobs
- Reuses packages between runs, keyed on the lock file
Answer: D. Reuses packages between runs, keyed on the lock file Key the cache on a hash of `package-lock.json` or `packages.lock.json` so it refreshes when dependencies change.
Where are Azure Pipelines YAML definitions usually stored?
- Only in Azure DevOps' web-based designer
- In the repo's `.github/workflows` folder
- In the repo, as `azure-pipelines.yml`
- In an Azure Key Vault as secrets
Answer: C. In the repo, as `azure-pipelines.yml` Classic release pipelines are designer-based; YAML multi-stage pipelines are recommended.
How do Azure Pipelines environments with approvals and checks help?
- They encrypt build artifacts before they're published
- Deployments to them wait for required approvals or checks
- They make builds run faster by caching dependencies
- They let anyone on the team deploy to production
Answer: B. Deployments to them wait for required approvals or checks GitHub environments offer similar required reviewers and protection rules.
What is a quality gate in a pipeline?
- A branch that holds released code
- A firewall around the build servers
- A manager who reads every commit
- A set of conditions code must meet to proceed
Answer: D. A set of conditions code must meet to proceed SonarQube, for example, fails a build when its gate isn't met.
What is a blue-green deployment?
- Deploying to half of the servers on Mondays and the other half on Thursdays
- Two identical environments; traffic switches to the new one, and back to roll back
- Coloring the pipeline's log output to separate errors from warnings
- Running the automated test suite in two programming languages
Answer: B. Two identical environments; traffic switches to the new one, and back to roll back App Service deployment slots are a common way to do blue-green.
Why pin a third-party action to a full commit SHA rather than a tag like `@v4`?
- Tags can be moved to malicious code; a SHA can't change
- Actions pinned to a SHA run noticeably faster than tagged ones
- GitHub Actions doesn't support referencing actions by tag
- Pinning to a SHA is only required for private repositories
Answer: A. Tags can be moved to malicious code; a SHA can't change The 2025 tj-actions/changed-files compromise showed the risk of moving tags.
What does an artifact repository like Artifactory or Azure Artifacts provide?
- A place to run unit tests in parallel
- Versioned storage for packages and builds
- A dashboard that tracks cloud costs
- A Git host for application source code
Answer: B. Versioned storage for packages and builds GitHub Packages is another option.
What is the difference between continuous delivery and continuous deployment?
- Deployment keeps changes releasable with a manual go; delivery ships every passing change
- They're identical practices, and the two names are used interchangeably by most teams
- Delivery keeps changes releasable with a manual go; deployment ships every passing change
- Continuous delivery skips automated tests, while continuous deployment always runs them
Answer: C. Delivery keeps changes releasable with a manual go; deployment ships every passing change Both rely on automated pipelines; the difference is the final human gate.
More Cloud and DevOps
- Cloud Fundamentals: IaaS, PaaS, SaaS and Shared Responsibility
- Azure Core Services
- AWS Core Services
- Google Cloud Basics
- Serverless: Azure Functions and AWS Lambda
- Containers and Docker
- Kubernetes
- Infrastructure as Code: Terraform and Bicep
- Networking: DNS, TCP/IP, Load Balancers and VPNs
- Cloud Identity and Access: Entra ID, IAM and RBAC
- Secrets Management and Key Vault
- Monitoring and Alerting: Application Insights and CloudWatch
- Cloud Cost Management