AWS Certified Solutions Architect - Associate Exam | Task Definition Parameters

Task Definition Parameters in AWS Certified Solutions Architect - Associate Exam

Prev Question Next Question

Question

Which of the following are the parameters specified in task definition? (choose 3 options)

Answers

Explanations

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.

Amazon ECS Task Definitions

A task definition is required to run Docker containers in Amazon ECS. Some of the parameters you can specify in a task
definition include:

° The Docker images to use with the containers in your task

¢ How much CPU and memory to use with each container

¢ The launch type to use, which determines the infrastructure on which your tasks are hosted
¢ Whether containers are linked together in a task

¢ The Docker networking mode to use for the containers in your task

© (Optional) The ports from the container to map to the host container instance

© Whether the task should continue to run if the container finishes or fails

¢ The command the container should run when it is started

© (Optional) The environment variables that should be passed to the container when it starts
¢ Any data volumes that should be used with the containers in the task

© (Optional) The IAM role that your tasks should use for permissions

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!