HTHyperTransformer AI

Study cards › DevOps & Cloud

DevOps & CloudInterview questions and answers

← Topics1 / 100
1 / 100 viewed
Question

What is EC2?

Answer

EC2 (Elastic Compute Cloud) is AWS's virtual server service — you launch instances (VMs) of various sizes and operating systems on demand. It's the foundational compute primitive on AWS, used directly or as the underlying engine for many higher-level services (ECS, EKS, Beanstalk).

Question

What are EC2 instance types?

Answer

Categorized by workload: t (burstable, general-purpose), m (general), c (compute-optimized), r (memory-optimized), g/p (GPU for ML/graphics), i (storage-optimized with NVMe), x (extreme memory). Each has generations (m5, m6, m7); newer is usually cheaper per unit of performance.

Question

What is S3?

Answer

S3 (Simple Storage Service) is AWS's object storage — virtually unlimited capacity, 11 nines of durability, with versioning, lifecycle rules, server-side encryption, and event triggers. Used for static assets, backups, data lakes, ML training data, and as a building block for almost every AWS service.

Question

S3 storage classes?

Answer

Standard (default), Intelligent-Tiering (auto-moves between tiers based on access), Standard-IA (infrequent access, cheaper but with retrieval fees), One Zone-IA (cheaper, single AZ), Glacier Instant/Flexible/Deep Archive (cold, costs less but slow to retrieve). Pick per access pattern.

Question

What is IAM?

Answer

IAM (Identity and Access Management) controls who can do what on which resources in AWS. Core concepts: users, groups, roles (assumable identities for services), policies (JSON documents granting permissions). Get IAM right and most security follows; get it wrong and nothing else matters.

Question

IAM role vs user?

Answer

A user is a long-lived identity with credentials (access key + secret), tied to a person or service. A role is an identity that can be assumed temporarily — used by EC2 instances, Lambda functions, or cross-account access. Roles are safer (no long-lived credentials); prefer them whenever possible.

Question

What is least-privilege IAM?

Answer

Grant only the permissions needed for the task — no more. Use specific actions (s3:GetObject) and specific resource ARNs, not wildcards. Iterate from a denial-by-default baseline. Limits the blast radius if credentials leak or a service is compromised.

Question

What is AWS Lambda?

Answer

Lambda is serverless compute — you upload code, set a trigger (HTTP, S3 event, queue), and AWS runs it on demand without you managing servers. Pay per millisecond of execution. Great for event-driven and bursty workloads; awkward for long-running or stateful work.

Question

What is a Lambda cold start?

Answer

The latency when a new Lambda container is provisioned from scratch (first request, after idle, or on scale-up). Typically 100ms-2s depending on runtime and code size. Mitigations: provisioned concurrency, smaller bundles, Lambda SnapStart (Java), or staying off Lambda for latency-critical paths.

Question

What is ECS?

Answer

Elastic Container Service — AWS's managed orchestration for Docker containers. Two launch types: EC2 (you manage the underlying hosts) and Fargate (serverless containers, AWS manages everything). ECS is simpler than EKS for AWS-only workloads — no Kubernetes complexity to learn.

Question

What is EKS?

Answer

Elastic Kubernetes Service — AWS's managed Kubernetes control plane. You bring worker nodes (EC2 or Fargate) and AWS runs the masters. Choose EKS when you want Kubernetes' ecosystem and portability; ECS when you're happy with AWS-native and want less complexity.

Question

What is a VPC?

Answer

Virtual Private Cloud — an isolated network in AWS where you control IP ranges, subnets, route tables, gateways, security groups, and network ACLs. Every modern AWS account starts with a default VPC; production setups use custom VPCs with careful network design across availability zones.

Question

Public vs private subnet?

Answer

Public subnet: has a route to an Internet Gateway, so resources can be reached from and reach the internet. Private subnet: no direct internet path — egress goes through a NAT gateway. Put your load balancer in public subnets and your app/DB in private subnets.

Question

Security group vs NACL?

Answer

