HomeSubjectsUniversityBlogAbout

Deployment & Hosting

Topic in Web Development

210 total MCQsShowing 30 with explanations10 Easy10 Medium10 Hard

About This Topic

Deployment is the process of moving a finished web app onto servers that users can reach, and hosting is the service that keeps it running and accessible. Questions compare shared hosting, VPS, dedicated servers and cloud platforms, plus static hosting options such as GitHub Pages, Netlify and Vercel. Know how CI/CD pipelines automate build, test and release, how Docker containers package an app with its dependencies, and what Kubernetes adds through orchestration, scaling and health checks. Release strategies such as rolling, blue-green and canary deployments are frequently compared, along with DNS configuration, SSL certificates, environment variables and rollbacks.

Below are 30 practice questions from a pool of 210 Deployment & Hosting MCQs, one of 17 topics in Web Development. Each shows the correct answer with an explanation; when you are ready, take a timed quiz to test recall under exam conditions.

Practice Questions

Each question below shows the correct answer with a full explanation. Use these to build conceptual understanding before attempting a timed quiz.

Deployment & HostingEasy

Q1. What is web hosting?

  1. A.A service making a website accessible on the internet✓ Correct
  2. B.A database service for storing application records
  3. C.A CSS framework for building web page layouts
  4. D.A JavaScript library for reactive user interfaces

Explanation

Web hosting provides server space to store and serve website files.

Report an error in this question

Deployment & HostingEasy

Q2. What is a domain name?

  1. A.A server name assigned during initial configuration
  2. B.A database name for identifying data collections
  3. C.A human-readable address used to access a website✓ Correct
  4. D.A numerical IP address for server identification

Explanation

A domain name is a human-friendly address that maps to a server IP via DNS.

Report an error in this question

Deployment & HostingEasy

Q3. What is FTP?

  1. A.A CSS framework for styled web page components
  2. B.File Transfer Protocol for transferring files over networks✓ Correct
  3. C.A JavaScript function for processing user form data
  4. D.A database query for retrieving and filtering records

Explanation

FTP is a standard protocol for transferring files to a web server.

Report an error in this question

Deployment & HostingEasy

Q4. What is GitHub Pages?

  1. A.A database service for cloud-based data storage
  2. B.A social media platform for sharing content
  3. C.A free static site hosting service from GitHub✓ Correct
  4. D.A JavaScript framework for building web apps

Explanation

GitHub Pages hosts static websites directly from a GitHub repository.

Report an error in this question

Deployment & HostingEasy

Q5. What is a production environment?

  1. A.A coding environment for writing application code
  2. B.A testing environment for verifying bug fixes
  3. C.The live environment where users access the application✓ Correct
  4. D.A staging environment for pre-release validation

Explanation

The production environment is where the final application runs for real users.

Report an error in this question

Deployment & HostingEasy

Q6. What does deploy mean in web development?

  1. A.To write application source code in an IDE
  2. B.To debug code and find programming errors
  3. C.To make an application accessible on a server✓ Correct
  4. D.To test code for correctness and reliability

Explanation

Deployment makes a web application live and accessible.

Report an error in this question

Deployment & HostingEasy

Q7. What is Netlify?

  1. A.A JavaScript framework for building web applications
  2. B.A cloud platform for deploying sites and serverless✓ Correct
  3. C.A CSS framework for building responsive web layouts
  4. D.A NoSQL database for storing document collections

Explanation

Netlify provides hosting, continuous deployment, and serverless functions.

Report an error in this question

Deployment & HostingEasy

Q8. What is a staging environment?

  1. A.The production server running the live application
  2. B.A development computer for writing application code
  3. C.A CSS staging area for previewing style changes
  4. D.A pre-production environment mirroring production✓ Correct

Explanation

A staging environment replicates production for final testing.

Report an error in this question

Deployment & HostingEasy

Q9. What is version control?

  1. A.A database version for tracking schema migrations
  2. B.A CSS versioning system for managing style updates
  3. C.Controlling which browser version users run
  4. D.A system tracking and managing code changes over time✓ Correct

Explanation

Version control tracks code changes and enables collaboration.

