AWS Cloud Practitioner · Security and Compliance · medium

A team migrates a workload from self-managed Amazon EC2 instances to AWS Lambda functions. How does the AWS Shared Responsibility Model shift after this migration?

Published · Last updated · checked before publication — how we verify questions

Options

  • AThe customer becomes responsible for patching the physical hypervisor hosts
  • BAWS assumes responsibility for operating system and runtime patchingCorrect answer
  • CAWS assumes responsibility for writing least-privilege IAM execution policies
  • DThe customer becomes responsible for maintaining Availability Zone fiber links

Answer: B. AWS assumes responsibility for operating system and runtime patching

Under the AWS Shared Responsibility Model, AWS is responsible for security of the cloud and the customer is responsible for security in the cloud. How the line is drawn depends on the service type. With self-managed Amazon EC2, the customer patches and configures the guest operating system, installs and updates the runtime, and manages the application. AWS Lambda is a managed, serverless compute service. AWS runs the servers, the operating system, and the language runtime environments, and it patches them. The customer is left with the function code, the IAM execution role and permissions, the configuration, and the data. The general rule is that the more managed the service, the more responsibility moves to AWS. The most common trap is thinking that serverless removes all customer responsibility. IAM permissions, code security, and data protection always remain with the customer, and a misconfigured execution role is still the customer's problem.

Why the other options are wrong

  • A. The customer becomes responsible for patching the physical hypervisor hosts — Physical hosts and hypervisors are always AWS's responsibility, on EC2 as well as Lambda. A migration cannot move that duty to the customer, and the shift actually moves duties toward AWS.
  • C. AWS assumes responsibility for writing least-privilege IAM execution policies — Writing least-privilege IAM execution policies is a customer duty in every service, including Lambda. AWS provides the IAM service, but the customer decides what permissions each function gets.
  • D. The customer becomes responsible for maintaining Availability Zone fiber links — The physical network, including the fiber links between Availability Zones, is part of AWS global infrastructure and is always managed by AWS. The customer never takes this on, and moving to Lambda does not change that.

All Security and Compliance questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.