Security group: stateful firewall attached to an instance — return traffic automatically allowed. NACL: stateless, attached to a subnet, allow AND deny rules, applied to every packet. Use security groups primarily; NACLs as an extra coarse layer when needed.

Question

What is CloudFront?

Answer

AWS's CDN — caches content at edge locations worldwide, supports custom domains, HTTPS, signed URLs, Lambda@Edge for at-the-edge code, and tight integration with S3 and ALB. Essential for any global web app to cut latency and origin load.

Question

What is RDS?

Answer

Relational Database Service — AWS's managed offering for MySQL, Postgres, MariaDB, Oracle, SQL Server. Handles backups, patching, replication, monitoring. You focus on schemas and queries; AWS handles the boring operational work. Most modern AWS apps use RDS instead of running DBs on EC2 themselves.

Question

RDS vs Aurora?

Answer

Aurora is AWS's MySQL/Postgres-compatible engine with redesigned storage — much faster failover, replicated 6 ways across 3 AZs by default, up to 15 read replicas with minimal lag, serverless option. More expensive per hour than RDS but typically better TCO at scale.

Question

What is CloudWatch?

Answer

AWS's monitoring service — metrics, logs, alarms, dashboards. Integrated with nearly every AWS service out of the box. CloudWatch Logs ingest application output; CloudWatch Metrics track resource utilization; CloudWatch Alarms trigger SNS notifications or autoscaling actions.

Question

What is Docker?

Answer

Docker is a platform for packaging an application and its dependencies into an image — a lightweight, portable bundle that runs identically on a laptop, CI, or production. Containers share the host kernel (unlike VMs), making them fast to start and resource-efficient.

Question

Docker image vs container?

Answer

An image is an immutable template — filesystem layers plus metadata, stored in a registry. A container is a running instance of an image, with its own filesystem layer for changes. You build images once and run many containers from them.

Question

Dockerfile basics?

Answer

A Dockerfile is a text file with instructions that build an image step by step: FROM (base), RUN (execute), COPY (add files), ENV (set vars), EXPOSE (declare port), CMD/ENTRYPOINT (how to start). Each instruction creates a layer; reorder them to maximize caching.

Question

Best practices for Dockerfiles?

Answer

Use small base images (alpine, distroless), order instructions to leverage layer caching (deps before code), use multi-stage builds (build in big image, ship slim runtime), pin versions, run as non-root, .dockerignore noise. Aim for the smallest, fastest, safest final image.

Question

Docker networking modes?

Answer

