Interview Q&A / AWS & Cloud
AWS & Cloud interview questions
EC2, S3, Lambda, IAM and VPC basics, with when to pick which service.
Prefer rapid revision? Practise AWS & Cloud short interview answers →
- What is the difference between EC2 and Lambda, and when would you pick each?
EC2 gives you a virtual server that you run and manage, billed while it is running. Lambda runs your function only when an event arrives, scales automatically and bills per request and execution time. Pick Lambda for short, spiky, event-driven work; pick EC2 for long-running, steady or highly customised workloads.
BeginnerIn-depth4 min read - What are the main limits of AWS Lambda, such as timeout and memory?
A Lambda function can run for at most 15 minutes per invocation and be given 128 MB to 10,240 MB of memory. CPU power scales with the memory you choose. It also has limits on package size and account concurrency.
BeginnerQuick answer1 min read - What is a Lambda cold start and how can you reduce it?
A cold start is the extra delay when Lambda has to create a new execution environment and load your code before running it. Reduce it with smaller packages, lighter runtimes, less work outside the handler, or provisioned concurrency.
BeginnerQuick answer1 min read