exam questions

Exam AWS Certified Security - Specialty SCS-C02 All Questions

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

Exam AWS Certified Security - Specialty SCS-C02 topic 1 question 18 discussion

A company uses several AWS CloudFormation stacks to handle the deployment of a suite of applications. The leader of the company's application development team notices that the stack deployments fail with permission errors when some team members try to deploy the stacks. However, other team members can deploy the stacks successfully.
The team members access the account by assuming a role that has a specific set of permissions that are necessary for the job responsibilities of the team members. All team members have permissions to perform operations on the stacks.
Which combination of steps will ensure consistent deployment of the stacks MOST securely? (Choose three.)

  • A. Create a service role that has a composite principal that contains each service that needs the necessary permissions. Configure the role to allow the sts:AssumeRole action.
  • B. Create a service role that has cloudformation.amazonaws.com as the service principal. Configure the role to allow the sts:AssumeRole action.
  • C. For each required set of permissions, add a separate policy to the role to allow those permissions. Add the ARN of each CloudFormation stack in the resource field of each policy.
  • D. For each required set of permissions, add a separate policy to the role to allow those permissions. Add the ARN of each service that needs the permissions in the resource field of the corresponding policy.
  • E. Update each stack to use the service role.
    F Add a policy to each member role to allow the iam:PassRole action. Set the policy's resource field to the ARN of the service role.
Show Suggested Answer Hide Answer
Suggested Answer: BDE 🗳️

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
PareshBPatel
Highly Voted 1 year, 6 months ago
BEF are the correct selection Thought to consistent deployment of CloudFormation stacks would actually be B. Create a service role that has cloudformation.amazonaws.com as the service principal. Configure the role to allow the sts:AssumeRole action. E. Update each stack to use the service role. F. Add a policy to each member role to allow the iam:PassRole action. Set the policy's resource field to the ARN of the service role. These steps ensure that CloudFormation has the necessary permissions through a service role designed specifically for it (B), that each stack is configured to use this service role for deployments (E), and that users have the permission to pass this role to CloudFormation (F), aligning with best practices for security and consistency.
upvoted 17 times
...
cumzle_com
Highly Voted 1 year, 2 months ago
Selected Answer: BDE
B. Create a service role that has cloudformation.amazonaws.com as the service principal. Configure the role to allow the sts action. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-service.html D. For each required set of permissions, add a separate policy to the role to allow those permissions. Add the ARN of each service that needs the permissions in the resource field of the corresponding policy. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-servicerole.html#using-iam-servicerole-add E. Update each stack to use the service role. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-iam-servicerole.html
upvoted 8 times
...
fsdgrtsdfcjmu
Most Recent 2 weeks, 6 days ago
Selected Answer: BDE
BDF Why D and not E Service role needs: Proper trust policy (addressed by B) Proper permissions policies (addressed by D) Ability for users to pass the role (addressed by F) Stacks configured to use the role (addressed by E) D is more fundamental than E, since the question asks for the MOST secure combination.
upvoted 1 times
...
Radhey_sen
2 months, 4 weeks ago
Selected Answer: BE
BEF is the correct answer
upvoted 1 times
...
FlyingHawk
6 months, 1 week ago
Selected Answer: BDE
Why Not A, C, or F? Option Reason for Rejection A A composite principal is unnecessary here. CloudFormation is the only service assuming the role, so we only need cloudformation.amazonaws.com. C Adding CloudFormation stack ARNs in the resource field is incorrect because policies should apply to the services being provisioned, not to CloudFormation stacks themselves. F iam:PassRole is only needed when a user or service is delegating a role to another AWS service (e.g., EC2 assuming an IAM role). CloudFormation assumes the role directly, so this step is not required.
upvoted 2 times
...
youonebe
7 months, 2 weeks ago
Selected Answer: BD
BDF Option E: It's not necessary to explicitly update each stack to use the service role. CloudFormation automatically assumes the specified service role when performing stack operations, as long as the role is properly configured with the necessary permissions and trust relationships.
upvoted 1 times
...
ahirri
8 months, 1 week ago
Selected Answer: BCE
Anyone that voted "D", how can you add "Service Arn" (not Resource ARN) to the "Resource" field in an IAM policy?
upvoted 2 times
...
IPLogic
8 months, 2 weeks ago
Selected Answer: BE
BEF IS THE RIGHT ANSWER FOR THIS SCENARIO
upvoted 2 times
...
hb0011
11 months, 2 weeks ago
In a scenario where E and F are combined as one choice (E) as someone stated then the correct answer would be BCE.
upvoted 1 times
...
hb0011
11 months, 2 weeks ago
Selected Answer: BE
The voting buttons are messed up so it's showing the wrong answer. The answer is 100% definitely BEF but you can't vote for BEF.
upvoted 1 times
...
HunkyBunky
11 months, 3 weeks ago
Selected Answer: BDE
For me - BDE looks good.
upvoted 1 times
...
FunkyFresco
12 months ago
Selected Answer: BD
BDF make more sense to me.
upvoted 1 times
...
shyam87
12 months ago
B - the CloudFormation service to needs to assume the role to create the resources E - the stacks needs to use the role to gain permissions F - the IAM user needs the iam:PassRole permission to pass the role to the CloudFormation service
upvoted 3 times
...
5409b91
1 year, 1 month ago
Selected Answer: BDE
B, D, E.
upvoted 5 times
...
shailvardhan
1 year, 2 months ago
Selected Answer: BE
BEF are the correct answers.
upvoted 1 times
...
CloudHell
1 year, 4 months ago
Selected Answer: BCE
B ensures that CloudFormation has the necessary permissions through a dedicated service role. C restricts the permissions to the specific stacks, following the principle of least privilege. E ensures that each stack uses the service role during deployment.
upvoted 4 times
...
Snape
1 year, 4 months ago
Selected Answer: BE
BEF is correct
upvoted 4 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 ...