Compute: Amazon EC2 and AWS Lambda Flashcards
Administrator needs to check if any EC2 instances will be affected by scheduled hardware maintenance
Check the AWS Personal Health Dashboard
Scheduled hardware maintenance will affect a critical EC2 instance
Stop and start the instance to move it to different underlying hardware
When launching an EC2 instance the InsufficientInstanceCapacity error is experienced
This means AWS does not currently have enough capacity to service the request for that instance type. Try a different AZ or instance type
The error InstanceLimitExceeded is experienced when launching EC2 instances
EC2 instance limits have been reached, need to contact support to request an increased limit
System status checks are failing for an EC2 instance
Stop and start again to move to a new host
For security and compliance reasons EC2 instances must not be able to access the internet
Launch them in a private subnet without a NAT gateway or NAT instance
EC2 instances must communicate with an internetbased service which whitelists a single source IP address
Place the instances behind a NAT gateway as the device will have a single elastic IP address that can be whitelisted
A distributed app is running on EC2 and can handle processing interruptions. Determine the best pricing model to use
Use Spot instances as the application can handle it if the instances are terminated
Define AWS’ responsibilities for EC2 hardware
according to the AWS Shared Responsibility Model
AWS are responsible for managing the health of the underlying hosts
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
Request a Spot block for time period required
An asynchronous process runs on EC2 and feeds data to a data warehouse for weekly/monthly reporting. Determine the best pricing model to use
Use Spot instances as the asynchronous nature of the reporting means the app can handle interruption if AWS need the capacity back
Need to track EC2 and on-premise computer memory utilization
Install the unified CloudWatch agent on both EC2 and on-premises servers
Amazon EC2 Auto Scaling automatically terminates unhealthy instances but Administrator needs to keep the logs for subsequent analysis
Install the CloudWatch agent to stream logs to CloudWatch Logs
There is a suspected memory leak on an Amazon EC2 instance
Install the CloudWatch agent to monitor memory utilization
An AWS Lambda function is expected to see a large increase in traffic and must scale
Ensure the concurrency limit is higher than the
expected simultaneous executions