ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 287 - DVA-C02 discussion

Report
Export

A company has an AWS Step Functions state machine named myStateMachine. The company configured a service role for Step Functions. The developer must ensure that only the myStateMachine state machine can assume the service role.

A.

'Condition': { 'ArnLike': { 'aws ':'arn:aws:states:ap-south-1:111111111111:stateMachine ' } }

Answers
A.

'Condition': { 'ArnLike': { 'aws ':'arn:aws:states:ap-south-1:111111111111:stateMachine ' } }

B.

' Condition': { 'ArnLike': { 'aws ':'arn:aws:states:ap-south-1:*:stateMachine ' } }

Answers
B.

' Condition': { 'ArnLike': { 'aws ':'arn:aws:states:ap-south-1:*:stateMachine ' } }

Suggested answer: A

Explanation:

Comprehensive Detailed Step by Step Explanation with All AWS Developer

Reference: To ensure that only a specific AWS Step Functions state machine (myStateMachine) can assume the service role, you must configure the correct trust policy in AWS IAM.

Trust Policies: Trust policies determine which entities (services or users) are allowed to assume the role. In this case, we want to restrict the trust policy to only allow the specific state machine (myStateMachine) to assume the role.

Using ArnLike: The condition 'ArnLike' is used to specify that the SourceArn (which refers to the ARN of the entity assuming the role) must match a specific ARN. Option A specifies the exact ARN of the myStateMachine state machine, ensuring that only this state machine can assume the role.

Option B: This option is incorrect because it uses a wildcard (*) for the account ID, which would allow any state machine in the ap-south-1 region to assume the role, not just the specific one.

AWS Step Functions IAM Policies

asked 23/10/2024
Muhammad Gul
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first