exam questions

Exam AWS Certified Security - Specialty All Questions

View all questions & answers for the AWS Certified Security - Specialty exam

Exam AWS Certified Security - Specialty topic 1 question 448 discussion

Exam question from Amazon's AWS Certified Security - Specialty
Question #: 448
Topic #: 1
[All AWS Certified Security - Specialty Questions]

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?

  • A. Obtain a new authorization token.
  • B. Configure the AWS CLI to use us-east-1.
  • C. Modify the aws-auth-cm.yaml file to include the IAM role for the security engineer.
  • D. Activate AWS Security Token Service (AWS STS) in us-east-1.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
kerar
Highly Voted 2 years, 5 months ago
Selected Answer: B
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-403
upvoted 9 times
...
pal40sg
Most Recent 1 year, 11 months ago
Selected Answer: B
HTTP 403 Errors or "no basic auth credentials" error when pushing to repository There are times when you may receive an HTTP 403 (Forbidden) error, or the error message no basic auth credentials from the docker push or docker pull commands, even if you have successfully authenticated to Docker using the aws ecr get-login-password command. The following are some known causes of this issue: You have authenticated to a different region Authentication requests are tied to specific regions, and cannot be used across regions. For example, if you obtain an authorization token from US West (Oregon), you cannot use it to authenticate against your repositories in US East (N. Virginia). To resolve the issue, ensure that you have retrieved an authentication token from the same Region your repository exists in. For more information, see Private registry authentication.
upvoted 3 times
...
Balki
2 years, 5 months ago
Selected Answer: B
https://docs.aws.amazon.com/AmazonECR/latest/userguide/common-errors-docker.html#error-403
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago