ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 306 - SOA-C02 discussion

Report
Export

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.
Answers
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.
Answers
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.
Answers
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.
Answers
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.
Answers
E.
Create an IAM policy that grants access to any EC2 instances with a tag specified in the Condition element.
Suggested answer: A, E

Explanation:

To control access to Amazon EC2 instances using AWS Systems Manager Session Manager based on specific tags:

Attach an IAM Policy to Users or Groups: Create and attach an Identity and Access Management (IAM) policy to the IAM users or groups who need access to the EC2 instances. This policy should specify the permissions required to use Session Manager to start sessions with the instances.

Create an IAM Policy with Tag-Based Conditions: Create an IAM policy that includes a condition element to allow access to EC2 instances based on specific tags. This policy can be designed to grant the ssm:StartSession permission only for instances that match certain tags, as defined in the condition block of the IAM policy. Here is a sample condition block that could be used:

'Condition': {

'StringEquals': {

'ec2:ResourceTag/YourTagName': 'YourTagValue'

}

}

This ensures that only authorized users can initiate sessions with instances that have the specified tags, enhancing security and operational management.

By implementing these policies, you ensure that only the appropriate personnel have the controlled access required, based on the specific business needs and security guidelines.

asked 16/09/2024
Andrea Trivisonno
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first