How should a solutions architect grant the necessary permissions for an AWS Lambda function to upload files to Amazon S3, given that the developer has an existing IAM user with valid credentials? | AWS Certified Solutions Architect - Associate Quiz - LeetQuiz