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 281 discussion

A company wants to automate the creation of a security report. The company has an AWS Lambda function that gathers data from Amazon Inspector findings stored in AWS Security Hub in the us-west-2 Region. The Lambda function then needs to create a daily report by using an Amazon EventBridge schedule.

A security engineer discovers that the Lambda function is failing to create the report. The security engineer must implement a solution that corrects the issue and provides least privilege permissions.

Which solution will meet these requirements?

  • A. Create a resource-based policy that allows Security Hub access to the ARN of the Lambda function.
  • B. Attach the AWSSecurityHubReadOnlyAccess AWS managed policy to the Lambda function’s execution role.
  • C. Grant the Lambda function’s execution role read-only permissions to access Amazon Inspector and Security Hub.
  • D. Create a custom IAM policy that grants the Security Hub Get*, List*, Batch*, and Describe* permissions on the arn:aws:securityhub:us-west-2::product/aws/inspector/* resource. Attach the policy to the Lambda function’s execution role.
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
TareDHakim
2 weeks, 4 days ago
Selected Answer: B
B, there's no need for permissions to Inspector as logs already populated in Security Hub.
upvoted 1 times
...
Asma2023
1 month ago
Selected Answer: B
beacause findings are already stored in AWS Security HUB
upvoted 2 times
...
8acf42c
1 month ago
Selected Answer: C
By explicitly granting read-only permissions to both Amazon Inspector and Security Hub, the Lambda function will have the least privilege access it needs to retrieve findings and generate the report. This aligns with best practices.
upvoted 2 times
...
SCSC02Q
1 month, 1 week ago
Selected Answer: B
* enabling more than read access...
upvoted 1 times
...
SCSC02Q
1 month, 1 week ago
Selected Answer: B
its B, since the Batch* on D is a problem, enabling more the read access. In comparison, B provides only BatchGet* so ok.
upvoted 1 times
...
Pmktechno
1 month, 1 week ago
Selected Answer: C
This approach ensures that the Lambda function has the necessary permissions to read data from Amazon Inspector and Security Hub without granting excessive permissions. It aligns with the principle of least privilege by only allowing the specific actions required for the Lambda function to perform its task.
upvoted 2 times
...
HappyG
2 months, 1 week ago
Selected Answer: C
C grants the Lambda function's execution role the necessary permissions to read from both Amazon Inspector and AWS Security Hub, but not granting excessive permissions. This approach adheres to the principle of least privilege by providing only the necessary permissions for the Lambda function to perform its task.
upvoted 2 times
...
Palanda
2 months, 1 week ago
Selected Answer: B
I agree with b
upvoted 1 times
...
jdx000
2 months, 1 week ago
Selected Answer: B
the findings are already in security hub, so only read access to security hub is needed
upvoted 3 times
...
723993f
2 months, 1 week ago
Selected Answer: D
is it not D ? or is the Batch:* a problem ? but i think there are no batch write/delete operations that can be performed on that resource arn anyways
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