Which of the following are the parameters specified in task definition? (choose 3 options)
Click on the arrows to vote for the correct answer
A. B. C. D. E.Answer: A, C, E.
Following are the parameters used in task definition.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html.
Option B and D are paramters specified in creating an ECS cluster.
Sure, I'd be happy to help!
In AWS, a task definition is a blueprint that defines how to run a Docker container in a task. Each task definition consists of various parameters that define how the container should be launched and run.
To answer the question, the parameters specified in a task definition are as follows:
A. The Docker images to use with the containers in your task: This parameter specifies the Docker image that will be used to launch the container. It could be an image from a public or private Docker repository, or a custom image that you have created.
C. How much CPU and memory to use with each container: This parameter specifies the CPU and memory resources that each container in the task should be allocated. You can set limits on the maximum amount of CPU and memory that a container can use.
E. The command the container should run when it is started: This parameter specifies the command that should be executed when the container is started. This can be a simple command or a more complex script that runs multiple commands.
B, D are incorrect: B. EC2 instance types to be used as container instances: This parameter is not specified in a task definition. Instead, you would specify the instance types when you create a cluster of EC2 instances to use as container instances.
D. AWS VPC and subnets to launch containers in: This parameter is not specified in a task definition either. Instead, you would specify the VPC and subnets when you create a task or a service.
I hope this helps!