A company plans to deploy a batch processing application using docker containers.
Which of the following would ideally help to host this application? (SELECT TWO)
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer - B and C.
AWS Documentation mentions the following:
Docker containers are particularly suited for batch job workloads.
Batch jobs are often short-lived and embarrassingly parallel.
You can package your batch processing application into a Docker image so that you can deploy it anywhere, such as in an Amazon ECS task.
Reference:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/common_use_cases.htmlSure, I can explain the options for hosting a batch processing application using Docker containers.
A. Copy the batch processing application to an ECS Container: Amazon Elastic Container Service (ECS) is a fully-managed container orchestration service provided by AWS. In this option, you can copy the batch processing application to an ECS container, which can run on either EC2 or Fargate instances. However, simply copying the application to the container won't be sufficient. You will also need to create a Docker image of the application and deploy it as an ECS task, which brings us to the next option.
B. Create a Docker image of your batch processing application: To run a batch processing application using Docker containers, you will first need to create a Docker image of your application. A Docker image is a lightweight, standalone, executable package that contains everything needed to run the application, including the application code, runtime, system tools, libraries, and settings. You can use a Dockerfile to define the application's environment and dependencies, and then build the image using the Docker build command.
C. Deploy the image as an Amazon ECS task: Once you have created the Docker image of your batch processing application, you can deploy it as an ECS task. An ECS task is a unit of work that runs on an ECS cluster, which is a group of EC2 instances or Fargate tasks that host the containers. You can define the task's configuration, including the number of containers, CPU and memory requirements, and networking settings, using an ECS task definition. You can then deploy the task using the ECS service, which manages the lifecycle of the task, including scaling, updating, and monitoring.
D. Deploy the container behind the EL: Elastic Load Balancer (ELB) is a service that automatically distributes incoming traffic across multiple EC2 instances or containers. However, it is not directly related to hosting a batch processing application using Docker containers. ELB is primarily used for load balancing web applications or microservices that receive incoming requests from clients. Batch processing applications, on the other hand, typically run as batch jobs that process large volumes of data offline, without any incoming requests from clients.
In summary, the ideal options for hosting a batch processing application using Docker containers would be to create a Docker image of the application and deploy it as an ECS task. Therefore, options B and C are the correct answers.