exam questions

Exam AWS Certified Data Analytics - Specialty All Questions

View all questions & answers for the AWS Certified Data Analytics - Specialty exam

Exam AWS Certified Data Analytics - Specialty topic 1 question 21 discussion

Three teams of data analysts use Apache Hive on an Amazon EMR cluster with the EMR File System (EMRFS) to query data stored within each teams Amazon
S3 bucket. The EMR cluster has Kerberos enabled and is configured to authenticate users from the corporate Active Directory. The data is highly sensitive, so access must be limited to the members of each team.
Which steps will satisfy the security requirements?

  • A. For the EMR cluster Amazon EC2 instances, create a service role that grants no access to Amazon S3. Create three additional IAM roles, each granting access to each team's specific bucket. Add the additional IAM roles to the cluster's EMR role for the EC2 trust policy. Create a security configuration mapping for the additional IAM roles to Active Directory user groups for each team.
  • B. For the EMR cluster Amazon EC2 instances, create a service role that grants no access to Amazon S3. Create three additional IAM roles, each granting access to each team's specific bucket. Add the service role for the EMR cluster EC2 instances to the trust policies for the additional IAM roles. Create a security configuration mapping for the additional IAM roles to Active Directory user groups for each team.
  • C. For the EMR cluster Amazon EC2 instances, create a service role that grants full access to Amazon S3. Create three additional IAM roles, each granting access to each team's specific bucket. Add the service role for the EMR cluster EC2 instances to the trust polices for the additional IAM roles. Create a security configuration mapping for the additional IAM roles to Active Directory user groups for each team.
  • D. For the EMR cluster Amazon EC2 instances, create a service role that grants full access to Amazon S3. Create three additional IAM roles, each granting access to each team's specific bucket. Add the service role for the EMR cluster EC2 instances to the trust polices for the base IAM roles. Create a security configuration mapping for the additional IAM roles to Active Directory user groups for each team.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
jack42
Highly Voted 3 years, 8 months ago
No doubt its B. If you will have full access on Ec2 instance role and no role match then it will fall back to the default role [When a cluster application makes a request to Amazon S3 through EMRFS, EMRFS evaluates role mappings in the top-down order that they appear in the security configuration. If a request made through EMRFS doesn’t match any identifier, EMRFS falls back to using the service role for cluster EC2 instances.] Also this is tested fully and its more secure then any other options.
upvoted 30 times
...
Shraddha
Highly Voted 3 years, 8 months ago
Ans B : This is a textbook question. Basically you: create a new EMR service role, removing default permission from original service role which is too permissive with s3:* create some new roles to allow access to respective s3 buckets EMRFS by default will assume EMR service role, which means it gets all access to S3, but can be configured to assume an additional role created by user To be able to do that, user-created roles needs to trust EMR service role (because EMRFS will assume that role first) https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-emrfs-iam-roles.html
upvoted 11 times
...
tsangckl
Most Recent 1 year, 3 months ago
Bling choose A for the below explanation Option A is correct because it ensures that each team only has access to its own S3 bucket. By creating a service role that grants no access to Amazon S3 for the EMR cluster EC2 instances, you prevent unauthorized access. Then, by creating additional IAM roles that grant access to each team’s specific bucket and adding these roles to the EMR role for the EC2 trust policy, you ensure that each team can access only its own data. Finally, by creating a security configuration mapping for the additional IAM roles to Active Directory user groups for each team, you ensure that only the members of each team can access their own data. Other options are not the best solutions for this scenario. For example, Options B, C, and D involve adding the service role for the EMR cluster EC2 instances to the trust policies for the additional IAM roles or the base IAM roles, which could potentially allow unauthorized access to the S3 buckets.
upvoted 1 times
...
NikkyDicky
1 year, 11 months ago
Selected Answer: B
B is right
upvoted 1 times
...
pk349
2 years, 2 months ago
B: I passed the test
upvoted 2 times
...
cloudlearnerhere
2 years, 8 months ago
Selected Answer: B
Correct answer is B as the EMR service role should be provided with no access and the mapping defined for security configuration for using IAM roles mapped to groups. Option A is wrong as the service role for the EMR cluster EC2 instances should be updated to the trust policies for the additional IAM roles. Options C & D are wrong as the EMR service role should have no access.
upvoted 5 times
...
rav009
2 years, 8 months ago
Selected Answer: B
B B is right, the service role need assume the additional roles, which means add it to the trust policy of the additional roles. A is the opposite.
upvoted 1 times
...
Grimreaper69
2 years, 11 months ago
isnt b and c the same?
upvoted 1 times
rudramadhu
2 years, 11 months ago
B - create a service role that grants no access to Amazon S3. C- create a service role that grants FULL access to Amazon S3 B is the right choice
upvoted 2 times
...
...
rocky48
2 years, 11 months ago
Selected Answer: B
Answer B
upvoted 1 times
...
Bik000
3 years, 1 month ago
Selected Answer: B
Answer is B
upvoted 1 times
...
aws2019
3 years, 7 months ago
Answer B
upvoted 1 times
...
Donell
3 years, 8 months ago
Answer B
upvoted 2 times
...
Antfoot
3 years, 8 months ago
When a cluster application makes a request to Amazon S3 through EMRFS, EMRFS evaluates role mappings in the top-down order that they appear in the security configuration. If a request made through EMRFS doesn’t match any identifier, EMRFS falls back to using the service role for cluster EC2 instances. For this reason, we recommend that the policies attached to this role limit permissions to Amazon S3. For more information, see Service Role for Cluster EC2 Instances (EC2 Instance Profile).
upvoted 1 times
...
Exia
3 years, 8 months ago
C. We need additional IAM roles. A, B. If EC2 service role has no access to Amazon S3, no one on this EC2 can access S3 at any level. Besides, S3 deny unauthorized access by default. D. We need additional IAM roles.
upvoted 4 times
...
lostsoul07
3 years, 8 months ago
B is the right answer
upvoted 3 times
...
lvi
3 years, 8 months ago
Would go with A. By default, no privilege given in the "default" instance profile. Privileges are given through dedicated roles and policies for each domain. Then allow these roles to be assumed by the EMR Service Role. EMR will then use the appropriate IAM roles based on to the role mapping definition.
upvoted 1 times
...
blubb
3 years, 8 months ago
B is correct as of https://aws.amazon.com/de/blogs/big-data/build-a-multi-tenant-amazon-emr-cluster-with-kerberos-microsoft-active-directory-integration-and-emrfs-authorization/
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 ...