Interview Prep/DevOps Fundamentals/Infrastructure & cloud basics

What is the shared responsibility model in the cloud?

BeginnerConceptInfrastructure & cloud basics
Answer

In one line: The shared responsibility model says the cloud provider secures the cloud itself, while you are responsible for securing what you put in the cloud — and the split changes depending on the service type.

AWS's simple wording:

  • Provider: security of the cloud — physical data centres, hardware, networking, the virtualisation layer, and the managed parts of their services.
  • Customer: security in the cloud — your data, identity and access (IAM), network configuration, OS patching on your VMs, application security, encryption choices.

How it changes by service type:

IaaS (EC2 VM) PaaS / managed (RDS, App Service) SaaS
Physical / hardware Provider Provider Provider
OS patching You Provider Provider
Database engine patching You (if self-installed) Provider Provider
Network rules / firewalls You You Mostly provider
IAM / who has access You You You
Your data and its encryption/backup choices You You You

Common customer-side mistakes (real causes of breaches):

  • Public S3 buckets or storage accounts.
  • Security groups open to 0.0.0.0/0 on SSH or database ports.
  • Over-permissive IAM roles and long-lived access keys that leak.
  • Unpatched OS on VMs.
  • No MFA on root/admin accounts.
  • No backups or untested backups.

How DevOps teams handle their side:

  • IaC with security scanning (Checkov) and policy guardrails (AWS SCPs, Azure Policy).
  • Least-privilege IAM and short-lived credentials.
  • Encryption at rest and in transit.
  • Monitoring and auditing (CloudTrail, GuardDuty, Defender for Cloud).

Tip for interviews: say "the provider secures the cloud; we secure our configuration, identities and data", then give a misconfiguration example.

All DevOps Fundamentals questions

More on Infrastructure & cloud basics