Which AWS service will meet these requirements?
AWS Lambda
AWS Fargate
Amazon EC2
AWS Elastic Beanstalk
Explanations:
AWS Lambda is designed for short-lived, event-driven functions that typically run for a maximum of 15 minutes. It does not support running containers for 4-hour durations.
AWS Fargate is a serverless compute engine for containers that allows you to run containers without managing the underlying infrastructure. It supports running tasks for long durations, such as 4 hours.
Amazon EC2 provides virtual server instances that require users to provision and manage the underlying servers. This does not meet the requirement of avoiding server management.
AWS Elastic Beanstalk is a Platform as a Service (PaaS) that simplifies application deployment but still requires underlying resources to be provisioned and managed, which does not align with the requirement to avoid server management.