Bird
0
0

What is the main purpose of environment variables in an AWS Lambda function?

easy📝 Conceptual Q11 of 15
AWS - Lambda
What is the main purpose of environment variables in an AWS Lambda function?
ATo store configuration settings outside the code for flexibility
BTo write logs directly to CloudWatch
CTo increase the memory allocated to the Lambda function
DTo define the runtime language of the Lambda function
Step-by-Step Solution
Solution:
  1. Step 1: Understand environment variables role

    Environment variables hold configuration data separate from code, making functions flexible.
  2. Step 2: Compare with other options

    Logging, memory, and runtime are unrelated to environment variables.
  3. Final Answer:

    To store configuration settings outside the code for flexibility -> Option A
  4. Quick Check:

    Environment variables = configuration outside code [OK]
Quick Trick: Environment variables hold config, not code or logs [OK]
Common Mistakes:
  • Confusing environment variables with logging settings
  • Thinking environment variables control memory or runtime
  • Assuming environment variables store code

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes