An Amazon ECS service must deploy a new container image identified by an immutable tag. What should the developer do to update the service?
Show the answer
Correct answerD. Register a task definition revision and update the service to use it.
AWhy not this: An image tag matching a service name has no special meaning; restarted tasks still use the configured image reference.
BWhy not this: Container instances provide compute capacity; the task definition specifies which image runs.
CWhy not this: The task execution role grants permissions such as pulling images; it does not select the container image.
DWhy this is right: A new task definition revision records the new image reference, and the service update deploys it.
A task definition specifies the container image. Registering a revision with the new image and updating the service deploys that revision. Restarting tasks does not change the image reference in the task definition.