Back to Web Development
10 Questions Total

Deployment & Hosting MCQs

Topic-wise practice questions for Web Development. Test your knowledge, check solutions on demand, and pace your preparation.

Zero-leak answer engine • Rate-limited explanations
Practice in Timed Mode
Q1medium
A startup wants to deploy their Node.js app but doesn't want to manage Linux server updates, firewalls, or patches. They just want to upload their code and have it run. Which model should they choose?
Q2medium
A website is experiencing massive traffic spikes during a sale. Which scaling technique is specifically designed to add more servers to a cluster automatically to handle this load?
Q3easy
What is the main goal of Continuous Deployment (CD) in a DevOps pipeline?
Q4medium
Which strategy involves running two identical production environments (Blue and Green), where only one is live at a time, allowing for instant rollback if a deployment fails?
Q5medium
(Code/Console Logic) What is the purpose of this command in a deployment pipeline?

RUN npm install
CMD ["node", "app.js"]
Q6easy
What is Infrastructure as Code (IaC)? bash - ci_pipeline

$ npm install --only=production
Q7easy
What is a Canary Deployment?
Q8easy
What is the difference between IaaS and FaaS (Serverless)?
Q9medium
A deployment is failing because the production database has an environment variable DB_PASS set to "prod_secret", but the code is looking for DATABASE_PASSWORD. What went wrong?
Q10medium
What does a Dockerfile primarily achieve in a production deployment? Dockerfile

FROM node:18
COPY . /app