Compute (EC2, EBS, ELB, Lambda, Elastic Beanstalk) Flashcards
What is the difference between a Lambda function policy and an execution role?
The function policy defines which AWS event sources are allowed to invoke the function, used with a push-based strategy
The execution role determines which event sources the function has access to during execution, used with a poll-based strategy
Which four event sources are supported for poll-based mappings using an execution role? Are these mappings synchronous or asynchronous?
a) Kinesis
b) SQS
c) DynamoDB
d) Managed Streaming for Kafka
Synchronous
What are the four EC2 pricing models and what are their characteristics?
a) on-demand, a fixed rate by the hour
b) reserved, cheaper than on-demand, but tied into a one or three year contract
c) spot, bidding for excess capacity
d) dedicated host, servers allocated specifically to the customer
What are the four volume types of Elastic Block Storage that can be attached to an EC2 instance, and what are they suitable for?
a) general purpose (GP2) SSD, for balanced price/performance
b) provisioned IOPS (IO1) SSD, for workloads requiring over 10,000 IOPS
c) throughput optimised (ST1) HDD, for throughput intensive workloads, eg data warehouses
d) cold (SC1) HDD, for less frequent access, eg file servers
What are the three types of Elastic Load Balancer?
a) application, which is used to route Layer 7 traffic
b) network, which is used to route Layer 4 traffic
c) classic, which is used to route either Layer 7 or Layer 4 traffic
What does a 504 Error indicate?
That the gateway has timed out, ie that the request couldn’t be completed within the idle timeout period
This can occur when using API Gateway, CloudFront, ElasticLoadBalancing, or ElasticSearch
Name three EC2 security configuration tasks that the user is responsible for
a) security groups
b) private subnets
c) encryption options
How can encryption at rest be configured for an EC2 instance?
By configuring encryption when the attached EBS volume is created
Which HTTP request header can be used to obtain the public IP address of the client when using an Elastic Load Balancer?
X-Forwarded-For
Which six service families are able to invoke a Lambda function asynchronously using a function policy?
a) S3
b) SNS and SES
c) IoT and IoT Events
d) CloudFormation
e) CloudWatch Logs and Events
f) CodePipeline, CodeCommit and Config
Which two IAM entities must be included in an execution role for a Lambda function to interact with other services?
a) an IAM policy defining the actions that can be taken by the function
b) a Trust policy granting AssumeRole permission to the function
Does S3 trigger Lambda synchronously or asynchronously?
Asynchronously
Does API Gateway trigger Lambda synchronously or asynchronously?
Synchronously
Which seven languages are supported natively by Lambda?
C#, Go, Java, Node.js, PowerShell, Python, and Ruby
What are the four Elastic Beanstalk deployment approaches?
a) all at once (default)
b) rolling, one batch at a time
c) rolling with additional batch
d) immutable, where a full set of new instances are spun up and given health checks before cutover