ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 341 - SCS-C01 discussion

Report
Export

A company has set up the following structure to ensure that their S3 buckets always have logging enabled

If there are any changes to the configuration to an S3 bucket, a config rule gets checked. If logging is disabled , then Lambda function is invoked. This Lambda function will again enable logging on the S3 bucket. Now there is an issue being encoutered with the entire flow. You have verified that the Lambda function is being invoked. But when logging is disabled for the bucket, the lambda function does not enable it again. Which of the following could be an issue Please select:

A.
The AWS Config rule is not configured properly
Answers
A.
The AWS Config rule is not configured properly
B.
The AWS Lambda function does not have appropriate permissions for the bucket
Answers
B.
The AWS Lambda function does not have appropriate permissions for the bucket
C.
The AWS Lambda function should use Node.js instead of python.
Answers
C.
The AWS Lambda function should use Node.js instead of python.
D.
You need to also use the API gateway to invoke the lambda function
Answers
D.
You need to also use the API gateway to invoke the lambda function
Suggested answer: B

Explanation:

The most probable cause is that you have not allowed the Lambda functions to have the appropriate permissions on the S3 bucket to make the relevant changes. Option A is invalid because this is more of a permission instead of a configuration rule issue.

Option C is invalid because changing the language will not be the core solution.

Option D is invalid because you don't necessarily need to use the API gateway service For more information on accessing resources from a Lambda function, please refer to below URL https://docs.aws.amazon.com/lambda/latest/ds/accessing-resources.htmllThe correct answer is: The AWS Lambda function does not have appropriate permissions for thebucket Submit your Feedback/Queries to our Experts

asked 16/09/2024
Jose M Rivera Vega
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first