Skip to main content

Interview questions · Book 05

DevOps & Cloud interview questions

242 questions from 61 pages, each with a short answer. Say your answer first, then open the question to check it.

p. 1 · 4 questions

Ansible

Full page
  1. 1

    What is Ansible?

    Ansible is an open-source automation tool that configures servers and deploys applications by running YAML playbooks over SSH, with no agent on the machines.

  2. 2

    Does Ansible need an agent on each server?

    No. Ansible is agentless: it connects from a control machine over SSH (or WinRM on Windows) and runs its modules there, needing only Python on the managed hosts.

  3. 3

    What is an Ansible playbook?

    A YAML file that lists plays, each mapping a group of hosts to a series of tasks, such as installing packages, copying files and restarting services.

  4. 4

    What does idempotent mean in Ansible?

    That running the same task twice has the same result as running it once. A module that installs a package does nothing if the package is already installed.

p. 2 · 4 questions

Autoscaling

Full page
  1. 1

    What is autoscaling?

    Autoscaling is the automatic adding or removing of computing resources, such as servers or containers, based on demand to keep performance steady and costs low.

  2. 2

    What is the difference between horizontal and vertical scaling?

    Horizontal scaling adds more machines or containers that share the work, while vertical scaling gives a single machine more CPU, memory, or storage. Autoscaling usually means horizontal scaling because it can happen without downtime.

  3. 3

    Does autoscaling save money?

    It can, because you pay for extra capacity only while you need it instead of sizing for the peak all day. Poorly tuned limits or scaling on the wrong metric can still waste money or leave the app short on capacity.

  4. 4

    What is scale to zero?

    Scale to zero means removing every instance when there is no traffic, so an idle app costs almost nothing. It is common on serverless platforms, with the trade-off of a cold start delay when the next request arrives.

p. 3 · 4 questions

AWS

Full page
  1. 1

    What is AWS?

    AWS (Amazon Web Services) is Amazon's cloud platform: more than 200 pay-as-you-go services for servers, storage, databases and much more.

  2. 2

    What is the difference between EC2 and S3?

    EC2 rents virtual servers that run your software. S3 stores files, called objects, in buckets and serves them over HTTP. Many applications use both.

  3. 3

    Is AWS free?

    AWS has a free tier with limited usage of many services, mainly for learning and small projects. Beyond that, you pay for what you use, such as server hours, storage and data transfer.

  4. 4

    What is an AWS region?

    A geographic area, such as Frankfurt or Ireland, where AWS runs several separate data centers called availability zones. You choose a region for each resource, usually close to your users.

p. 4 · 4 questions

Azure

Full page
  1. 1

    What is Microsoft Azure?

    Microsoft Azure is Microsoft's cloud computing platform, offering hundreds of on-demand services such as virtual machines, databases and AI models worldwide.

  2. 2

    What is the difference between Azure and AWS?

    Both offer a similar range of cloud services. AWS is the largest and oldest provider with the broadest catalog; Azure integrates most closely with Microsoft tools, identity and enterprise agreements. The choice often follows a company's existing technology and contracts.

  3. 3

    What is an Azure resource group?

    A container that holds related resources, such as a web app, its database and storage, so they can be managed, secured, billed and deleted together.

  4. 4

    Does Azure have a free tier?

    Yes. New accounts get credit for the first month, and many services include an always-free monthly amount, such as a small number of function executions or a basic database tier.

p. 5 · 4 questions

Blue-Green Deployment

Full page
  1. 1

    What is a blue-green deployment?

    Blue-green deployment is a release strategy that uses two identical production environments and moves all traffic from the old version to the new one at once.

  2. 2

    What is the difference between blue-green and canary deployment?

    Blue-green deployment moves all traffic from the old version to the new one in a single switch. A canary deployment sends a small share of traffic to the new version first and increases it gradually while watching error rates and performance.

  3. 3

    How do you handle the database in a blue-green deployment?

    Both environments usually share one database, so schema changes must be backward compatible with the old version. A common approach is expand and contract: first add new columns or tables without removing anything, deploy the new code, and remove old structures only in a later release.

  4. 4

    Does blue-green deployment cost more?

    It can, because two full production environments run at the same time during a release. With cloud infrastructure and containers, the idle environment can be created just before a release and removed afterward to limit the extra cost.

p. 6 · 4 questions

Canary Deployment

Full page
  1. 1

    What is a canary deployment?

    A canary deployment releases a new software version to a small share of users first, checks its health, and then gradually rolls it out to everyone.

  2. 2

    What is the difference between canary and blue-green deployment?

    Blue-green deployment switches all traffic from the old environment to the new one in a single step, while a canary deployment moves traffic gradually, starting with a small percentage. Canaries limit how many users see a bug, while blue-green makes the switch and the rollback simple and instant.

  3. 3

    What percentage of traffic should a canary get?

    Teams often start with 1% to 10% of traffic, then increase in steps such as 25%, 50%, and 100%. The right starting point depends on how much traffic you have, since the canary needs enough requests to produce meaningful metrics.

  4. 4

    Why is it called a canary deployment?

    It is named after the canaries coal miners carried to detect dangerous gas early. The small group of users who get the new version first acts as an early warning for problems.

p. 7 · 4 questions

CDN

Full page
  1. 1

    What is a CDN?

    A CDN is a network of servers spread around the world that stores copies of website content and delivers it to each user from the nearest location.

  2. 2

    Do I need a CDN for my website?

    A CDN helps most when your visitors are spread across different regions or your site serves many images, scripts, or videos. Many hosting platforms include a CDN automatically, so you may already be using one.

  3. 3

    What is the difference between a CDN and web hosting?

    Web hosting stores your site and runs its application code on an origin server. A CDN sits in front of that server and delivers cached copies of the content from locations close to your users.

  4. 4

    What is a cache hit in a CDN?

    A cache hit means the CDN edge server already had a stored copy of the requested file and served it directly. A cache miss means it had to fetch the file from the origin server first.

p. 8 · 4 questions

Chaos Engineering

Full page
  1. 1

    What is chaos engineering?

    Chaos engineering is the practice of deliberately injecting failures into a system, such as crashing servers, to confirm that it keeps working as expected.

  2. 2

    Is chaos engineering done in production?

    Mature teams do run experiments in production, because only production has real traffic and real configurations. They start in test environments, limit the blast radius to a small share of users or servers, and stop automatically if key metrics degrade.

  3. 3

    What is the difference between chaos engineering and testing?

    A test checks a known condition and either passes or fails. Chaos engineering is an experiment that explores how a complex system behaves when something breaks, and it often reveals problems nobody thought to write a test for.

  4. 4

    What is a game day?

    A game day is a planned session where a team deliberately causes failures, such as shutting down a whole availability zone, and practices detecting and recovering from them. It tests both the system and the team's incident response.

More

Settings