Report an error in this question

Deployment & HostingEasy

Q10. What is a build process?

  1. A.Transforming source code into optimized deploy files✓ Correct
  2. B.Building HTML pages manually without any tools
  3. C.A CSS compilation step for preprocessing styles
  4. D.Building a physical server room infrastructure

Explanation

The build process compiles, bundles, and optimizes source code for production.

Report an error in this question

Deployment & HostingMedium

Q11. What is CI/CD?

  1. A.A JavaScript library for building interactive web interfaces
  2. B.A CSS framework for rapid web development workflow
  3. C.Continuous Integration and Deployment with automated testing✓ Correct
  4. D.A relational database system for web application data

Explanation

CI/CD automates integrating code, running tests, and deploying to production.

Report an error in this question

Deployment & HostingMedium

Q12. What is Docker?

  1. A.A platform for running apps in isolated containers✓ Correct
  2. B.A database tool for managing data migrations
  3. C.A JavaScript runtime for server-side execution
  4. D.A CSS framework for building grid-based layouts

Explanation

Docker packages applications and dependencies into lightweight containers.

Report an error in this question

Deployment & HostingMedium

Q13. What is a container in deployment?

  1. A.A CSS container element for grouping content
  2. B.A JavaScript object for storing config values
  3. C.A database container for grouping related tables
  4. D.A standalone package with everything to run an app✓ Correct

Explanation

A container bundles an application with its runtime, libraries, and settings.

Report an error in this question

Deployment & HostingMedium

Q14. What is the purpose of a Dockerfile?

  1. A.To document CSS style guidelines for the team
  2. B.To configure a database connection and schema
  3. C.To define instructions for building a Docker image✓ Correct
  4. D.To create documentation for the project codebase

Explanation

A Dockerfile contains instructions for building a Docker image.

Report an error in this question

Deployment & HostingMedium

Q15. What is AWS?

  1. A.Amazon Web Services, a cloud platform for hosting✓ Correct
  2. B.A CSS framework for responsive web design layouts
  3. C.A JavaScript library for building user interfaces
  4. D.A web browser for viewing internet content

Explanation

AWS provides cloud services for compute, storage, and databases.

Report an error in this question

Deployment & HostingMedium

Q16. What is the difference between PaaS and IaaS?

  1. A.PaaS provides a platform; IaaS provides raw infrastructure✓ Correct
  2. B.PaaS provides infrastructure; IaaS provides platforms
  3. C.They are identical in their service model
  4. D.IaaS provides a platform for application deployment

Explanation

PaaS manages infrastructure for you, while IaaS provides raw VMs to manage yourself.

Report an error in this question

Deployment & HostingMedium

Q17. What is an SSL/TLS certificate?

  1. A.A JavaScript license for commercial software distribution
  2. B.A CSS certification for web design professionals
  3. C.A certificate enabling HTTPS by authenticating the server✓ Correct
  4. D.A database certificate for verifying data integrity

Explanation

An SSL/TLS certificate verifies identity and enables encrypted HTTPS connections.

Report an error in this question

Deployment & HostingMedium

Q18. What are environment variables used for in deployment?

  1. A.Defining CSS variables for different color schemes
  2. B.Styling web pages with environment-specific themes
  3. C.Creating HTML elements for different layout contexts
  4. D.Storing config values like API keys per environment✓ Correct

Explanation

Environment variables store deployment-specific settings outside the code.

Report an error in this question

Deployment & HostingMedium

Q19. What is a reverse proxy in deployment?

  1. A.A testing tool for simulating server-side behavior
  2. B.A CSS technique for reversing element rendering order
  3. C.A backwards server that inverts incoming requests
  4. D.A server forwarding requests with load balancing and SSL✓ Correct

Explanation

A reverse proxy handles SSL, load balancing, and request routing.

Report an error in this question

Deployment & HostingMedium

Q20. What is a rollback in deployment?

  1. A.Reverting to a previous version when deploy fails✓ Correct
  2. B.Rolling back CSS changes to a previous version
  3. C.A database operation for undoing transaction changes
  4. D.A JavaScript method for reverting variable values

