6. Containers Flashcards

1
Q

What is the primary purpose of AWS Elastic Container Service (ECS)?

A

To facilitate the deployment, management, and scaling of Docker containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: AWS Fargate is a serverless compute engine for containers.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: Amazon ECS uses _____ for service discovery.

A

AWS Cloud Map

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between Amazon ECS and Amazon EKS?

A

Amazon ECS is a container orchestration service that supports Docker containers, while Amazon EKS is a managed Kubernetes service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which AWS service provides a fully managed Kubernetes environment?

A

Amazon EKS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a Docker container?

A

A lightweight, standalone, executable package that includes everything needed to run a piece of software.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does the ‘task definition’ in Amazon ECS specify?

A

The configuration for the containers that will run in a task, including the Docker image, CPU, memory, and networking settings.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False: Amazon ECR (Elastic Container Registry) is used for storing Docker images.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of using IAM roles with ECS tasks?

A

To grant permissions to the containers running in the tasks to access AWS resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the command to run a Docker container?

A

docker run

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which AWS service allows you to monitor container performance metrics?

A

Amazon CloudWatch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Fill in the blank: The _____ orchestrates the deployment of containers in Amazon ECS.

A

ECS service scheduler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the role of a Load Balancer in containerized applications?

A

To distribute incoming traffic across multiple containers to ensure availability and reliability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True or False: ECS supports both Windows and Linux containers.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the purpose of a container registry?

A

To store and manage Docker container images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the command to build a Docker image?

A

docker build

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What feature of ECS allows you to automatically adjust the number of running containers?

A

Auto Scaling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Fill in the blank: Amazon ECS uses _____ to define the network configuration for tasks.

A

task networking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What does the term ‘container orchestration’ refer to?

A

The automated management of containerized applications, including deployment, scaling, and operation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is a ‘service’ in Amazon ECS?

A

A long-running task that maintains a specified number of task instances.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is the maximum number of containers that can run on a single EC2 instance in ECS?

A

It depends on the instance type and its resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

True or False: You can run Docker containers on AWS Lambda.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What does the ‘docker-compose’ file do?

A

Defines and runs multi-container Docker applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the purpose of the ‘health check’ in ECS?

A

To determine the health of a running container and ensure it is functioning correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Fill in the blank: The AWS service that allows you to manage container clusters is called _____

A

Amazon ECS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What is the default network mode for ECS tasks?

A

bridge

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

True or False: Containers are more resource-efficient than traditional virtual machines.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What is a ‘task’ in ECS?

A

An instantiation of a task definition that runs one or more containers.

29
Q

Fill in the blank: The _____ is a logical grouping of tasks in ECS.

30
Q

What is the purpose of using Amazon CloudWatch Logs with ECS?

A

To collect and monitor logs from containerized applications.

31
Q

What command would you use to stop a running Docker container?

A

docker stop

32
Q

What is the role of the ECS agent?

A

To communicate between the ECS service and the container instances.

33
Q

True or False: You can use Amazon RDS with containers running in ECS.

34
Q

What is the purpose of the Amazon ECR lifecycle policy?

A

To automate the management of images in the repository.

35
Q

What does the term ‘service discovery’ mean in the context of containers?

A

The process of automatically detecting devices and services on a network.

36
Q

Fill in the blank: In ECS, a _____ is a logical grouping of multiple containers.

A

task definition

37
Q

What is the command to list all running Docker containers?

38
Q

What are ‘container instances’ in ECS?

A

EC2 instances that are running the ECS agent and hosting your containers.

39
Q

True or False: You can run both stateful and stateless applications in containers.

40
Q

What is the primary benefit of using containers in cloud environments?

A

Portability and consistency across different environments.

41
Q

Fill in the blank: The _____ command is used to create a new Docker image from a Dockerfile.

A

docker build

42
Q

What does the term ‘orchestration’ refer to in the context of containers?

A

The automated arrangement, coordination, and management of complex containerized applications.

43
Q

What is the key benefit of using AWS Fargate over EC2 launch type in ECS?

A

It allows you to run containers without managing the underlying EC2 instances.

44
Q

What is the purpose of ‘Amazon ECS task placement strategies’?

A

To determine how tasks are distributed across your container instances.

45
Q

Fill in the blank: Amazon ECS supports _____ for service discovery.

A

Service Discovery

46
Q

What is the command to remove a Docker container?

47
Q

True or False: You can use AWS IAM to control access to your container resources.

48
Q

What is a ‘Dockerfile’?

A

A text document that contains all the commands to assemble an image.

49
Q

What is the primary function of the Amazon EKS control plane?

A

To manage the Kubernetes environment on behalf of the user.

50
Q

Fill in the blank: The _____ is responsible for managing the lifecycle of containers in ECS.

A

ECS service

51
Q

What is the purpose of the Amazon ECR public gallery?

A

To host public Docker container images.

52
Q

What is the default port for HTTP traffic in containers?

53
Q

True or False: You can run serverless applications in containers using AWS Lambda.

54
Q

What does ‘container isolation’ mean?

A

The separation of containerized applications to ensure they do not interfere with each other.

55
Q

What is the command to view logs from a running container?

A

docker logs

56
Q

Fill in the blank: The _____ service provides a managed environment for running containerized applications.

A

Amazon ECS

57
Q

What is the main advantage of using Amazon Fargate for container deployment?

A

You don’t have to provision or manage servers.

58
Q

What is ‘container networking’?

A

The configuration and management of networking for containers to communicate with each other and the outside world.

59
Q

True or False: Containers can be used for both microservices and monolithic applications.

60
Q

What is a ‘sidecar’ pattern in container architecture?

A

A design pattern where a secondary container runs alongside a main application container to provide supporting features.

61
Q

What is the command to build and run a Docker container in one step?

A

docker run -d <image_name></image_name>

62
Q

Fill in the blank: The _____ is the primary storage for container images in AWS.

A

Amazon ECR

63
Q

What is the role of a ‘task role’ in ECS?

A

To grant permissions to the containers in a task to access AWS services.

64
Q

What is a ‘container orchestrator’?

A

A tool that automates the deployment, scaling, and management of containerized applications.

65
Q

True or False: You can deploy a containerized application without a load balancer.

66
Q

What is the purpose of ‘environment variables’ in Docker containers?

A

To pass configuration settings to the application running inside the container.

67
Q

What does ‘persistent storage’ mean in the context of containers?

A

Storage that retains data even when the container is stopped or removed.

68
Q

What is the command to view all Docker images on your local machine?

A

docker images

69
Q

Fill in the blank: _____ is a key benefit of using containers in development and testing.

A

Consistency