Compute (EC2, EBS, ELB, Lambda, Elastic Beanstalk) Flashcards

1
Q

What is the difference between a Lambda function policy and an execution role?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which four event sources are supported for poll-based mappings using an execution role? Are these mappings synchronous or asynchronous?

A

a) Kinesis
b) SQS
c) DynamoDB
d) Managed Streaming for Kafka

Synchronous

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the four EC2 pricing models and what are their characteristics?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the three types of Elastic Load Balancer?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does a 504 Error indicate?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name three EC2 security configuration tasks that the user is responsible for

A

a) security groups
b) private subnets
c) encryption options

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How can encryption at rest be configured for an EC2 instance?

A

By configuring encryption when the attached EBS volume is created

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which HTTP request header can be used to obtain the public IP address of the client when using an Elastic Load Balancer?

A

X-Forwarded-For

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which six service families are able to invoke a Lambda function asynchronously using a function policy?

A

a) S3
b) SNS and SES
c) IoT and IoT Events
d) CloudFormation
e) CloudWatch Logs and Events
f) CodePipeline, CodeCommit and Config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which two IAM entities must be included in an execution role for a Lambda function to interact with other services?

A

a) an IAM policy defining the actions that can be taken by the function
b) a Trust policy granting AssumeRole permission to the function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Does S3 trigger Lambda synchronously or asynchronously?

A

Asynchronously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Does API Gateway trigger Lambda synchronously or asynchronously?

A

Synchronously

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which seven languages are supported natively by Lambda?

A

C#, Go, Java, Node.js, PowerShell, Python, and Ruby

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are the four Elastic Beanstalk deployment approaches?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Where must Beanstalk .config files be stored?

A

In the .ebextensions directory in the top level of the application source code bundle

17
Q

Which two formats are supported by Beanstalk .config files?

A

JSON, YAML

18
Q

Which three application servers are supported by Beanstalk?

A
Apache Tomcat (Java Servlet)
Phusion Passenger (Ruby, Python, Node)
Mongrel Puma (Ruby)