ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 123 - SCS-C01 discussion

Report
Export

A company has contracted with a third party to audit several AWS accounts. To enable the audit, cross-account IAM roles have been created in each account targeted for audit. The Auditor is having trouble accessing some of the accounts. Which of the following may be causing this problem? (Choose three.)

A.
The external ID used by the Auditor is missing or incorrect.
Answers
A.
The external ID used by the Auditor is missing or incorrect.
B.
The Auditor is using the incorrect password.
Answers
B.
The Auditor is using the incorrect password.
C.
The Auditor has not been granted sts:AssumeRole for the role in the destination account.
Answers
C.
The Auditor has not been granted sts:AssumeRole for the role in the destination account.
D.
The Amazon EC2 role used by the Auditor must be set to the destination account role.
Answers
D.
The Amazon EC2 role used by the Auditor must be set to the destination account role.
E.
The secret key used by the Auditor is missing or incorrect.
Answers
E.
The secret key used by the Auditor is missing or incorrect.
F.
The role ARN used by the Auditor is missing or incorrect.
Answers
F.
The role ARN used by the Auditor is missing or incorrect.
Suggested answer: A, C, F

Explanation:

Using IAM to grant access to a Third-Party Account 1) Create a role to provide access to the require resources 1.1) Create a role policy that specifies the AWS Account ID to be accessed, "sts:AssumeRole" as action, and "sts:ExternalID" as condition 1.2) Create a role using the role policy just created 1.3) Assign a resouce policy to the role. This will provide permission to access resource ARNs to the auditor 2) Repeat steps 1 and 2 on all AWS accounts 3) The auditor connects to the AWS account AWS Security Token Service (STS). The auditor must provide its ExternalID from step 1.2, the ARN of the role he is trying to assume from step 1.3, sts:ExternalID 4) STS provide the auditor with temporary credentials that provides the role access from step 1

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-user_externalid.html

https://aws.amazon.com/blogs/security/how-to-audit-cross-account-roles-using-aws-cloudtrail-andamazon-cloudwatch-events/

asked 16/09/2024
Youssef El Akhal
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first