Scenario: You need to provide AWS Lambda functions access to specific S3 buckets. How would you configure IAM roles to achieve this securely?
- Allow public access to S3 buckets
- Create an IAM role with a policy granting access to the required S3 buckets, and attach this role to the AWS Lambda functions.
- Share AWS access keys with Lambda functions
- Use a single IAM user for all Lambda functions
Creating an IAM role with a policy granting access to the required S3 buckets, and attaching this role to the AWS Lambda functions is the correct and secure approach.
Loading...
Related Quiz
- Scenario: You are migrating an existing application to AWS Lambda but require a runtime environment that is not natively supported. How would you approach this using custom runtimes?
- Scenario: You are optimizing a memory-intensive AWS Lambda function for a high-throughput application. What approach would you take to determine the optimal memory allocation?
- What are some common challenges faced during performance testing of distributed systems?
- What is a deployment package in AWS Lambda?
- What are some examples of scenarios where using a custom runtime in AWS Lambda might be beneficial?