Question: what is the difference between lambda and ec2?
Answer: AWS EC2 is a service that represents the traditional cloud infrastructure (IaaS) and allows you to run EC2 instances as VMs, configure environments, and run custom applications. ... AWS Lambda provides you a serverless architecture and allows you to run a piece of code in the cloud after an event trigger is activated.