ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 360 - DOP-C01 discussion

Report
Export

An education company has a Docker-based application running on multiple Amazon EC2 instances in an Amazon ECS cluster. When deploying a new version of the application, the Developer, pushes a new image to a private Docker container registry, and then stops and starts all tasks to ensure that they all have the latest version of the application. The Developer discovers that new tasks are occasionally running with an old image. How can this issue be prevented?

A.
After pushing the new image, restart ECS Agent, and then start the tasks.
Answers
A.
After pushing the new image, restart ECS Agent, and then start the tasks.
B.
Use “latest” for the Docker image tag in the task definition.
Answers
B.
Use “latest” for the Docker image tag in the task definition.
C.
Update the digest on the task definition when pushing the new image.
Answers
C.
Update the digest on the task definition when pushing the new image.
D.
Use Amazon ECR for a Docker container registry.
Answers
D.
Use Amazon ECR for a Docker container registry.
Suggested answer: A

Explanation:

When a new task starts, the Amazon ECS container agent pulls the latest version of the specified image and tag for the container to use. However, subsequent updates to a repository image are not propagated to already running tasks.

Reference:

https://docs.aws.amazon.com/en_us/AmazonECS/latest/developerguide/task_definition_paramet ers.html

asked 16/09/2024
Neha Kumari
50 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first