
Access the GitHub repository DevOps Cloud Interview Guide, with folders organized by Udemy sections like git, linux, networking, and ci cd, containing interview questions, explanations, scripts, and diagrams.
Differentiate git clone and git fork: clone creates a local copy, while fork makes a separate copy in your account for collaboration via pull requests to the official repo.
Explain using git fork to create a private copy for contributing to a repository with write access disabled, and using git clone for local copies when not contributing.
Learn how git fetch updates your local repository with the latest commits, branches, and tags from a remote; git pull combines fetch with merge or rebase.
Explain when to use git pull versus git fetch, noting that git pull keeps the repo up to date for CI/CD checks, while git fetch with cherry-pick suits experimental work.
Demonstrate git rebase versus git merge with a sample repository, showing how commit order differs when integrating main and a feature branch, and how rebase changes the history.
Explain git merge versus git rebase in interviews: merge preserves full history with a merge commit, while rebase creates a cleaner linear history.
Explain three git challenges faced in a prior role: implementing a modified trunk-based branching strategy, tightening access control, and enforcing git hygiene with dot gitignore, pre-commit hooks, and webhooks.
Explain the ten git commands used daily, including git clone, git status, git add, git commit, git push, git pull, git checkout, git branch, git merge, and git log.
Respond to a Kubernetes secret accidentally committed to git by revoking it, cleaning history with BFG, rotating credentials, and preventing future pushes with pre-commit hooks and education.
Investigate high disk usage on a Linux instance and locate /var/logs. Prevent 100% utilization by rotating, archiving, or deleting old logs, and cleaning apt caches.
Identify the highest cpu-consuming process on a production Linux server with top or htop, then kill non-critical processes or deprioritize important ones using nice or renice to reduce CPU utilization.
Troubleshoot ssh to an instance by verifying the IP address, PEM file and its permissions, firewall status, security groups on port 22, and the sshd service with systemctl.
Scenario:
Your application generates large logs in /var/log/myapp/ and there's no log rotation setup.
Task:
Write a shell script that compresses logs older than 7 days and deletes logs older than 30 days. Also, run it daily via cron.
Bulk User Creation from CSV
Scenario:
You’ve received a CSV file with a list of usernames and passwords to create users on a Linux system.
Task:
Write a shell script to read the CSV and:
Create each user with the specified password.
Force password change on first login.
INPUT:
services=("nginx" "sshd" "docker")
OUTPUT:
-----------------------------------
Service Health Check Report
-----------------------------------
nginx is ✅ RUNNING
-----------------------------------
sshd is ✅ RUNNING
-----------------------------------
docker is ❌ STOPPED
Attempting to restart docker...
docker has been ✅ restarted successfully.
-----------------------------------
Use the Linux find command to locate files over 100 MB for disk cleanup, then preview and delete them (with sudo and -exec) to free space on a VM.
Command:
last -F | grep "$(date '+%b %e')" | awk '{print $1}' | sort | uniq
Explore local variables scoped to a shell script, environment variables created with export for global access, and special variables like $?, $0, and $1 for status and arguments.
Compare kill and kill -9 in Linux, showing how kill sends sigterm for graceful termination while kill -9 sends sigkill for an immediate, no-cleanup shutdown of processes like Nginx.
Explain the OSI model by tracing a client request from browser to server across layers seven to one, including http/https, tls/ssl, cookies, and packet routing.
Differentiate forward proxy from reverse proxy: forward proxy sits in front of clients to filter requests; reverse proxy sits in front of servers to route traffic and protect backends.
Learn how dns resolution causes curl to fail with domain names but succeed with ip addresses, and fix it by setting nameserver 8.8.8.8 in resolv.conf.
Discover five day-to-day maven build targets: clean, compile, test, package, and install. Learn how these steps compile code, run tests, package artifacts, and publish to local or remote repositories.
Configure Artifactory for a Maven build by updating settings.xml to set the artifact repository location and profile, and optionally use distribution management in pom.xml for app-specific repositories.
Diagnose a Maven build failure by logging into Nexus, verifying the dependency version in pom.xml, and ensuring the correct artifact (v1.6) is available and settings.xml is properly configured.
Learn to optimize ci pipelines by running static code analysis only on changed files and reserving full analysis for nightly builds, improving build times while maintaining code quality.
Explain how the Terraform state file acts as the brain, storing resource IDs, metadata, IPs, and last known state to guide plans and updates.
Terraform state locking in remote backends prevents conflicts when two engineers run apply concurrently; the first wins the lock and creates the VPC, the second may fail.
Learn how to store the Terraform state file on premises using remote backends like HashiCorp console or Terraform Enterprise, without cloud accounts, with state locking and drift detection.
Compare Terraform enterprise and community versions, highlighting remote backends with S3, versioning, locking, and RBAC, and a Git-backed workflow for security and single source of truth.
master the terraform workflow to create aws resources, focusing on main.tf, provider configuration, resource blocks, variables, and best practices for scalable, interview-ready code.
Understand the difference between resources and data sources in Terraform, where resources create, modify, or delete cloud provider assets, while data sources read existing cloud information.
Learn the true role of the EXPOSE keyword in a Dockerfile as metadata for port documentation, not for publishing, and how Docker Compose uses it for inter-service communication.
Learn how Docker image caching can hide code changes after a rebuild and how to force a fresh build with docker build --no-cache to reflect updates.
Learn when to forcefully remove a container and how, covering stuck or unresponsive containers, continually restarting containers, and CI/CD pipeline scenarios using docker rm -f and docker ps.
Control Plane (Master) Components
kube-apiserver
The central API endpoint (https://<master>:6443)
Authenticates, validates, and processes all REST requests (e.g., kubectl apply)
Stores state changes in etcd
etcd
A strongly consistent key–value store
Holds the entire cluster state and configuration data
kube-scheduler
Watches for newly created Pods with no assigned node
Selects an appropriate node based on resource requirements, affinity/anti-affinity, taints/tolerations, and other policies
kube-controller-manager
Runs control loops (“controllers”) that reconcile desired vs. actual cluster state, e.g.:
Node Controller: detects unhealthy nodes
Replication Controller: ensures the right number of Pod replicas
Endpoint Controller: populates Service→Pod mappings
Job Controller, DaemonSet Controller, etc.
Explain how kubectl apply creates a pod by routing the request through the api server, scheduler, kubelet, container runtime, and etcd, with the controller manager and replica set handling failures.
Learn why hardcoding pod IPs fails in Kubernetes as pods are ephemeral. Discover how services use labels and selectors to provide stable communication and avoid outages.
Compare NodePort and LoadBalancer Kubernetes service types, focusing on access scope and external exposure. Learn when to use each based on VPC access and Cloud Controller Manager availability.
Explain deployment strategies used, highlighting blue-green and canary approaches: create a new environment with a load balancer for v2, and gradually roll out traffic while ensuring easy rollback.
Learn how taints on a Kubernetes node marked no schedule can be overridden by pod tolerations, enabling exception scheduling during maintenance or upgrades.
Explain how node affinity, the modern alternative to node label selector, uses required during scheduling and preferred during scheduling to place pods on labeled nodes.
Explain how Kubernetes assigns quality of service by pod resource requests and limits, classifying pods as best effort, Burstable, or guaranteed, guiding eviction during memory pressure.
Explain how Kubernetes resource requests set minimum guaranteed resources for scheduling, while limits cap usage at runtime; understand eviction scenarios and how to explain this in interviews.
Explore real-time Kubernetes challenges such as resource quotas, memory leaks, and upgrades, and learn practical strategies to limit blast radius and maintain cluster stability.
Explore Kubernetes secret types such as opaque key-value secrets, Docker config, basic auth, SSH keys, and TLS certificates, and why these types simplify secret storage.
Classify metrics into infrastructure, Kubernetes components, and application metrics, using Prometheus node exporter and kube state metrics to monitor HTTP requests, request duration, DB health, and payment failures.
Diagnose app slowness by enabling debug mode, checking Grafana/Prometheus metrics, and using distributed tracing (Jaeger) to map the request path and identify latency sources.
Learn how to reduce alert noise in observability by alert tuning and slow based alerting using service level objective based thresholds, illustrated with a 2 a.m. CPU spike scenario.
Explain what AWS NAT is, how a NAT gateway enables private subnets to access the internet, and why it translates source addresses for secure outbound traffic.
Learn immediate recovery after deleting AWS resources using S3 versioning, RDS point-in-time restore, and EC2 snapshots. Implement least privilege with infrastructure as code and version control.
Understand what trust policy means in AWS and why it is used. Learn how an IAM role can be temporarily assumed via STS by services like Lambda to access DynamoDB.
Learn cross-account access: enable a lambda in account a to access dynamodb in account b via IAM roles, STS, trust policies, and get item.
Compare AWS Secrets Manager and Systems Manager Parameter Store for sensitive data in CI/CD pipelines; use Parameter Store for basic security or Secrets Manager for rotation and cross-account sharing.
Understand the difference between IAM user and IAM role, highlighting long-term identities for users and short-term identities that services or applications can assume to access AWS resources like EC2.
Ultimate DevOps and Cloud Interview Guide that covers topic by topic scenario based Interview questions with detailed notes through a GitHub Repository. All the Interview questions are collected from candidates who are actively attending Interviews for DevOps and Cloud roles.
This course covers following topics:
- Git
- Linux
- Networking
- CI/CD
- Terraform
- Docker
- Kubernetes
- Observability
- AWS
- Azure
- Project related and SDLC
GitHub repository associated with the notes has all the questions in the exact order of the course. Each question has a MD file in the repository which covers the detailed explanation of the answer for your quick reference. Questions added to this course in the future will also be updated in the GitHub repository in the same way.
The main goal of the course is to make every DevOps and Cloud aspirants job ready. If you are planning to attend Interviews or failing in clearing the Interviews currently then this course is absolutely for you. All the questions are organized to for the better experience of the user. You will find questions on various topics and sub-topics on DevOps.
Key Takeaways from the course:
- Interview Readiness
- Upskill with latest scenario based Interview Questions
- Approach to answer any scenario based Interview Question confidently.
Happy learning.