EC2 Flashcards
What are the 3 main states of EC2 instances?
Running
Stopped
Terminated
What is true of instance store volumes?
They are temporary (ephemeral) storage
Data stored on them can be lost when an EC2 instance stops and starts
Data stored on them can be lost if a hardware failure occurs
If the AZ which an EC2 instance is running in fails, what happens to the instance?
The instance will remain failed until at least when the AZ recovers.
Can an EC2 instance be migrated between AZ’s?
No - but an AMI can be created from an instance and used to provision a clone in another AZ
What kind of use-case suits using IO1 EBS volumes?
When maximum consistent IOPS is a priority and data is important.
How many instances can a GP2 volume be attached to at the same time?
1
Can EBS volumes be attached to instances in any AZ?
No, only instances in the same AZ as the volume.
When should instance store volumes be used?
For replaceable data
For temporary data
For max IO
If you have a short term workload which needs the cheapest EC2 pricing but can’t tolerate interruption which billing model should you pick?
On-Demand
You need to deploy multiple EC2 Linux instances that will provide your company with virtual private networks (VPN’s) using software called OpenVPN. What would be the most efficient two solutions?
- Select a regular Linux AMI and bootstrap it using user data that will install and configure the OpenVPN package on the instance and use it for your VPN instances.
- Search the AWS Marketplace to see whether there is an official AMI provided and supported by the OpenVPN company.
As part of your company’s long-term cloud migration strategy, you have VMWare virtual machine in your local infrastructure that you’d like to copy to your AWS account and run as an EC2 instance. What will be the two necessary steps?
1.Import the virtual machine using VM Import/Export
2. Select the imported VM from among your private AMI’s and launch an instance.
Your AWS CLI command to launch an AMI as an EC2 instance has failed, giving you an error message that includes “InvalidAMIID.NotFound”. What is the most likely cause?
The AMI you specified exists in a different region than the one you have currently specified.
The sensitivity of the data your company works with means that the instances you run must be secured through complete physical isolation. What should you specify as you configure the new instance?
Dedicated Host Tenancy
Normally, two instances running m5.large instance types can handle the traffic accessing your online e-commerce site, but you know that you will face short, unpredictable periods of high demand. What two things should you implement?
- Configure Autoscaling
- Purchase two m5.large reserve instances and as many on-demand instances as necessary.
In the course of a routine infrastructure audit, your organization discovers that some of your running EC2 instances are not configured properly and must be updated. What configuration detail cannot be changed on an existing EC2 instance?
AMI
What EBS options will you need to keep your data-hungry application that requires up to 20,000 IOPS happy?
Provisioned-IOPS SSD
You need to restrict access to your EC2 instance-based application to only certain clients and only certain targets. What three attributes of an incoming data packet are used by a security group to determine whether it should be allowed through?
- Network port
- Source address
- Network protocol
How are IAM roles commonly used to ensure secure resource access in relation to EC2 instances?
A role can give users and resources permission to access the EC2 instance.
IAM roles define how resources access other resources.
You have an instance running within a private subnet that needs external network access to receive software updates and patches. What two products can securely provide that access from a public subnet within the same VPC?
- NAT Instance
- NAT Gateway
NAT Instances and NAT Gateways are AWS tools for safely routing traffic between private and public subnets and from there, out to the Internet.
What do you have to do to securely authenticate to the GUI console of a Windows EC2 session?
Use the private key of your key pair to retrieve the password you will use to log in.
The client computer in an encrypted operation must always use the private key to authenticate. For EC2 instances running Windows, you retirieve the password you will use for the GUI login using your private key.
Your application deployment includes multiple EC2 instances that need low-latency connections to each other. What AWS tool will allow you to locate EC2 instances closer to each other to reduce network latency.
Placement Groups
Placement groups allow you to specify where your EC2 instances will live.
To save configuration time and money, you want your application to run only when network events trigger it but shut down immediately after. What AWS tool will do that for you?
AWS Lambda
Lambda can be used as such a trigger.
What AWS service launches and manages infrastructure for your application that will remain running until you manually stop it?
AWS Elastic Beanstalk
What service will allow you to quickly copy a virtual machine image from your local infrastructure to your AWS VPC?
VM Import/Export