InterviewStack.io LogoInterviewStack.io

EC2 Lambda and Managed Services Questions

Comprehensive understanding of cloud compute options and how to choose between Amazon EC2, AWS Lambda, and managed deployment services such as Elastic Beanstalk. Candidates should be able to compare tradeoffs between control and operational overhead. Amazon EC2 provides full operating system level control, support for long running and stateful processes, custom machine images, fine grain instance sizing, placement groups for network and latency requirements, and suitability for legacy or specialized workloads. AWS Lambda provides a serverless event driven execution model with automatic scaling, per invocation billing, and minimal infrastructure management but introduces cold start latency, concurrency limits, execution duration limits, and resource constraints. Managed deployment services such as Elastic Beanstalk simplify application deployment and lifecycle management by abstracting infrastructure while still allowing configuration of underlying resources. Candidates should also know instance family characteristics for sizing such as burstable T series, general purpose M series, and compute optimized C series; pricing models including on demand, reserved capacity, savings plans, and spot instances; cost optimization techniques such as right sizing and spot use; and scaling and deployment patterns including auto scaling groups, function concurrency management, scheduled scaling, placement groups, and deployment strategies. Key design considerations include stateless versus stateful architecture, startup time impact, observability and monitoring, testing and deployment complexity, security and compliance, and how each option affects reliability, latency and cost.

EasyTechnical
88 practiced
Given a small two-tier web application (React frontend, Node.js backend) with low traffic and minimal operational team capacity, which compute service would you recommend (EC2, Elastic Beanstalk, Lambda) and why? Include deployment and maintenance considerations.
EasyTechnical
80 practiced
Compare the security responsibilities and boundaries when running workloads on EC2 instances versus AWS Lambda. Discuss patching, IAM roles, network placement (VPC), secrets management, and attack surface differences.
EasyTechnical
76 practiced
Explain stateless versus stateful application architectures. How do these models influence your decision to run on Lambda, EC2, or Elastic Beanstalk? Include examples for session handling, file storage, and connection pooling.
MediumTechnical
81 practiced
As an architect, propose a multi-layer cost optimization checklist for compute across EC2, Lambda, and managed services. Include short-term tactics (rightsizing, spot), medium-term policies (savings plans, reserved instances), and long-term architectural changes (refactor to serverless or containers).
MediumTechnical
68 practiced
Design network and IAM for a Lambda function that must access a private RDS instance in a VPC. Explain the implications for cold start, NAT use, security groups, and IAM role scoping; propose mitigations for increased latency and concurrency limits.

Unlock Full Question Bank

Get access to hundreds of EC2 Lambda and Managed Services interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.