Built-in drivers: bridge (default — containers on the same bridge can talk by name), host (container shares host's network — fast, less isolation), overlay (multi-host clustering), none (no network, full isolation). Most app-level use cases stick with bridge or a Compose network.

Question

What are Docker volumes?

Answer

Persistent storage independent of container lifecycle — when the container dies, the data stays. Bind mounts map a host directory into the container; volumes are managed by Docker (preferred for portability). Essential for any stateful container (DB data, uploads, configs).

Question

What is Kubernetes?

Answer

Kubernetes (k8s) is an open-source container orchestrator that schedules, scales, heals, and networks containers across a cluster of machines. It's the de facto standard for running containers in production at scale — powerful, complex, and worth learning if you operate distributed systems.

Question

What is a Pod in Kubernetes?

Answer

The smallest deployable unit — one or more containers that share network and storage and are always scheduled together. Usually a pod has one main container, but sidecars (logging, proxy) are common. Pods are ephemeral; you manage them via Deployments or StatefulSets.

Question

What is a Deployment in k8s?

Answer

A controller that manages a set of identical Pods (replicas), supports rolling updates with controlled rollout/rollback, and recreates pods that crash. The standard way to run stateless services on k8s.

Question

What is a Service in k8s?

Answer

A stable virtual IP and DNS name that load-balances traffic to a set of pods selected by labels. Pods come and go (different IPs each time); Services give you a consistent endpoint clients can target. Three types: ClusterIP (internal), NodePort, LoadBalancer.

Question

ClusterIP vs NodePort vs LoadBalancer?

Answer

ClusterIP: internal-only (default). NodePort: exposes on a port on every node's IP — useful for dev/test. LoadBalancer: provisions a cloud load balancer (AWS ALB, GCP LB). For HTTP routing, an Ingress (with an ingress controller) sits above these.

Question

What is Ingress?

Answer

Ingress is a k8s API for HTTP/HTTPS routing — host/path-based rules, TLS termination, virtual hosts. You need an ingress controller (nginx-ingress, traefik, AWS ALB controller, Istio gateway) to actually serve traffic — Ingress itself is just configuration.

Question

What is autoscaling in Kubernetes?

Answer

Three levels: HPA (Horizontal Pod Autoscaler) scales pod replicas based on metrics, VPA (Vertical Pod Autoscaler) adjusts pod resource requests, Cluster Autoscaler adds/removes nodes. HPA on CPU or custom metrics is the most common; Karpenter is the popular AWS-native cluster autoscaler today.

Question

What is a ConfigMap?

Answer

A k8s object storing non-secret config as key-value pairs, mounted into pods as env vars or files. Separates config from images so you can deploy the same image to different environments with different config.

Question

What is a Kubernetes Secret?

Answer

A k8s object for sensitive data (passwords, tokens, certs). Stored base64-encoded by default — not actually encrypted. For real security, encrypt etcd, use external secret managers (AWS Secrets Manager, Vault), or tools like SealedSecrets and External Secrets Operator.

Question

What is a Kubernetes namespace?

Answer

A logical partition of a cluster used to group resources (per team, per environment). Provides isolation for names and resource quotas — but it's not strong tenant isolation. Multi-tenant clusters need more (NetworkPolicies, PodSecurity, RBAC, and often cluster separation).

Question

What is a StatefulSet?

Answer

A k8s controller for stateful apps — like Deployment, but with stable pod identities (pod-0, pod-1), ordered deploy/scale, and persistent storage per replica. Used for databases, brokers, anything that depends on identity surviving restarts.

Question

What is GitHub Actions?

Answer

GitHub's built-in CI/CD platform — define workflows in YAML files in .github/workflows that run on events (push, PR, schedule). Uses GitHub-hosted runners or your self-hosted ones. Huge marketplace of pre-built actions. Default choice for any GitHub-hosted project.

Question

What is Jenkins?

Answer

An open-source automation server for building, testing, and deploying. Mature plugin ecosystem, pipeline-as-code via Jenkinsfile (Groovy DSL). Self-hosted, very flexible, but operationally heavy compared to managed CI options.

Question

GitHub Actions vs Jenkins?

Answer

Actions: fully managed, tight GitHub integration, easy onboarding, huge marketplace. Jenkins: self-hosted (more control and complexity), mature plugins, more flexible for complex on-prem and cross-platform setups. Most greenfield projects pick Actions today.

Question

What is a CI pipeline?

Answer

A series of automated steps that run on every push or PR: install deps, lint, type-check, run tests, build artifacts, scan for vulnerabilities. Catches breakage before code merges. The first pillar of any modern engineering workflow.

Question

What is a CD pipeline?

Answer

Continuous Delivery (or Deployment) — automatically packages and deploys built artifacts to environments after passing CI. Deploys may require manual approval (delivery) or proceed straight to production (deployment). Pairs with feature flags and observability for safety.

Question

Continuous Delivery vs Continuous Deployment?

Answer

Both auto-deploy through staging on every merge. Delivery stops short of production — a human clicks deploy. Deployment goes all the way to prod automatically if every check passes. Most teams operate somewhere in between (auto to staging, gated to prod).

Question

Deployment strategies overview?

Answer

Recreate: stop old, start new — downtime. Rolling: incremental replacement — zero downtime, mixed versions briefly. Blue-green: two identical environments, switch traffic atomically — instant rollback. Canary: shift small % first, expand if healthy. Choose based on risk tolerance and infra cost.

Question

What is infrastructure as code?

Answer

Defining infrastructure (servers, networks, databases) in versioned code rather than clicking through cloud consoles. Reviewable, repeatable, rollbackable. Tools: Terraform, AWS CloudFormation, Pulumi (real programming languages), CDK. IaC is the default for any serious cloud deployment today.

Question

What is Terraform?

Answer

An open-source IaC tool from HashiCorp with declarative HCL syntax. terraform plan shows what will change; terraform apply makes it happen. Works across hundreds of cloud providers via plugins. Industry standard for multi-cloud or non-AWS-only setups.

Question

What is GitOps?

Answer

A pattern where the Git repository is the single source of truth for infrastructure and application state. A controller (Argo CD, Flux) continuously reconciles the cluster to match Git. Benefits: every change is reviewed, audited, and revertable like code.

Question

What is a runner in CI?

Answer

The execution environment that runs a CI job — a VM or container provisioned for the run, with caches, secrets, and the workspace. GitHub-hosted runners are convenient; self-hosted runners give you bigger boxes, persistent caches, and access to private networks.

Question

What is artifact caching in CI?

Answer

Caching dependencies (node_modules, pip cache, Docker layers, build outputs) across CI runs so they don't reinstall from scratch each time. Cuts build times from minutes to seconds for incremental changes. Every modern CI tool has a cache API.

Question

What is a matrix build?

Answer

Running the same job across multiple configurations in parallel — different OSes, Node versions, test shards. GitHub Actions matrix syntax expands into many parallel runs from one definition. Great for testing across versions or distributing slow tests.

Question

What is a secret in CI?

Answer

A sensitive value (API key, deploy token, cert) stored encrypted in the CI provider's settings and injected into jobs as env vars. CI providers redact them from logs. Never commit secrets to repos; never put them in plaintext config.

Question

What is observability in cloud apps?

Answer

The combination of logs, metrics, and traces that lets you understand what your system is doing in production. Without observability, debugging at scale is guesswork. OpenTelemetry is the emerging cross-vendor standard for instrumentation.

Question

What is CloudWatch Logs Insights?

Answer

AWS's query language for searching and aggregating CloudWatch logs — SQL-like syntax to filter, parse, and chart. Useful for ad-hoc investigations across many log streams. For heavy log analytics, OpenSearch or Datadog usually beat raw Insights.

Question

What is AWS Auto Scaling?

Answer

Adjusts capacity (EC2, ECS tasks, Lambda concurrency, DynamoDB throughput) based on demand via target tracking, step scaling, or scheduled scaling. Configure cool-down periods to avoid thrashing. Critical for handling traffic spikes without overprovisioning.

Question

Multi-AZ vs multi-region?

Answer

Multi-AZ: distribute across availability zones within ONE region for high availability — cheap, fast failover, low latency. Multi-region: across geographic regions for DR and global latency — much more complex, costlier, more data-consistency gotchas. Most apps start multi-AZ and add multi-region only when needed.

Question

Reserved vs Spot vs On-Demand EC2?

Answer

On-Demand: pay as you go — flexible, expensive. Reserved Instances or Savings Plans: 1-3 year commitment for 30-70% off. Spot: massively discounted (up to 90%) but AWS can reclaim with 2-minute notice — great for batch, fault-tolerant, or stateless workloads.

Question

What is AWS WAF?

Answer

Web Application Firewall — managed rules and custom rules (SQLi, XSS, rate limits, bots) applied at CloudFront, ALB, or API Gateway. Sits in front of your app and blocks known attack patterns before they reach your code.

Question

What is Route 53?

Answer

AWS's DNS service — domain registration plus routing policies (latency-based, geolocation, weighted, failover) and health checks. Lets you do clever traffic routing (route 90% to v1, 10% to v2) at the DNS level.

Question

What is ECR?

Answer

Elastic Container Registry — AWS-managed Docker image registry with IAM-based auth, vulnerability scanning, immutable tags, and lifecycle policies. Where your CI pushes images and where ECS/EKS pulls from.

Question

What is CloudFormation?

Answer

AWS-native IaC — JSON or YAML templates describing resources, deployed as 'stacks' with change sets, rollback, drift detection. Older than Terraform but tightly integrated with AWS. Many teams use it for AWS-only setups; switch to Terraform when going multi-cloud.

Question

Pull-based vs push-based deploy?

Answer

Push: your CI pushes manifests/images to the cluster (e.g. kubectl apply from CI). Pull: the cluster reconciles from a Git repo (Argo CD, Flux watching the repo). Pull-based GitOps is generally safer — CI doesn't need cluster credentials.

Question

What is Helm?

Answer

Helm is Kubernetes' package manager — Charts are bundles of YAML templates plus default values. helm install renders the templates and applies them. Useful for installing common open-source things (Prometheus, ingress controllers) and for parameterizing your own deployments across environments.

Question

What is a sidecar container?

Answer

A helper container that runs in the same Pod as your main app — logging agents, proxies (Envoy), config reloaders, cache warmers. Shares the Pod's network and storage. Sidecars keep cross-cutting concerns out of your main app code.

Question

Liveness vs readiness probes in k8s?

Answer

Liveness: is the process alive? Kubernetes restarts the container if it fails. Readiness: can the pod serve traffic right now? Removes it from Service endpoints without killing it. Configure both — without them, k8s assumes 'running == healthy' which causes weird outages.

Question

What is a Kubernetes node taint?

Answer

A property on a node that repels pods unless they explicitly tolerate it. Used to reserve nodes for special workloads (GPU nodes, spot instances, dedicated customer pools). Pods without the matching toleration won't be scheduled there.

Question

Resource requests vs limits in k8s?

Answer

Request: the minimum a container is guaranteed — scheduler uses it for placement. Limit: the maximum it can consume — exceeding the CPU limit throttles, exceeding the memory limit kills (OOMKilled). Set both based on actual usage data, not guesses.

Question

HPA vs VPA?

Answer

HPA (Horizontal Pod Autoscaler) adds more pods when load increases — the standard scaling approach. VPA (Vertical Pod Autoscaler) increases CPU/memory on existing pods, requiring pod restarts. Most teams use HPA; VPA helps right-size resource requests over time.

Question

What is Karpenter?

Answer

AWS's open-source Kubernetes cluster autoscaler — replaces the older cluster-autoscaler with smarter and faster node provisioning. Mixes instance types, schedules workloads more densely, and ramps up much faster. Default choice on AWS EKS today.

Question

Blue-green vs canary deploy?

Answer

Blue-green: cut all traffic from old → new at once (instant rollback). Canary: shift small % to new, observe, then gradually expand (smaller blast radius if buggy). Canary is generally safer for high-traffic apps; blue-green is simpler when you can afford the double resources briefly.

Question

What is feature-flag-driven release?

Answer

Deploy code disabled behind a flag, then toggle it on for users separately from deploy. Decouples 'release' (visible to users) from 'deploy' (code in production). Enables A/B tests, canary by user group, and instant kill switches if something breaks.

Question

What is chaos engineering?

Answer

Intentionally injecting failures (kill pods, add latency, simulate region outage) into a live system to verify resilience. Tools: Chaos Monkey, Gremlin, Litmus, AWS Fault Injection Simulator. Netflix pioneered the practice — if you can't survive controlled chaos, you won't survive real outages.

Question

What is the 12-factor app methodology?

Answer

12 principles for building cloud-native apps: codebase, declared dependencies, config in env, backing services as attachable resources, strict build/release/run separation, stateless processes, port binding, concurrency via processes, disposability, dev/prod parity, logs as event streams, admin tasks as one-off processes.

Question

What is immutable infrastructure?

Answer

Servers are NEVER modified after deploy — to change something, you replace the instance with a fresh one. Eliminates configuration drift, simplifies rollback (just redeploy the old image), and forces all changes to go through CI. Standard for container and AMI-based deployments.

Question

What is a stateless service?

Answer

A service that keeps NO instance-local state — any request can be served by any instance. Required for horizontal scaling, rolling deploys, and easy failover. Session state lives in Redis/cookies, files in S3, data in the DB. Statelessness is one of the most important deploy-friendliness traits.

Question

Where does session state live in a stateless service?

Answer

In an external store: Redis (fast, in-memory), a database, or signed cookies (no server storage needed). The point: any instance can read it, so instances are interchangeable. Sticky sessions (LB pinning) are an anti-pattern that compromises scaling.

Question

What is Parameter Store?

Answer

AWS Systems Manager Parameter Store — a hierarchical config and secret store with IAM access controls and optional KMS encryption. Cheaper than Secrets Manager and fine for most configuration. Use Secrets Manager when you need automatic rotation.

Question

What is AWS KMS?

Answer

Key Management Service — managed encryption keys with rotation, audit logging, and IAM-controlled access. Used to encrypt data at rest in S3, RDS, EBS, Secrets Manager, etc. CMKs (Customer Master Keys) protect data keys, which actually encrypt your data — a standard envelope-encryption pattern.

Question

S3 bucket policy vs IAM policy?

Answer

Bucket policy: resource-based, attached to the bucket itself — controls who can access this bucket from where. IAM policy: identity-based, attached to a user/role — controls what this principal can do. Both can grant access; combine them for fine-grained, defensible control.

Question

What is S3 versioning?

Answer

S3 keeps every version of an object — uploads create new versions; deletes add a delete marker without actually removing data. Protects against accidental overwrites and deletes. Combine with MFA Delete for stronger protection against malicious or hasty deletions.

Question

What is API Gateway?

Answer

AWS service for hosting REST, HTTP, or WebSocket APIs — handles auth, throttling, request/response transforms, caching, and routing to Lambda, HTTP backends, or other AWS services. Lambda + API Gateway is the canonical serverless API stack.

Question

What is SQS?

Answer

Simple Queue Service — managed message queue. Two flavors: Standard (high throughput, at-least-once, best-effort ordering) and FIFO (exactly-once, strict ordering, lower throughput). The simplest 'I need a queue' on AWS.

Question

What is SNS?

Answer

Simple Notification Service — managed pub/sub for fan-out. Publishers send to a topic; SNS delivers to subscribers (SQS queues, Lambda, HTTP endpoints, email, SMS, mobile push). Used heavily in event-driven architectures.

Question

SQS vs SNS vs EventBridge?

Answer

SQS: 1:1 work queue. SNS: 1:many fan-out, simple topics. EventBridge: a schema-aware event bus with rich routing rules and integrations with SaaS providers. Pick SQS for work, SNS for simple fan-out, EventBridge for complex event routing.

Question

What is CloudTrail?

Answer

Logs every AWS API call across the account — who did what, when, from where. Required for audit, security forensics, and compliance (SOC2, PCI). Enable it in every account from day one. Logs go to S3 and can stream to CloudWatch for alerting on suspicious patterns.

Question

How do you keep AWS costs down?

Answer

Tag everything for attribution, set Budgets + Anomaly Detection alerts, use Savings Plans/Reserved Instances for steady load, Spot for batch, S3 lifecycle to archive cold data, delete unused EBS volumes and snapshots, right-size instances based on actual utilization, and review monthly cost-explorer reports.

Question

EBS vs EFS vs S3?

Answer

EBS: block storage attached to ONE EC2 instance — like a disk. EFS: shared NFS file system mountable by many instances. S3: object storage by HTTP — virtually infinite. Pick block for databases, file for shared file systems, object for everything else (assets, backups, data lakes).

Question

What is a NAT gateway?

Answer

An AWS-managed component letting resources in private subnets reach the internet for OUTBOUND traffic only — package updates, API calls, etc. Inbound traffic is still blocked. Cheaper alternative for low-traffic: NAT instance, but you maintain it.

Question

VPC peering vs Transit Gateway?

Answer

VPC peering: 1:1 connection between two VPCs — simple but doesn't scale (mesh of N² connections). Transit Gateway: hub-and-spoke router connecting many VPCs and on-prem networks. Use peering for small setups; Transit Gateway as soon as you have a handful of VPCs.

Question

What is a Bastion host?

Answer

A jump server in a public subnet used to SSH into private instances. Modern replacement: AWS SSM Session Manager, which lets you connect to instances via the AWS API without exposing SSH ports at all — much more secure and audit-friendly.

Question

What is rollback in CI/CD?

Answer

Restoring the previous stable version after a bad deploy. Blue-green and canary make this nearly instant (switch traffic back). Image-tag-based deploys can be reverted by deploying the old tag. Without a rollback plan, every deploy is a hostage situation.

Question

What is an artifact registry?

Answer

Stores built artifacts (Docker images, npm/maven packages, Helm charts) for downstream pipelines and runtime. Examples: ECR (Docker on AWS), JFrog Artifactory, GitHub Packages, Sonatype Nexus. Lets you version, share, and pull built things across environments.

Question

Dependency caching in Docker builds?

Answer

Order Dockerfile so that copying package.json/requirements.txt and installing deps comes BEFORE copying source. The deps layer caches as long as deps don't change, even when your source changes — drastically cutting CI build time.

Question

Why multi-stage Docker builds?

Answer

Build in a fat image with compilers and tooling; copy ONLY the built artifacts into a slim final image (alpine, distroless). Result: tiny production images with minimal attack surface, no leftover build tools, and faster pulls.

Question

What is distroless?

Answer

Google's minimal container base images — only your app and its runtime dependencies, no shell, no package manager, no extras. Smaller, more secure runtime. Trickier to debug (you can't exec into a shell) but worth it for production microservices.

