AWS Certified Developer Associate DVA-C01 – Question106

AWS CodeBuild builds code for an application, creates the Docker image, pushes the image to Amazon Elastic Container Registry (Amazon ECR), and tags the image with a unique identifier.
If the Developers already have AWS CLI configured on their workstations, how can the Docker images be pulled to the workstations?

A.
Run the following:
docker pull REPOSITORY URI : TAG
B. Run the output of the following:
aws ecr get-login
and then run:
docker pull REPOSITORY URI : TAG
C. Run the following:
aws ecr get-login
and then run:
docker pull REPOSITORY URI : TAG
D. Run the output of the following:
aws ecr get-download-url-for-layer
and then run:
docker pull REPOSITORY URI : TAG

Correct Answer: B