Scenario: You need to deploy an AWS Lambda function that requires access to an external API key. How would you securely store this API key?
- Hardcode the API key in the Lambda function code
- Pass the API key as an environment variable
- Store the API key in a plaintext configuration file
- Use AWS Secrets Manager
Using AWS Secrets Manager to securely store and manage the API key ensures that it is protected and can be accessed by the Lambda function when needed.
Loading...
Related Quiz
- How do cold start reduction techniques improve the performance of AWS Lambda functions?
- Scenario: You are managing a fleet of EC2 instances and need to monitor CPU utilization. How would you utilize CloudWatch Metrics in this scenario?
- How can you manage and version Lambda Layers effectively?
- Custom metrics in AWS are often collected using __________.
- How do you configure custom event sources to trigger AWS Lambda functions?