Which solution will meet these requirements?
Add a Lambda@Edge function to the distribution. Invoke the function on viewer request. Add permissions to the function’s execution role to allow the function to access AWS STS. Move all SDK calls from the frontend into the function.
Add a CloudFront function to the distribution. Invoke the function on viewer request. Add permissions to the function’s execution role to allow the function to access AWS STS. Move all SDK calls from the frontend into the function.
Add a Lambda@Edge function to the distribution. Invoke the function on viewer request. Move the credentials from the JSON file into the function. Move all SDK calls from the frontend into the function.
Add a CloudFront function to the distribution. Invoke the function on viewer request. Move the credentials from the JSON file into the function. Move all SDK calls from the frontend into the function.