exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 122 discussion

A company has enabled AWS CloudTrail logs to deliver log files to an Amazon S3 bucket for each of its developer accounts. The company has created a central
AWS account for streamlining management and audit reviews. An internal auditor needs to access the CloudTrail logs, yet access needs to be restricted for all developer account users. The solution must be secure and optimized.
How should a solutions architect meet these requirements?

  • A. Configure an AWS Lambda function in each developer account to copy the log files to the central account. Create an IAM role in the central account for the auditor. Attach an IAM policy providing read-only permissions to the bucket.
  • B. Configure CloudTrail from each developer account to deliver the log files to an S3 bucket in the central account. Create an IAM user in the central account for the auditor. Attach an IAM policy providing full permissions to the bucket.
  • C. Configure CloudTrail from each developer account to deliver the log files to an S3 bucket in the central account. Create an IAM role in the central account for the auditor. Attach an IAM policy providing read-only permissions to the bucket.
  • D. Configure an AWS Lambda function in the central account to copy the log files from the S3 bucket in each developer account. Create an IAM user in the central account for the auditor. Attach an IAM policy providing full permissions to the bucket.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Paitan
Highly Voted 3 years, 7 months ago
I think C is the best option.
upvoted 63 times
Clouddon
3 years, 6 months ago
@Paitan, kindly substantiate your answer with verifiable link that says Cloudtrail can be used to fulfil this request. Thank you
upvoted 3 times
...
aguy9
3 years, 6 months ago
Is there a typo in C? Because it says create an IAM role for the auditor. Roles are only meant for aws resources. You create IAM users for human auditors. C makes sense in that you are only granting read access to the S3 bucket
upvoted 5 times
EricGuo
3 years, 5 months ago
good pick. but even with full access, the bucket can be accessed only by the auditor. so I chose B.
upvoted 1 times
omunoz
3 years, 2 months ago
But the request says "The solution should be both secure and efficient." So, full access cannot be granted (least privilege principle)...
upvoted 1 times
...
...
ranajee
3 years, 5 months ago
Agree with you. IAM role for resources, IAM user for people. With that I'm inclining towards B, but B states to provide full access, and that's why I'm choosing C, even though none of them B or C are perfect answers.
upvoted 2 times
abs2310
3 years, 5 months ago
C seems correct. They are talking of Auditor as a role and not the name of the user. @Maihuna provided the link below for the same https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html
upvoted 5 times
...
...
Venki_dev
3 years, 1 month ago
they should have added additional para stating auditor assumes this IAM role and it would have been more clear https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-sharing-logs.html
upvoted 2 times
...
...
...
Maihuna
Highly Voted 3 years, 7 months ago
C is the better option as cloudtrail can send logs directly to s3 bucket in other account. https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html
upvoted 18 times
...
Jacops
Most Recent 2 years, 4 months ago
The C is perfect
upvoted 1 times
...
queen101
2 years, 8 months ago
cccccccccccc
upvoted 1 times
...
marklovesaws143
2 years, 9 months ago
Selected Answer: C
CCCCCCCCCCCCCC
upvoted 2 times
...
slcheng
2 years, 9 months ago
Selected Answer: C
Vote C
upvoted 1 times
...
cen007
2 years, 10 months ago
Selected Answer: C
B and C are correct, but C is the best. The company has internal auditors that requires access to bucket in centralize account....obviously the internal auditors has accounts already just like the developers have account. What the auditors need is to assume the role created with read-only access policy. That is efficient and super secure. (IMO)
upvoted 1 times
...
Venki_dev
3 years, 1 month ago
Selected Answer: C
Answer C For all people confused why the IAM role, please check below To share log files between multiple AWS accounts, you must perform the following general steps. ======= Create an IAM role for each account that you want to share log files with. For each of these IAM roles, create an access policy that grants read-only access to the account you want to share the log files with. Have an IAM user in each account programmatically assume the appropriate role and retrieve the log files. ======= so the auditor here will access the logs programmatically assuming the read only role. more details here : https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-sharing-logs.html
upvoted 5 times
...
zik87
3 years, 1 month ago
Why is Lambda inappropriate for this answer
upvoted 1 times
cen007
2 years, 10 months ago
In this context, Lambda is very inappropriate, it introduces another overhead to the system.
upvoted 2 times
...
...
RagnarLodbrok
3 years, 5 months ago
Selected Answer: C
Answer is C
upvoted 4 times
...
_Jules_
3 years, 5 months ago
Some disagreement here over B vs C - I get that - but if torn between the two simply consider "full permissions" (B) vs "read-only permissions" (C). An auditor should have read-only. so it's C in fact.
upvoted 4 times
...
SFXY
3 years, 5 months ago
C, https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html You can use roles to delegate access to users, applications, or services that don't normally have access to your AWS resources. For example, you might want to grant users in your AWS account access to resources they don't usually have, or grant users in one AWS account access to resources in another account.
upvoted 3 times
...
patriktre
3 years, 5 months ago
I had this one on the exam, I choosed C, but it is still unclear to me what is really correct. This statement can be for "optimized" in the question's requirement: An IAM role is an IAM identity that you can create in your account that has specific permissions. An IAM role is similar to an IAM user, in that it is an AWS identity with permission policies that determine what the identity can and cannot do in AWS. However, instead of being uniquely associated with one person, a role is intended to be assumable by anyone who needs it. Also, a role does not have standard long-term credentials such as a password or access keys associated with it. Instead, when you assume a role, it provides you with temporary security credentials for your role session. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html
upvoted 2 times
...
Azure1971
3 years, 5 months ago
Answer is C: Both answers B & C serve the requirement. Following the security best practise " Grant Least Privilege" we can select answer C. Security Best Practices: https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege Sending Cloud Trail logs to multiple accounts: https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html
upvoted 5 times
...
Sayto
3 years, 5 months ago
Cloud tail can deliver logs to a central AWS account. No need for lambda. Now it's between B&C. The difference between the two is that in C the audit is done using a different account as it says "create a role which has a read-only policy". A role can be assumed for an IAM user in a different account (B) to grant access to resources in the account (A). But the Q did not mention the audit using a separate account. It's using the central account. SO the correct answer is B. we just need a user in the same account.
upvoted 1 times
...
woke
3 years, 5 months ago
C. Configure CloudTrail from each developer account to deliver the log files to an S3 bucket in the central account. Create an IAM role in the central account for the auditor. Attach an IAM policy providing read-only permissions to the bucket.
upvoted 3 times
...
Iamrandom
3 years, 5 months ago
Answer is B. A/D are wrong as it is not necessary to use a Lambda function: CloudTrail can deliver log files in multiple buckets (https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html), by chosing these is wouldn't be "optimized". C is wrong as it states to create an "IAM role", which is not correct: Auditors is a real user not a principal so B remains. Read only/Full access is not important as Devs won't be able to access that bucket anyway.
upvoted 4 times
Rupesh1987
3 years, 5 months ago
IAM roles could be used to access other account resource. You have to assign role to the user only with least privilege access.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago