Compute: Amazon EC2 and AWS Lambda Flashcards

1
Q

Administrator needs to check if any EC2 instances will be affected by scheduled hardware maintenance

A

Check the AWS Personal Health Dashboard

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

Scheduled hardware maintenance will affect a critical EC2 instance

A

Stop and start the instance to move it to different underlying hardware

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

When launching an EC2 instance the InsufficientInstanceCapacity error is experienced

A

This means AWS does not currently have enough capacity to service the request for that instance type. Try a different AZ or instance type

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

The error InstanceLimitExceeded is experienced when launching EC2 instances

A

EC2 instance limits have been reached, need to contact support to request an increased limit

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

System status checks are failing for an EC2 instance

A

Stop and start again to move to a new host

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

For security and compliance reasons EC2 instances must not be able to access the internet

A

Launch them in a private subnet without a NAT gateway or NAT instance

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

EC2 instances must communicate with an internetbased service which whitelists a single source IP address

A

Place the instances behind a NAT gateway as the device will have a single elastic IP address that can be whitelisted

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

A distributed app is running on EC2 and can handle processing interruptions. Determine the best pricing model to use

A

Use Spot instances as the application can handle it if the instances are terminated

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

Define AWS’ responsibilities for EC2 hardware

according to the AWS Shared Responsibility Model

A

AWS are responsible for managing the health of the underlying hosts

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

A nightly job runs on EC2 and stores results in S3. Takes 2 hours using multiple on-demand instances. If it fails, it must start again. Determine the best pricing model to use

A

Request a Spot block for time period required

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

An asynchronous process runs on EC2 and feeds data to a data warehouse for weekly/monthly reporting. Determine the best pricing model to use

A

Use Spot instances as the asynchronous nature of the reporting means the app can handle interruption if AWS need the capacity back

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

Need to track EC2 and on-premise computer memory utilization

A

Install the unified CloudWatch agent on both EC2 and on-premises servers

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

Amazon EC2 Auto Scaling automatically terminates unhealthy instances but Administrator needs to keep the logs for subsequent analysis

A

Install the CloudWatch agent to stream logs to CloudWatch Logs

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

There is a suspected memory leak on an Amazon EC2 instance

A

Install the CloudWatch agent to monitor memory utilization

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

An AWS Lambda function is expected to see a large increase in traffic and must scale

A

Ensure the concurrency limit is higher than the

expected simultaneous executions

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

Need to invoke an AWS Lambda function every 15 minutes

A

Create an event rule in Amazon CloudWatch events to execute the function periodically