AWS Certified Developer - Associate: Deploying Docker Containers on Amazon Web Services | Exam Preparation

Deploying Docker Containers on Amazon Web Services

Prev Question Next Question

Question

Your development team is planning on building an application using microservices.

Docker containers will be used to build the application.

Which of the following services can be used to deploy the Docker containers? (Select Two).

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Answer - A and B.

Amazon Elastic Container Service (Amazon ECS) is a highly scalable, fast container management service that makes it easy to run, stop, and manage containers on a cluster.

Your containers are defined in a task definition that you use to run individual tasks or tasks within a service.

So option B is correct.

https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html

Option A is correct because AWS Lambda is a serverless service and supports Docker deployments.

You can now package and deploy Lambda functions as container images of up to 10 GB in size.

In this way, you can also easily build and deploy larger workloads that rely on sizable dependencies.

https://aws.amazon.com/blogs/aws/new-for-aws-lambda-container-image-support/

Option C is incorrect because there is no need for a load balancer in deployment work.

Option D is incorrect because Kinesis is a streaming and analytics service, which does not help in this scenario.

The correct answers are B. Amazon ECS and C. Classic Load balancer.

Amazon Elastic Container Service (ECS) is a fully-managed container orchestration service that makes it easy to run, stop, and manage Docker containers on a cluster. ECS provides a scalable and secure platform to deploy and manage Docker containers, and it integrates with other AWS services such as Amazon EC2, Amazon ECR, and Elastic Load Balancing.

With ECS, you can create a cluster of EC2 instances, and deploy your Docker containers onto this cluster. ECS provides a variety of features to manage the deployment and scaling of your containers, such as auto-scaling, load balancing, and service discovery.

Classic Load Balancer is a service that automatically distributes incoming traffic across multiple EC2 instances. The load balancer can distribute traffic to multiple containers running on the same EC2 instance, or to containers running on different EC2 instances.

To use Classic Load Balancer with Docker containers, you can create a Docker container image that includes a web server (such as Apache or Nginx) and a load balancer (such as HAProxy or Nginx). You can then deploy this image to an EC2 instance, and configure the load balancer to distribute incoming traffic across multiple instances.

In summary, Amazon ECS and Classic Load Balancer can be used to deploy Docker containers in a microservices architecture. ECS provides a fully-managed container orchestration service, while Classic Load Balancer provides load balancing capabilities for incoming traffic.