🌍 Front-end Web Development · subject

Front-end Web Development Deployment Syllabus

The Deployment syllabus for Front-end Web Development in full: 2 chapters and 6 topics, every one listed below, plus 50 Deployment flashcards with answers.

2Chapters
6Topics
50Flashcards

Deployment syllabus: all 2 chapters

Expand any chapter to see its topics and sub-topics.

  1. Hosting Platforms

    3 topics
    • Netlify
    • Vercel
    • GitHub Pages
  2. CI/CD

    3 topics
    • GitHub Actions
    • Travis CI
    • CircleCI

Front-end Web Development Deployment flashcards — 50 questions with answers

  1. What is Netlify, and what is its primary purpose in front-end deployment?

    Netlify is a cloud platform for building, deploying, and hosting static sites and serverless functions. It connects to a Git repository, runs a build command, and serves the output over a global CDN with continuous deployment on every push.

  2. In Netlify, what two key settings define how a site is built and what gets published?

    The 'build command' (e.g., npm run build), which produces the site, and the 'publish directory' (e.g., dist or build), which is the folder Netlify serves as the live site.

  3. What configuration file does Netlify use, and what format is it written in?

    netlify.toml, written in TOML. It defines build settings, redirects, headers, environment context, and function directories.

  4. What is a Netlify 'Deploy Preview'?

    An automatically generated, isolated deployment created for each pull/merge request, giving a unique URL to preview proposed changes before merging to the production branch.

  5. How does Netlify handle client-side routing for single-page applications (SPAs)?

    With a redirect rule sending all paths to index.html with a 200 status, e.g. `/* /index.html 200`, so the SPA router can handle routes instead of returning 404s.

  6. What are Netlify Functions?

    Serverless functions (AWS Lambda under the hood) that let you run back-end code without managing servers. They are deployed alongside the site, typically from a functions directory.

  7. What is 'atomic deploy' in Netlify and why does it matter?

    Each deploy is published atomically: the new version goes live all at once only after the full build succeeds, so users never see a half-updated site, and instant rollback to any previous deploy is possible.

  8. What is Vercel best known for, and which framework is it most associated with?

    Vercel is a cloud platform for deploying front-end apps and serverless/edge functions, best known as the creator and primary host of Next.js, with deep zero-config support for it.

  9. What configuration file does Vercel use, and in what format?

    vercel.json, written in JSON. It configures routes, rewrites, redirects, headers, build settings, and function options.

  10. On Vercel, what is the difference between a 'Preview' deployment and a 'Production' deployment?

    Preview deployments are created for every branch/commit (except production) for testing on unique URLs; production deployments come from the production branch (usually main) and serve the primary domain.

  11. What are Vercel Edge Functions, and how do they differ from standard Serverless Functions?

    Edge Functions run on Vercel's Edge Runtime distributed globally close to users for low latency, with fast cold starts but a limited runtime API. Serverless Functions run in a full Node.js environment in a single region with more capabilities but higher latency/cold starts.

  12. What Git providers can Vercel and Netlify both integrate with for continuous deployment?

    GitHub, GitLab, and Bitbucket. A push to a connected branch automatically triggers a new build and deploy.

  13. What is GitHub Pages?

    A free static-site hosting service from GitHub that publishes HTML, CSS, and JavaScript directly from a GitHub repository, served at a github.io domain or a custom domain.

  14. What are the three publishing sources GitHub Pages can build from?

    (1) The root of a branch, (2) the /docs folder of a branch, or (3) a GitHub Actions workflow that builds and deploys the site.

  15. What is the difference between a GitHub Pages user/organization site and a project site?

    A user/org site is built from a repo named `username.github.io` and served at `username.github.io`; a project site is built from any repo and served at `username.github.io/repository-name`.

  16. Why can GitHub Pages only host static sites, not server-side back-ends?

    GitHub Pages serves pre-built static files over a CDN with no server-side runtime; it cannot execute server-side languages (PHP, Node, Ruby) or maintain databases, so dynamic logic must be client-side or via external APIs.

  17. What special file disables Jekyll processing on GitHub Pages, and why use it?

    An empty file named `.nojekyll` in the publish root. It tells Pages to skip Jekyll, which is needed for sites with folders/files starting with an underscore (e.g., _next) that Jekyll would otherwise ignore.

  18. How do you configure a custom domain on GitHub Pages?

    Add a `CNAME` file (containing the domain) to the repo, then configure DNS at the registrar: a CNAME record to `username.github.io` for subdomains, or A records to GitHub's Pages IPs for an apex domain.

  19. What is GitHub Actions?

    GitHub's built-in CI/CD platform that automates workflows (build, test, deploy) in response to repository events, defined in YAML files stored in the repository.

  20. Where are GitHub Actions workflow files stored, and in what format?

    In the `.github/workflows/` directory of the repository, as YAML files (.yml or .yaml).

Show the other 30 Deployment flashcards
  1. In GitHub Actions, define the hierarchy: workflow, job, step, and action.

    A workflow contains one or more jobs; each job runs on a runner and contains a sequence of steps; a step is either a shell command or an 'action' (a reusable packaged unit of code).

  2. In GitHub Actions, what does the `on` key specify? Give example triggers.

    It specifies the events that trigger the workflow, e.g. `push`, `pull_request`, `schedule` (cron), `workflow_dispatch` (manual), or `release`.

  3. What is a 'runner' in GitHub Actions?

    A server that executes a job. GitHub provides hosted runners (Ubuntu, Windows, macOS), or you can register self-hosted runners on your own infrastructure.

  4. In a GitHub Actions job, what is the difference between `uses` and `run`?

    `uses` invokes a reusable action (e.g., `actions/checkout@v4`), while `run` executes shell commands directly on the runner.

  5. How do jobs run by default in GitHub Actions, and how do you force one job to wait for another?

    Jobs run in parallel by default. Use the `needs` keyword to declare a dependency so a job waits until the named job(s) complete successfully.

  6. How are secrets referenced in a GitHub Actions workflow?

    Via the secrets context, e.g. `${{ secrets.MY_TOKEN }}`. Secrets are stored encrypted in repository/organization/environment settings and masked in logs.

  7. What is the GitHub Actions Marketplace?

    A catalog of reusable, community- and vendor-published actions that can be referenced in workflows to perform common tasks without writing them from scratch.

  8. What is Travis CI?

    A hosted continuous integration service that automatically builds and tests code from GitHub (and Bitbucket) repositories, historically one of the first popular CI services for open source.

  9. What configuration file does Travis CI use, and in what format?

    `.travis.yml`, written in YAML, placed at the root of the repository.

  10. In a `.travis.yml` file, what does the `language` key do?

    It selects the build environment and default toolchain for a project (e.g., `language: node_js`, `python`, `ruby`), determining preinstalled tools and default build/test scripts.

  11. Name the main Travis CI build lifecycle phases in order.

    Optional `before_install`, then `install` (dependencies), optional `before_script`, `script` (the build/test), and `after_success`/`after_failure`, then optional `before_deploy`, `deploy`, and `after_deploy`.

  12. What does the `script` phase control in Travis CI, and how is build success determined?

    `script` defines the commands that build/test the project. The build passes if every command exits with status 0; a non-zero exit code from any script command fails the build.

  13. What is the `matrix` (build matrix) feature in Travis CI?

    A way to run the build across multiple combinations of languages, runtime versions, and environment variables in parallel, e.g. testing against several Node.js versions at once.

  14. What is CircleCI?

    A cloud-based (and self-hostable) CI/CD platform that automates building, testing, and deploying code, known for fast parallelized pipelines and Docker-first execution.

  15. What configuration file does CircleCI use, and where is it located?

    `.circleci/config.yml`, written in YAML, located in the `.circleci/` directory at the repository root.

  16. In CircleCI, define: pipeline, workflow, job, and step.

    A pipeline is the full set of work triggered by a commit; a workflow orchestrates and sequences jobs; a job runs in an executor and contains steps; a step is a command or built-in action.

  17. What is an 'executor' in CircleCI? Name common types.

    The environment in which a job runs. Types include `docker` (container images), `machine` (a full Linux VM), `macos`, and `windows`.

  18. What are CircleCI 'orbs'?

    Reusable, shareable packages of YAML configuration (commands, jobs, executors) that bundle common tasks, similar in spirit to GitHub Actions from the Marketplace.

  19. In CircleCI, how do you control the order and dependencies of jobs?

    Inside a `workflows` block, list jobs and use the `requires` key so a job only starts after its required jobs finish successfully; jobs without dependencies run in parallel.

  20. What is the general purpose of a CI/CD pipeline in the context of front-end deployment?

    To automatically build, test, and deploy code on each change, catching errors early and delivering updates reliably and repeatably without manual steps. CI = Continuous Integration; CD = Continuous Delivery/Deployment.

  21. What is the difference between Continuous Delivery and Continuous Deployment?

    Continuous Delivery automates the pipeline up to a production-ready build that is released manually; Continuous Deployment goes further by automatically releasing every passing change to production with no manual approval.

  22. Classify these tools as primarily 'hosting/deploy platforms' vs 'CI/CD automation services': Netlify, Vercel, GitHub Pages, GitHub Actions, Travis CI, CircleCI.

    Hosting/deploy platforms: Netlify, Vercel, GitHub Pages. CI/CD automation services: GitHub Actions, Travis CI, CircleCI. (Netlify and Vercel also include built-in CI/CD; GitHub Actions can also deploy.)

  23. Compare the config file formats: Netlify, Vercel, GitHub Actions, Travis CI, and CircleCI.

    Netlify uses netlify.toml (TOML); Vercel uses vercel.json (JSON); GitHub Actions uses YAML in .github/workflows/; Travis CI uses .travis.yml (YAML); CircleCI uses .circleci/config.yml (YAML).

  24. Why is GitHub Actions often preferred over Travis CI or CircleCI for projects already hosted on GitHub?

    It is natively integrated into GitHub (no third-party authorization), uses the same UI, has a generous free tier for public repos, and a large marketplace of actions, reducing setup friction.

  25. What is an environment variable in the context of deployment, and why store secrets as them?

    A key-value setting injected into the build/runtime environment (e.g., API_URL, API_KEY). Storing secrets as environment variables (rather than in code) keeps credentials out of version control and lets values differ per environment.

  26. What does 'zero-config deployment' mean, as offered by Vercel and Netlify?

    The platform auto-detects the framework and applies sensible default build commands and output directories, so a project can deploy without manually specifying build settings.

  27. What is a 'rollback' in a deployment platform, and why is it valuable?

    Reverting the live site to a previous known-good deployment. Because platforms like Netlify and Vercel keep immutable past deploys, rollback is near-instant and lets teams quickly recover from a bad release.

  28. What is a build/deploy badge (status badge), and where is it commonly displayed?

    An auto-updating image showing the latest CI build status (passing/failing), provided by services like Travis CI, CircleCI, and GitHub Actions, commonly embedded in a repository's README.

  29. What is a webhook's role in connecting a Git repository to a CI/CD or deploy service?

    When a configured event occurs (e.g., a push), the Git host sends an HTTP POST (webhook) to the service, which triggers the corresponding build/deploy pipeline automatically.

  30. What does it mean that GitHub Pages, Netlify, and Vercel serve content over a CDN, and what is the benefit?

    A Content Delivery Network caches static files on geographically distributed edge servers, so content is delivered from a location near each user, reducing latency and improving load times and availability.

Front-end Web Development Deployment FAQ

What is in the Front-end Web Development Deployment syllabus?

Front-end Web Development Deployment is split into 2 chapters: Hosting Platforms and CI/CD. Together they contain 6 topics.

How many chapters are in Front-end Web Development Deployment?

2 chapters, containing 6 topics. The largest chapter is Hosting Platforms, with 3 topics.

Are there flashcards for Front-end Web Development Deployment?

Yes — a 50-card Deployment deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.