exam questions

Exam AWS Certified SysOps Administrator - Associate All Questions

View all questions & answers for the AWS Certified SysOps Administrator - Associate exam

Exam AWS Certified SysOps Administrator - Associate topic 1 question 103 discussion

A SysOps administrator needs to control access to groups of Amazon EC2 instances using AWS Systems Manager Session Manager. Specific tags on the EC2 instances have already been added.
Which additional actions should the administrator take to control access? (Choose two.)

  • A. Attach an IAM policy to the users or groups that require access to the EC2 instances.
  • B. Attach an IAM role to control access to the EC2 instances.
  • C. Create a placement group for the EC2 instances and add a specific tag.
  • D. Create a service account and attach it to the EC2 instances that need to be controlled.
  • E. Create an IAM policy that grants access to any EC2 instances with a tag specified in the Condition element.
Show Suggested Answer Hide Answer
Suggested Answer: AE 🗳️

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
Vivec
Highly Voted 1 year, 7 months ago
Selected Answer: AE
A. Attach an IAM policy to the users or groups that require access to the EC2 instances: IAM policies can be used to control access to resources in AWS. The policy can specify which actions are allowed or denied and which resources the user or group can access. In this case, the policy should include permissions to use the Session Manager service. E. Create an IAM policy that grants access to any EC2 instances with a tag specified in the Condition element: This policy can specify that access is granted only to instances with specific tags. For example, a policy could specify that users or groups can only access instances that have a specific tag, such as "Environment=Prod". This helps to ensure that only the appropriate instances are accessed.
upvoted 7 times
...
OlehKom
Most Recent 4 months, 2 weeks ago
Selected Answer: AE
Simply remember: The IAM role attached to ec2 instances (B) allows the instances to interact with AWS services (Systems Manager) but doesn't control user access
upvoted 2 times
...
AgboolaKun
5 months ago
Selected Answer: AE
Control access to smaller deployments of Amazon EC2 instances as follows: 1. Add a specific tag to the instances that you want to grant the users or groups access to. 2. Create an IAM policy that grants access to any instances with the specific tag. 3. Attach the IAM policy to the users or groups that you want to access the instances. Please refer to this link for more information - https://repost.aws/knowledge-center/iam-ec2-resource-tags
upvoted 2 times
...
stoy123
8 months ago
Selected Answer: BE
B and E
upvoted 2 times
...
Maria2023
8 months, 3 weeks ago
Selected Answer: BE
The question does not mention granting users access to anything. Here we only discuss the access from SSM to the instances, which is not enabled by default.
upvoted 2 times
...
Rabbit117
9 months, 1 week ago
Selected Answer: AE
You would create an IAM policy that grants access to any EC2 instance with a tag specified I the condition element (E) and then you would attach that policy to the users or groups which require the access (A). I think B is wrong as you assume and IAM role, you don't attach it...
upvoted 2 times
...
xdkonorek2
9 months, 2 weeks ago
Selected Answer: BE
To achieve this for all the instances without considering tags you would create instance profile with a managed policy - "AmazonSSMManagedInstanceCore" and attach it to an instance. For instances with specified tags you must create your own conditional policy so SSM agent have access only to instances with particular tags.
upvoted 1 times
...
konieczny69
10 months, 2 weeks ago
Selected Answer: AE
A and E
upvoted 3 times
...
Hatem08
11 months ago
Selected Answer: AE
AE is the correct answer !
upvoted 3 times
...
wh1t4k3r
1 year, 1 month ago
I go for A and E, given that create a policy and attach a role does not solve the problem. You need to attach the policy you've created somewhere.
upvoted 3 times
...
xSohox
1 year, 2 months ago
Selected Answer: BE
I think it is BE. Because "By default, AWS Systems Manager doesn't have permission to perform actions on your instances." https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started-instance-profile.html So you need to grant Session Manager the permission to perform actions on your Amazon EC2 instances: https://docs.aws.amazon.com/systems-manager/latest/userguide/getting-started-create-iam-instance-profile.html
upvoted 1 times
konieczny69
10 months, 2 weeks ago
it cant be be since they are logically unraleted, where one creates a role and second a policy its AE
upvoted 2 times
...
...
Christina666
1 year, 3 months ago
Selected Answer: BE
A & E is a pair, can't be both
upvoted 1 times
konieczny69
10 months, 2 weeks ago
it must be both, create and attach are inseparable AE
upvoted 2 times
...
...
Gomer
1 year, 4 months ago
Selected Answer: BE
Could have been A, except you wouldn't attach a policy to a "users or a groups". That's too broad. Best practice is to use a group or a role, and not apply policies directly to a user.
upvoted 3 times
...
fazlur21
1 year, 4 months ago
The question is "A SysOps Administrator needs to control access __to__ groups of Amazon EC2 instances.", not the control access of EC2 instances (or from them), so B is not applicable here.
upvoted 2 times
...
fazlur21
1 year, 4 months ago
BE is the real answer 100%
upvoted 1 times
...
noahsark
1 year, 4 months ago
Selected Answer: BE
"Condition": { "StringEquals": { "ec2:ResourceTag/TAG-KEY": "TAG-VALUE" } } https://repost.aws/knowledge-center/iam-policy-permission-ec2-tags-vpc
upvoted 2 times
...
Gomer
1 year, 6 months ago
Selected Answer: BE
Q97: A team of on-call engineers frequently needs to connect to Amazon EC2 instances in a private subnet to troubleshoot and run commands. The instances use either the latest AWS-provided Windows Amazon Machine Images (AMIs) or Amazon Linux AMIs. The team has an existing 1AM role for authorization. A SysOps administrator must provide the team with access to the instances by granting IAM permissions to this role. Which solution will meet this requirement?" Correct answer: A. Add a statement to the 1AM role policy to allow the ssm:StartSession action on the instances. Instruct the team to use AWS Systems Manager Session Manager to connect to the instances by using the assumed IAM role." None of the other answers have antything to do with a policy for group or users. https://docs.aws.amazon.com/systems-manager/latest/userguide/getting-started-restrict-access-examples.html#restrict-access-example-instance-tags I vote for "BE" because of policy example and I know role could work. I think wording in "A." is purposefully vague.
upvoted 3 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