All fields

“Docker & Containerization” in Information Technology

53 questions across 2 technologies.

Information Technology

53 questions in 2 technologies

#QuestionTechnologyTopicLevel
1What is the difference between an image and a container in Docker terminology, applied to a .NET application? .NET › Docker & Containerization.NETDocker & ContainerizationBeginner
2What are the official .NET Docker base images, and what's the difference between the sdk, aspnet, and runtime image variants? .NET › Docker & Containerization.NETDocker & ContainerizationBeginner
3How does a multi-stage Dockerfile reduce the final image size for a .NET application, and what does each stage typically do? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
4Why is it recommended to run a containerized .NET application as a non-root user, and how do you configure this in a Dockerfile? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
5What is Docker Compose, and how does it simplify running a multi-container .NET application locally (e.g., API + database + Redis)? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
6How does .dockerignore improve Docker build performance and image cleanliness for .NET projects? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
7Why does copying only the .csproj file before the rest of the source code in a Dockerfile improve build caching? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
8How would you optimize a Docker image build for a solution with multiple .NET projects sharing common dependencies, to maximize layer cache reuse? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
9How do you configure a .NET container to respect memory and CPU limits set by the container orchestrator (like Kubernetes resource limits)? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
10How do you pass environment-specific configuration into a running .NET container, and how does this interact with the configuration system? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
11How do you configure a .NET application inside a container to listen on the correct port, and what does ASPNETCORE_URLS control? .NET › Docker & Containerization.NETDocker & ContainerizationIntermediate
12What is Native AOT's benefit for containerized .NET applications specifically, beyond the general startup time improvement? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
13How does .NET's runtime automatically size the ThreadPool and GC based on container CPU limits, and what issue can arise with fractional CPU limits? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
14What is .NET Aspire, and how does it improve the local development and orchestration experience for cloud-native, multi-service .NET applications? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
15What is a container health check (HEALTHCHECK instruction), and how does it differ from a Kubernetes liveness/readiness probe? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
16What are microservices, and what specific tools does the .NET ecosystem provide to build and run them? .NET › Docker & Containerization.NETDocker & ContainerizationAdvanced
17What is a Dockerfile, and what are the essential steps in a basic Dockerfile for a Node.js application? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsBeginner
18What is a multi-stage Docker build, and how does it produce a smaller final image for a Node.js application? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsIntermediate
19How do you use environment variables and Docker's --env-file (or docker-compose's environment section) to configure a containerized Node.js application per environment? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsIntermediate
20Why is it considered a security best practice to run a Node.js Docker container as a non-root user? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsAdvanced
21How does Docker Compose simplify running a Node.js application alongside its dependencies (like a database and Redis) during local development? Node.js › Docker & Containerization for Node.jsNode.jsDocker & Containerization for Node.jsAdvanced
22What is the purpose of a .dockerignore file when preparing a Node.js project for cloud deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsBeginner
23How do you version and tag Docker images for a .NET application as part of a CI/CD pipeline? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
24What is the purpose of a multi-stage Dockerfile for .NET applications, and how does it reduce final image size? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
25Should a brand-new .NET project in 2026 ever target .NET Framework instead of modern .NET? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkBeginner
26What is the typical CI/CD pipeline structure for a .NET application? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentBeginner
27What is the os.cpus() function used for when setting up clustering in a Node.js application? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsBeginner
28What is the difference between framework-dependent deployment (FDD) and self-contained deployment (SCD)? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Intermediate
29How does cross-platform support differ between .NET Framework and modern .NET? .NET › .NET vs .NET Framework.NET.NET vs .NET FrameworkIntermediate
30How does graceful shutdown work for a BackgroundService, and what role does CancellationToken play? .NET › Background Services.NETBackground ServicesIntermediate
31How does a BackgroundService differ from a Worker Service project template, and how do they relate? .NET › Background Services.NETBackground ServicesIntermediate
32What is the difference between dotnet publish's --self-contained and framework-dependent options in the context of container image builds? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentIntermediate
33How do environment variables map to nested configuration keys in ASP.NET Core, given environment variables can't contain colons on some platforms? .NET › Configuration & Options.NETConfiguration & OptionsIntermediate
34What is the purpose of the dotnet-monitor tool, and how does it enable diagnostics in containerized/production environments? .NET › Diagnostics & Performance.NETDiagnostics & PerformanceIntermediate
35How do you register configuration and services differently for a Worker Service running as a Windows Service or systemd daemon? .NET › Generic Host.NETGeneric HostIntermediate
36What is a twelve-factor app, and how does it guide how a Node.js application should be configured for cloud deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
37What is a load balancer, and how does it distribute traffic across multiple Node.js application instances? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
38What is a container registry, and how does it fit into the deployment pipeline for a containerized Node.js application? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
39How do you configure PM2 to automatically restart your Node.js application after a server reboot? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Intermediate
40What is the Node.js LTS (Long-Term Support) release schedule, and why does it matter for choosing which version to run in production? Node.js › Node.js Fundamentals & Runtime ArchitectureNode.jsNode.js Fundamentals & Runtime ArchitectureIntermediate
41How do path.posix and path.win32 let you work with a specific path format regardless of the operating system Node.js is actually running on? Node.js › Path & OS ModulesNode.jsPath & OS ModulesIntermediate
42What is the difference between dotnet build, dotnet publish, and dotnet run? .NET › .NET CLI, SDK & Project Structure (csproj).NET.NET CLI, SDK & Project Structure (csproj)Advanced
43How does deployment slot swapping (e.g., Azure App Service deployment slots) enable near-zero-downtime deployments? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
44How does GitOps (e.g., using Flux or ArgoCD with Kubernetes) change the deployment model compared to traditional push-based CI/CD pipelines? .NET › CI/CD, Publishing & Deployment.NETCI/CD, Publishing & DeploymentAdvanced
45How does the Generic Host manage the application's startup and shutdown lifecycle, including handling OS signals like SIGTERM? .NET › Generic Host.NETGeneric HostAdvanced
46How do you implement graceful shutdown for a Node.js background worker process to avoid losing or corrupting in-progress jobs? Node.js › Background Jobs & QueuesNode.jsBackground Jobs & QueuesAdvanced
47What is a health check endpoint, and how does an orchestrator like Kubernetes use liveness and readiness probes differently? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
48What is a CI/CD pipeline for a Node.js application, and what stages does a typical one include? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
49What is a blue-green deployment, and how does it minimize downtime and risk when deploying a new version of a Node.js application? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
50What is a canary release, and how does it reduce the blast radius of a risky Node.js deployment? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsAdvanced
51How does zero-downtime restart work with Node's cluster module or PM2, and why is it important for production deployments? Node.js › Clustering & Worker ThreadsNode.jsClustering & Worker ThreadsAdvanced
52How does PM2's built-in log management work, and how would you configure log rotation to prevent log files from growing unbounded? Node.js › Deployment & Process Managers (PM2)Node.jsDeployment & Process Managers (PM2)Advanced
53What is the difference between build-time and runtime configuration for a Node.js application, and why does that distinction matter for container-based deployments? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationAdvanced