Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 4.66 KB

File metadata and controls

59 lines (40 loc) · 4.66 KB

1. What is Amazon ECS?

Amazon Elastic Container Service (Amazon ECS) is a fully managed container orchestration service that allows you to run, manage, and scale Docker containers on a cluster of Amazon EC2 instances or AWS Fargate.

2. How does Amazon ECS work?

Amazon ECS simplifies the deployment and management of containers by providing APIs to launch and stop containerized applications. It handles the underlying infrastructure and scaling for you.

3. What is a container in the context of Amazon ECS?

A container is a lightweight, standalone executable package that includes everything needed to run a piece of software, including the code, runtime, libraries, and system tools.

4. What is a task definition in Amazon ECS?

A task definition is a blueprint for running a Docker container as part of a task in Amazon ECS. It defines container configurations, resources, networking, and more.

5. How are tasks and services related in Amazon ECS?

A task is a running container or a group of related containers defined by a task definition. A service in ECS manages the desired number of tasks to maintain availability and desired state.

6. What is the difference between Amazon ECS and AWS Fargate?

Amazon ECS gives you control over EC2 instances to run containers, while AWS Fargate is a serverless compute engine for containers. With Fargate, you don't need to manage the underlying infrastructure.

7. How can you schedule tasks in Amazon ECS?

Tasks in Amazon ECS can be scheduled using services, which maintain a desired count of tasks in a cluster. You can also use Amazon ECS Events to trigger task execution based on events.

8. What is the purpose of the Amazon ECS cluster?

An Amazon ECS cluster is a logical grouping of container instances and tasks. It provides a way to manage and organize your containers within a scalable infrastructure.

9. How can you scale containers in Amazon ECS?

You can scale containers by adjusting the desired task count of an ECS service. Amazon ECS automatically adjusts the number of tasks based on your scaling policies.

10. What is Amazon ECS Agent?

The Amazon ECS Agent is a component that runs on each EC2 instance in your ECS cluster. It's responsible for communicating with the ECS control plane and managing tasks on the instance.

11. What is the difference between a task and a container instance in Amazon ECS?

A task is a running instance of a containerized application, while a container instance is an Amazon EC2 instance that's part of an ECS cluster and runs the ECS Agent.

12. How can you manage container secrets in Amazon ECS?

You can manage container secrets using AWS Secrets Manager or AWS Systems Manager Parameter Store. Secrets can be injected into containers at runtime as environment variables.

13. What is the purpose of Amazon ECS Capacity Providers?

ECS Capacity Providers allow you to manage capacity and scaling for your tasks. They define how tasks are placed and whether to use On-Demand Instances or Spot Instances.

14. Can you use Amazon ECS to orchestrate non-Docker workloads?

Yes, Amazon ECS supports running tasks with the Fargate launch type that allow you to specify images from various sources, including Amazon ECR, Docker Hub, and more.

15. How does Amazon ECS integrate with other AWS services?

Amazon ECS integrates with other AWS services like Amazon CloudWatch for monitoring, AWS Identity and Access Management (IAM) for access control, and Amazon VPC for networking.

16. What is the difference between the Fargate and EC2 launch types in Amazon ECS?

The Fargate launch type lets you run containers without managing the underlying infrastructure, while the EC2 launch type gives you control over the EC2 instances where containers are deployed.

17. How can you manage container networking in Amazon ECS?

Amazon ECS uses Amazon VPC networking for containers. You can configure networking using task definitions, security groups, and subnets to control communication between containers.

18. What is the purpose of the Amazon ECS Task Placement Strategy?

Task Placement Strategy allows you to define rules for how tasks are distributed across container instances. It can help optimize resource usage and ensure high availability.

19. What is the role of the ECS Service Scheduler?

The ECS Service Scheduler is responsible for placing and managing tasks across the cluster. It ensures tasks are launched, monitored, and replaced as needed.

20. How can you ensure high availability in Amazon ECS?

To achieve high availability, you can use Amazon ECS services with multiple tasks running across multiple Availability Zones (AZs), combined with Auto Scaling to maintain the desired task count.