What does the lambda execution role do, and what are some (the answer list is just a sample) managed policies for lambda? (also, yes, many of these managed policies having names ending in *Role)
note that when you use an event source mapping to invoke your function, lambda uses the execution role to read event data. that’s why some of the names above say ‘Execution’ when the descriptions say ‘read’
What does amazon say is best practice for ratio of lambda execution roles to functions?
one Lambda Execution Role to one function. Also, note that the managed policy AWSLambdaVPCAccessExecutionRole is actually a policy, i’m not sure it’s a role. maybe look into what’s going on there later. i don’t think roles and policies are the same thing, i think roles contain policies. So i’m betting that either this suggestion means that you use their managed policy in a role you make for a specific function.
Should you use resource based policies to give other accounts and aws services permission to use your lambda resource?
Yes. that policy appears to be created in the lambda function area (if you’re using the console). I think they’re saying the whole thing works similarly to the way it works for S3 bucket policies for S3 bucket.
an iam principal can access lambda if blank 1 or if blank 2
When an aws service like s3 calls your lambda function, who gives it (s3, i presume) access?
the resource based policy (that, again, i beleive is from the lambda side of things)
Lambda and CloudWatch
Are lambda execution logs stored in aws CloudWatch logs?
yes
If for some reason lambda execution logs aren’t being stored in CloudWatch Logs, what might be going on? (honestly maybe you’d get an error sayig exactly what’s happening, idk)
You need to make sure your aws lambda function has an execution role wil iam policy that authorizes writes to CloudWatch Logs.
Are lambda metrics automatically sent to CloudWatch Metrics, free of charge?
yep. in one minute intervals. if you want them send faster, build a custom metric (that will start incurring cost, though)
Where are AWS Lambda metrics displayed, and what are some of the lambda metrics that get displayed there?
Lamnda Monitoring and CloudWatch
lambda tracing with xray
Where are Lambda execution logs stored?
lambda exeuction logs are stored in aws CloudWatch Logs.
How do you get lambda tracing to work with xray in the console and in the code?
What’s the name of the managed policy you can use to get lambda tracing with xray?
AWSXRayDaemonWriteAccess
What are the environment variables needed for lambda (it seems like any service really) to chat with xray?
When using CLoudFront Functions and/or Lambda@Edge:
1. are they serverless?
2. is they deployed globally?
3. What do you pay for?
What’s a common use case for using CloudFront Functions and/or Lambda@Edge?
What is a CDN? A content delivery network (CDN) is a network of interconnected servers that speeds up webpage loading for data-heavy applications. CDN can stand for content delivery network or content distribution network. (quote from aws, but I also wrote somewhere that plenty of this is quoted from their docs)
What’s a CDN?
What is a CDN? A content delivery network (CDN) is a network of interconnected servers that speeds up webpage loading for data-heavy applications. CDN can stand for content delivery network or content distribution network.
aws authentication and authorization - just a couple words so you can see about maybe avoiding learning and forgetting that a million times
Yes/No:
Are CloudFront functions a native feature of CloudFront (can you manage code entirely within CloudFront)
Yes
Regarding Lambda@Edge: what langauges can lambda functions be written in?
NodeJS or Python
yes/no:
If you author your Lambda@Edge lambda functions in one aws region (ex: us-east-1) then CloudFont will replicate that function to it’s other locations
Yes.