CI/CD, Signing & Release Interview Questions
BUILD & TOOLING › Delivery
What does a typical CI pipeline for an Android app run on every pull request?
What a strong answer covers: Checkout and cache Gradle; run lint and static analysis (Android Lint, detekt or ktlint); run unit tests; build the debug or release variant to catch compile and R8 issues; sometimes screenshot tests and instrumented tests on emulators; and report results back to the pull request. The goal is fast feedback, usually under 10 to 15 minutes.
How do you release an Android app to users safely?
What a strong answer covers: Use Play's tracks: internal testing, closed and open testing, then a production staged rollout (1%, 5%, 20%, 100%), watching crash rate, ANRs, reviews and key metrics at each stage, and halting the rollout if something goes wrong. Combine with feature flags so risky features can be turned off without a new release.
How do you manage signing keys and secrets in CI?
What a strong answer covers: Store the keystore and passwords as encrypted CI secrets (base64-encoded keystore written to a temp file during the build), never in the repository. With Play App Signing, CI only holds the upload key. Restrict who can access release jobs, and use a service account with minimal permissions for uploading through the Play Developer API (Gradle Play Publisher or fastlane).
How would you automate versioning and publishing a release?
What a strong answer covers: Derive versionCode automatically from the CI build number or commit count and versionName from a tag. A release workflow on tag builds the signed AAB, uploads mapping files, publishes to an internal track with release notes, and requires manual promotion. Tools: fastlane, Gradle Play Publisher, GitHub Actions or Bitrise. Keep the process reproducible from a tag.
A bad release has gone out to 20 percent of users and crashes on startup for some devices. Walk me through what you do in the next hour and what you change afterwards.
What a strong answer covers: Halt the staged rollout in Play Console immediately; check the crash reporter for the stack trace, affected devices and OS versions; if a feature flag can disable the cause, turn it off remotely; otherwise prepare a fix release with a higher versionCode (you can't roll back a version). Communicate with support and stakeholders. Afterwards: a blameless post-mortem, a test or device coverage that would have caught it, release-build smoke tests, and slower rollout percentages with alerting on crash-free rate.