Explanation

A rollback restores the previous working version when a deployment fails.

Report an error in this question

Deployment & HostingHard

Q21. What is blue-green deployment?

  1. A.A strategy using two environments with instant switching✓ Correct
  2. B.A color-coded database for organizing data categories
  3. C.Deploying blue and green CSS color themes
  4. D.A testing framework for comparing two UI versions

Explanation

Blue-green maintains two environments with instant switchover and rollback.

Report an error in this question

Deployment & HostingHard

Q22. What is canary deployment?

  1. A.A testing technique for incremental feature validation
  2. B.Deploying software for bird tracking applications
  3. C.A CSS animation strategy for progressive effects
  4. D.Gradually rolling out to a small subset of users✓ Correct

Explanation

Canary releases changes to a small percentage of users first.

Report an error in this question

Deployment & HostingHard

Q23. What is Infrastructure as Code (IaC)?

  1. A.Managing infrastructure through configuration files✓ Correct
  2. B.A JavaScript pattern for structuring backend code
  3. C.Writing HTML for server configuration pages
  4. D.A CSS framework for building server admin interfaces

Explanation

IaC uses tools like Terraform to define infrastructure in code files.

Report an error in this question

Deployment & HostingHard

Q24. What is Kubernetes?

  1. A.A NoSQL database for storing application document data
  2. B.A JavaScript library for building reactive user interfaces
  3. C.A CSS framework for responsive web design layouts
  4. D.A container orchestration platform for deployment and scaling✓ Correct

Explanation

Kubernetes automates deploying, scaling, and managing containerized applications.

Report an error in this question

Deployment & HostingHard

Q25. What is the difference between horizontal and vertical scaling in deployment?

  1. A.Vertical adds more server machines to the cluster
  2. B.They are identical in scaling approach
  3. C.Horizontal adds more RAM to the current server
  4. D.Horizontal adds servers; vertical adds resources to existing✓ Correct

Explanation

Horizontal adds machines, while vertical increases capacity of existing machines.

Report an error in this question

Deployment & HostingHard

Q26. What is a CDN edge server?

  1. A.A CDN server near end users for fast delivery✓ Correct
  2. B.A development server for local test and debug
  3. C.A database server for write-heavy workloads
  4. D.A CSS edge property for element border styling

Explanation

Edge servers are CDN nodes worldwide serving cached content from nearest locations.

Report an error in this question

Deployment & HostingHard

Q27. What is serverless deployment?

  1. A.Deploying functions that run on demand in the cloud✓ Correct
  2. B.Deploying without any server infrastructure at all
  3. C.A local deployment for development and testing only
  4. D.A CSS deployment method for updating style sheets

Explanation

Serverless runs code on demand with the provider managing all infrastructure.

Report an error in this question

Deployment & HostingHard

Q28. What is the purpose of a health check in deployment?

  1. A.Automated checks verifying app availability for recovery✓ Correct
  2. B.A code review process for ensuring quality standards
  3. C.Checking the physical health of development staff
  4. D.A CSS check for validating style rule correctness

Explanation

Health checks let load balancers detect unhealthy instances and trigger recovery.

Report an error in this question

Deployment & HostingHard

Q29. What is GitOps?

  1. A.A CSS framework for building responsive web layouts
  2. B.A database tool for managing schema version migrations
  3. C.A Git client application for version control
  4. D.A framework where Git repos are truth for infrastructure✓ Correct

Explanation

GitOps uses Git as the single source of truth for declarative infrastructure.

Report an error in this question

Deployment & HostingHard

Q30. What is the difference between a monorepo and polyrepo?

  1. A.They are identical in repository management
  2. B.Polyrepo is exclusively for backend server application code
  3. C.Monorepo stores all services in one repo; polyrepo uses separate✓ Correct
  4. D.Monorepo is exclusively for frontend application code only

Explanation

Monorepo keeps all code in one repository, polyrepo gives each service its own.

Report an error in this question

Ready to test yourself on Deployment & Hosting?

Take a timed quiz drawn from 210+ questions on this topic. No signup required — your progress saves in your browser.

Start Deployment & Hosting Quiz