Question

What is observability-driven development?

Answer

Designing services to be observable from the start — structured logs, metrics, traces as first-class deliverables, not afterthoughts. Dashboards and alerts ship with the feature. Means production incidents are seconds of investigation, not days.

Question

What are SLO, SLA, SLI?

Answer

SLI: an observable metric (p95 latency, error rate). SLO: an internal target for that SLI (p95 < 300ms 99% of the time). SLA: a contractual promise to customers, usually weaker than your SLO. Set internal SLOs tighter than your SLA so you have headroom.

Question

What is an error budget?

Answer

1 minus your SLO — the acceptable amount of unreliability over a period. If your SLO is 99.9%, your error budget is 0.1%. Use it to govern release pace: budget burning fast → focus on reliability; budget healthy → ship more risky features.

Question

What is a service health dashboard?

Answer

A curated view of a service's key SLIs/SLOs and dependency health — what on-call and stakeholders look at first. Should answer 'is this service healthy right now?' in under 10 seconds. Hide noise; show what matters.

Question

What is 'shift-left' in DevOps?

Answer

Move quality, security, and performance checks earlier in the development cycle — into the IDE, pre-commit hooks, and CI — instead of late-stage QA or post-prod fire-fighting. Catches issues when they're cheap to fix and gives developers faster feedback loops.

Question

What is an ECS task definition?

Answer

A JSON blueprint describing the containers in a task: image, CPU/memory, env vars, ports, networking mode, IAM role to assume, log driver. ECS uses the task definition to run containers on Fargate or EC2. Versioned — every change creates a new revision.

Question

What is a Kubernetes operator?

Answer

A controller that encodes domain knowledge for managing a stateful application (Postgres, Kafka, MongoDB) — automates install, upgrades, scaling, backup, failover. The pattern: define a custom resource (CRD), write a controller that watches it and reconciles. Pre-built operators exist for most popular databases.

Question

What is AWS Step Functions?

Answer

A serverless orchestration service — define state machines in JSON (sequential steps, parallel branches, conditional logic, retries, timeouts) that coordinate Lambdas, ECS tasks, and AWS services. Great for workflows that would otherwise become spaghetti orchestration code.

Practise DevOps & Cloud in the app
Track your progress, flag tricky cards and write your own answers.

Open in the app

More topics: React & Frontend JavaScript & TypeScript Backend Engineering Databases System Design AI & Agentic AI Security Testing DSA Coding Problems (Python)