nerdexam
Amazon

SCS-C02 · Question #55

A security engineer is attempting to push a Linux-based container image to an Amazon Elastic Container Registry (Amazon ECR) repository that is in the us-east-1 Region. The security engineer has…

The correct answer is B. Configure the AWS CLI to use us-east-1. Authentication requests are tied to specific regions, and cannot be used across regions. To resolve the issue, ensure that you have retrieved an authentication token from the same Region your repository exists in…

Submitted by jaden.t· Mar 6, 2026Infrastructure Security

Question

A security engineer is attempting to push a Linux-based container image to an Amazon Elastic Container Registry (Amazon ECR) repository that is in the us-east-1 Region. The security engineer has retrieved an authentication token by using the aws ecr get-login-password AWS CLI command within the last 4 hours. The security engineer has confirmed that the correct permissions are in place to push the container image to the repository. When the security engineer tries to push the container image, the security engineer receives the following error: "no basic auth credentials". What should the security engineer do to resolve this error?

Options

  • AObtain a new authorization token.
  • BConfigure the AWS CLI to use us-east-1.
  • CModify the aws-auth-cm.yaml file to include the IAM role for the security engineer.
  • DActivate AWS Security Token Service (AWS STS) in us-east-1.

How the community answered

(47 responses)
  • A
    13% (6)
  • B
    77% (36)
  • C
    2% (1)
  • D
    9% (4)

Explanation

Authentication requests are tied to specific regions, and cannot be used across regions. To resolve the issue, ensure that you have retrieved an authentication token from the same Region your repository exists in. https://docs.aws.amazon.com/AmazonECR/latest/userguide/common-errors-docker.html#error-

Topics

#ECR authentication#AWS CLI region configuration#container registry#Docker login

Community Discussion

No community discussion yet for this question.

Full SCS-C02 Practice