Intermediate Level
Advanced DevOps interview questions and answers for experienced professionals.
Intermediate Level
This section covers advanced DevOps concepts and questions commonly asked in interviews for experienced professionals.
Explain the difference between Docker and Kubernetes.
Feature | Docker | Kubernetes |
---|---|---|
Purpose | Containerization tool | Orchestration of containers |
Deployment | Single-node containers | Multi-node cluster management |
Scaling | Manual scaling | Auto-scaling |
What is Blue-Green Deployment?
A strategy where two environments (Blue & Green) exist:
- Blue – Active
- Green – Staging (new version)
Switching traffic to Green reduces downtime.
How does Terraform differ from Ansible?
- Terraform: Declarative, cloud provisioning
- Ansible: Configuration management, procedural
What is Canary Deployment?
A small subset of users receives the new update before a full rollout.
What are Helm charts in Kubernetes?
Helm automates Kubernetes app deployment using predefined templates.
What is a rolling update in Kubernetes?
A rolling update gradually replaces old pods with new ones without downtime.
How do you handle secrets securely in a DevOps pipeline?
- HashiCorp Vault
- AWS Secrets Manager
- Kubernetes Secrets
What is an immutable infrastructure?
Infrastructure where components are never modified after deployment, reducing configuration drift.
What are the different types of Kubernetes services?
- ClusterIP – Internal communication
- NodePort – Exposes a service on a port
- LoadBalancer – External traffic balancing
How does Prometheus monitor Kubernetes clusters?
- Uses exporters to collect metrics
- Stores time-series data
- Alerts on anomalies via Alertmanager
What is the difference between monolithic and microservices architectures?
Aspect | Monolithic | Microservices |
---|---|---|
Scalability | Harder | Easier |
Deployment | Single unit | Independent services |
Maintenance | Complex | Easier |
How does Ansible differ from Chef and Puppet?
- Ansible – Agentless, YAML-based, simple
- Chef/Puppet – Require agents, more complex
How do you ensure high availability in a cloud environment?
- Multi-AZ Deployments
- Load Balancing
- Auto Scaling
How do you handle stateful applications in Kubernetes?
Using StatefulSets, Persistent Volumes, and Storage Classes.
What is a sidecar container pattern in Kubernetes?
A sidecar runs alongside the main app container to handle logging, monitoring, or proxying.
How do you implement security in a CI/CD pipeline?
- Static Code Analysis (SAST)
- Container Scanning
- Dependency Scanning
What is the concept of "Shift Left" in DevOps security?
"Shift Left" integrates security earlier in the development cycle, reducing vulnerabilities.
What is a Kubernetes DaemonSet?
A DaemonSet ensures that a pod runs on every node.
What is the difference between proactive and reactive monitoring?
- Proactive – Prevents issues (threshold-based alerts)
- Reactive – Responds to issues (post-failure logs)
What is the role of service mesh in Kubernetes?
A service mesh (e.g., Istio) manages service-to-service communication, security, and monitoring.
📢 Contribute & Stay Updated
💡 Want to contribute?
We welcome contributions! If you have insights, new tools, or improvements, feel free to submit a pull request.
📌 How to Contribute?
- Read the CONTRIBUTING.md guide.
- Fix errors, add missing topics, or suggest improvements.
- Submit a pull request with your updates.
🌍 Community & Support
🔗 GitHub: @NotHarshhaa
📝 Blog: ProDevOpsGuy
💬 Telegram Community: Join Here