✅ Deployment Interview Questions & Answers ☁️🚀
1️⃣ What is Deployment?
Deployment is the process of making a web application live and accessible to users by hosting it on a server or platform.
2️⃣ What is Netlify?
Netlify is a cloud platform to host static websites and frontend frameworks (like React, Vue). It supports continuous deployment from Git.
*Features: Free SSL, custom domain, form handling, serverless functions, ideal for JAMstack apps.
3️⃣ What is Heroku?
Heroku is a platform-as-a-service (PaaS) that lets you deploy full-stack apps easily using Git.
*Features:* Supports Node.js, Python, Ruby, etc., free tier (apps sleep when inactive), one-click deployment & add-ons like PostgreSQL.
4️⃣ What is Vercel?
Vercel is a frontend deployment platform optimized for React and especially Next.js apps.
*Features:* Fast global CDN, serverless functions, instant preview links for each commit.
5️⃣ How does Continuous Deployment work?
You connect your GitHub repo to Netlify, Heroku, or Vercel. On every push, the app builds and deploys automatically.
6️⃣ How do you deploy on Netlify?
Push your code to GitHub → Connect repo to Netlify → Configure build settings → Click "Deploy".
7️⃣ How do you deploy on Heroku?
Install Heroku CLI → Run: `git push heroku main` → App will be deployed on a Heroku domain.
8️⃣ How do you deploy on Vercel?
Login to Vercel → Import Git repo → Set up framework and build command → Deploy.
9️⃣ Which platform is best for static sites?
Netlify or Vercel – both offer free tiers, CDN, and fast performance.
🔟 How to handle environment variables in these platforms?
- Netlify: Go to Site Settings → Environment
- Heroku: Use `heroku config:set VAR_NAME=value`
- Vercel: Project → Settings → Environment Variables
