6. Containers Flashcards
What is the primary purpose of AWS Elastic Container Service (ECS)?
To facilitate the deployment, management, and scaling of Docker containers.
True or False: AWS Fargate is a serverless compute engine for containers.
True
Fill in the blank: Amazon ECS uses _____ for service discovery.
AWS Cloud Map
What is the difference between Amazon ECS and Amazon EKS?
Amazon ECS is a container orchestration service that supports Docker containers, while Amazon EKS is a managed Kubernetes service.
Which AWS service provides a fully managed Kubernetes environment?
Amazon EKS
What is a Docker container?
A lightweight, standalone, executable package that includes everything needed to run a piece of software.
What does the ‘task definition’ in Amazon ECS specify?
The configuration for the containers that will run in a task, including the Docker image, CPU, memory, and networking settings.
True or False: Amazon ECR (Elastic Container Registry) is used for storing Docker images.
True
What is the purpose of using IAM roles with ECS tasks?
To grant permissions to the containers running in the tasks to access AWS resources.
What is the command to run a Docker container?
docker run
Which AWS service allows you to monitor container performance metrics?
Amazon CloudWatch
Fill in the blank: The _____ orchestrates the deployment of containers in Amazon ECS.
ECS service scheduler
What is the role of a Load Balancer in containerized applications?
To distribute incoming traffic across multiple containers to ensure availability and reliability.
True or False: ECS supports both Windows and Linux containers.
True
What is the purpose of a container registry?
To store and manage Docker container images.
What is the command to build a Docker image?
docker build
What feature of ECS allows you to automatically adjust the number of running containers?
Auto Scaling
Fill in the blank: Amazon ECS uses _____ to define the network configuration for tasks.
task networking
What does the term ‘container orchestration’ refer to?
The automated management of containerized applications, including deployment, scaling, and operation.
What is a ‘service’ in Amazon ECS?
A long-running task that maintains a specified number of task instances.
What is the maximum number of containers that can run on a single EC2 instance in ECS?
It depends on the instance type and its resources.
True or False: You can run Docker containers on AWS Lambda.
True
What does the ‘docker-compose’ file do?
Defines and runs multi-container Docker applications.
What is the purpose of the ‘health check’ in ECS?
To determine the health of a running container and ensure it is functioning correctly.
Fill in the blank: The AWS service that allows you to manage container clusters is called _____
Amazon ECS
What is the default network mode for ECS tasks?
bridge
True or False: Containers are more resource-efficient than traditional virtual machines.
True
What is a ‘task’ in ECS?
An instantiation of a task definition that runs one or more containers.
Fill in the blank: The _____ is a logical grouping of tasks in ECS.
service
What is the purpose of using Amazon CloudWatch Logs with ECS?
To collect and monitor logs from containerized applications.
What command would you use to stop a running Docker container?
docker stop
What is the role of the ECS agent?
To communicate between the ECS service and the container instances.
True or False: You can use Amazon RDS with containers running in ECS.
True
What is the purpose of the Amazon ECR lifecycle policy?
To automate the management of images in the repository.
What does the term ‘service discovery’ mean in the context of containers?
The process of automatically detecting devices and services on a network.
Fill in the blank: In ECS, a _____ is a logical grouping of multiple containers.
task definition
What is the command to list all running Docker containers?
docker ps
What are ‘container instances’ in ECS?
EC2 instances that are running the ECS agent and hosting your containers.
True or False: You can run both stateful and stateless applications in containers.
True
What is the primary benefit of using containers in cloud environments?
Portability and consistency across different environments.
Fill in the blank: The _____ command is used to create a new Docker image from a Dockerfile.
docker build
What does the term ‘orchestration’ refer to in the context of containers?
The automated arrangement, coordination, and management of complex containerized applications.
What is the key benefit of using AWS Fargate over EC2 launch type in ECS?
It allows you to run containers without managing the underlying EC2 instances.
What is the purpose of ‘Amazon ECS task placement strategies’?
To determine how tasks are distributed across your container instances.
Fill in the blank: Amazon ECS supports _____ for service discovery.
Service Discovery
What is the command to remove a Docker container?
docker rm
True or False: You can use AWS IAM to control access to your container resources.
True
What is a ‘Dockerfile’?
A text document that contains all the commands to assemble an image.
What is the primary function of the Amazon EKS control plane?
To manage the Kubernetes environment on behalf of the user.
Fill in the blank: The _____ is responsible for managing the lifecycle of containers in ECS.
ECS service
What is the purpose of the Amazon ECR public gallery?
To host public Docker container images.
What is the default port for HTTP traffic in containers?
80
True or False: You can run serverless applications in containers using AWS Lambda.
True
What does ‘container isolation’ mean?
The separation of containerized applications to ensure they do not interfere with each other.
What is the command to view logs from a running container?
docker logs
Fill in the blank: The _____ service provides a managed environment for running containerized applications.
Amazon ECS
What is the main advantage of using Amazon Fargate for container deployment?
You don’t have to provision or manage servers.
What is ‘container networking’?
The configuration and management of networking for containers to communicate with each other and the outside world.
True or False: Containers can be used for both microservices and monolithic applications.
True
What is a ‘sidecar’ pattern in container architecture?
A design pattern where a secondary container runs alongside a main application container to provide supporting features.
What is the command to build and run a Docker container in one step?
docker run -d <image_name></image_name>
Fill in the blank: The _____ is the primary storage for container images in AWS.
Amazon ECR
What is the role of a ‘task role’ in ECS?
To grant permissions to the containers in a task to access AWS services.
What is a ‘container orchestrator’?
A tool that automates the deployment, scaling, and management of containerized applications.
True or False: You can deploy a containerized application without a load balancer.
True
What is the purpose of ‘environment variables’ in Docker containers?
To pass configuration settings to the application running inside the container.
What does ‘persistent storage’ mean in the context of containers?
Storage that retains data even when the container is stopped or removed.
What is the command to view all Docker images on your local machine?
docker images
Fill in the blank: _____ is a key benefit of using containers in development and testing.
Consistency