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 395 discussion

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

A security engineer recently enabled the me-south-1 Region. The security engineer is now assuming an IAM role and is making an API call to an endpoint in me-south-1.

The API call returns the following error: “AuthFailure: AWS was not able to validate the provided access credentials”.

Which solutions will resolve this error? (Choose two.)

  • A. Add the iam:SetSecurityTokenServicePreferences action to the security engineer’s IAM role.
  • B. Use the AWS Security Token Service (AWS STS) endpoint in me-south-1 to obtain an STS token.
  • C. Use the AWS Security Token Service (AWS STS) endpoint in the us-east-1 Region to obtain an STS token.
  • D. Manually activate the AWS Security Token Service (AWS STS) endpoint in me-south-1.
  • E. Change the AWS Security Token Service (AWS STS) global endpoint to issue Region-compatible session tokens.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

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
tainh
Highly Voted 2 years, 4 months ago
Selected Answer: BE
B,E https://aws.amazon.com/premiumsupport/knowledge-center/iam-validate-access-credentials/
upvoted 7 times
...
whuzzup
Most Recent 1 year, 10 months ago
Selected Answer: BE
By default, the AWS Security Token Service (AWS STS) is available as a global service, and all AWS STS requests go to a single endpoint at https://sts.amazonaws.com. AWS recommends using Regional AWS STS endpoints instead of the global endpoint to reduce latency, build in redundancy, and increase session token validity. If you choose to use the global endpoint, you must change the Region compatibility of AWS STS session tokens for the global endpoint. Doing so ensures that tokens are valid in all AWS Regions. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html
upvoted 1 times
...
Green53
1 year, 10 months ago
Selected Answer: BE
Difficult question! https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html States that 'me-south-1' is an opt-in region. If this is the case, then you have two options (according to https://repost.aws/knowledge-center/iam-validate-access-credentials). * Obtain tokens from a Regional endpoint - i.e B * Change Region compatibility of session tokens for global endpoint - i.e E. I'd go: B + E Because of the above, and the fact it states solutionS, rather than solution. While A/E are a valid combination, it's a single solution. B/E are both solutions (granted, you *might* need A before applying E, but we don't know what permissions the engineer has).
upvoted 1 times
...
Toptip
1 year, 10 months ago
Selected Answer: AE
Well... it's A+E 100%
upvoted 1 times
...
ITGURU51
1 year, 11 months ago
The IAM role is being assumed in the me south 1 region. Therefore, the temporary access token will be granted from that specific region where the resource is located. B Change Region compatibility E.
upvoted 1 times
...
isokalau
2 years ago
Selected Answer: AE
According to the provided links: To change the Region compatibility of session tokens for the global endpoint (console): Sign in as a root user or a user with permissions to perform IAM administration tasks. To change the compatibility of session tokens, you must have a policy that allows the iam:SetSecurityTokenServicePreferences action. Open the IAM console. In the navigation pane, choose Account settings. Under Security Token Service (STS) section Session Tokens from the STS endpoints. The Global endpoint indicates Valid only in AWS Regions enabled by default. Choose Change. In the Change region compatibility dialog box, select All AWS Regions. Then choose Save changes.
upvoted 1 times
...
Boss_Sivaji
2 years, 2 months ago
Selected Answer: AE
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-manage-tokens
upvoted 2 times
...
gtmnagalla
2 years, 2 months ago
Selected Answer: AE
Option A- provides instructions to change the Region compatibility of session tokens for the global endpoint.
upvoted 1 times
...
KVK16
2 years, 2 months ago
The Global endpoint Tokens are valid in Default regions only. So the error was being generated .Two way approach 1. Go to Regional endpoint for (Regions that are manually enabled) for token or Go to Global endpoint and ask to generate regional tokens - these tokens are valid in all regions
upvoted 1 times
...
secdaddy
2 years, 3 months ago
Could be AB following the one best practice of getting a token from the regional endpoint. Could be AE to answer with two different ways to solve the error if one assumes that adding SetSecurityTokenServicePreferences infers correct configuration of it. Could be BE also to answer with two different ways to solve the error, if one went so far as to say that adding SetSecurityTokenServicePreferences without the right parameters wouldn't be enough. 'Which solutions will resolve this error' can be interpreted to be asking for more than one solution so I will guess AE, assuming that SetSecurityTokenServicePreferences includes the necessary configuration.
upvoted 1 times
...
sse69
2 years, 4 months ago
Selected Answer: BE
BE https://aws.amazon.com/premiumsupport/knowledge-center/iam-validate-access-credentials/
upvoted 3 times
due
2 years, 4 months ago
refer to thelink 1. AWS STS endpoint closer to your application. 2. AWS STS global endpoint.
upvoted 3 times
...
...
aj2aj2
2 years, 4 months ago
Answer AE . To change the Region compatibility of session tokens for the global endpoint (console) Sign in as a root user or an IAM user with permissions to perform IAM administration tasks. To change the compatibility of session tokens, you must have a policy that allows the "iam:SetSecurityTokenServicePreferences" action. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-manage-tokens
upvoted 1 times
...
Un1c0rn
2 years, 4 months ago
Selected Answer: AE
https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-manage-tokens
upvoted 1 times
...
amcloud
2 years, 4 months ago
Selected Answer: AD
AD Seems Good. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_enable-regions.html#sts-regions-manage-tokens
upvoted 1 times
...
speedster
2 years, 4 months ago
Selected Answer: BE
https://aws.amazon.com/premiumsupport/knowledge-center/iam-validate-access-credentials/
upvoted 2 times
...
luisfsm_111
2 years, 5 months ago
Selected Answer: BD
I'd choose BD https://aws.amazon.com/premiumsupport/knowledge-center/iam-validate-access-credentials/
upvoted 1 times
speedster
2 years, 4 months ago
why D!, no need of manual activate as per the reference. Answer is BE
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