Technology Flashcards
What is EC2?
EC2 is a web service that provides resizeable compute capacity in the Cloud.
What are the storage options for EC2 instances?
The supported storage options are :
- Elastic Block Store (EBS)
- Elastic File System (EFS)
- Instance Store
What are the key attributes of EBS?
The key attributes of note for EBS are:
- The data persists when the instance is not running
- It is tied to one AZ
- It can only be attached to 1 instance in the same AZ
What is EBS recommended for?
EBS is recommended for
- Quickly accessible data
- Running a database on an instance
- Long-term data storage
What is EC2 instance store?
EC2 instance store is local storage that is physically attached to the host computer and cannot be removed.
What are the key attributes of EC2 instance store?
The key attributes of note for EC2 instance store are:
- Storage on disks physically attached to an instance
- Storage is temporary with the data being lost when the EC2 is stopped
- EC2 instance store is fast with high I/O speeds
What is EC2 Instance Store recommended for?
EC2 instance stores are recommended for:
- temporary storage data needs
- data replicated across multiple instances
What are the key attributes of Elastic File System (EFS)?
The key attributes of note for EFS are:
- It only supports the Linux file system
- It is accessible across different AZ’s in the same region
- It is more expensive than EBS
What is EFS recommended for?
EFS is recommended for:
- Main directories for business-critical apps
- Lift and shift existing enterprise apps
What are the steps in connecting to an EC2 using SSH?
The steps to connect to an EC2 using SSH are:
- generate a key pair
- use the private key to connect to the EC2 (public key)
When should you use On-Demand EC2 instances?
You should use on-demand instances when:
- you care about low cost without upfront payment or long-term commitment
- your applications have unpredictable workloads that can’t be interrupted
- your applications are under development
- your workloads will not run any longer than a year
When should you use Spot instances?
You should use Spot instances when:
- you are not concerned about the start or stop time of your application
- your workloads can be interrupted
- your application is only feasible at very low compute prices
When should you use EC2 Reserved Instances?
You should use EC2 Reserved Instances when:
- your application has a steady state usage and you can commit to 1 - 3 years
- you can pay money upfront in order to receive a discount on on-demand prices
- your application requires a capacity reservation(you need to sign a contract)
When should you use EC2 Dedicated Hosts?
You should use EC2 Dedicated Hosts when:
- you want to bring your own server-bound software licences
- you have regulatory or corporate compliance requirements around tenancy models
When should you use EC2 Savings Plans?
You should use EC2 Savings Plans when:
- you want to lower your bill across multiple compute services.
- you want the flexibility to change compute services, instance types, OS’s or regions
- savings can be shared across various compute services like EC2, Fargate and Lambda
What are the methods to access an EC2 instance?
EC2 instances can be accessed by:
- AWS Management Console
- Secure Shell (SSH)
- EC2 Instance Connect (EIC)
- AWS Systems Manager
What is EC2 auto-scaling?
EC2 auto-scaling adds or replaces EC2 instances automatically across AZs based on need and changing demand.
A developer wants to be alerted when an EC2 running their application is approaching 100% CPU utilization. Which service helps the developer do this in an automated way?
CloudWatch can monitor the state of your AWS resources and can notify you when an EC2 is approaching 100% utilization
How would you create and manage access keys for users that need to access AWS services from the AWS Command Line Interface (CLI)?
IAM allows you to create and manage access keys for an IAM user.
Under the AWS shared responsibility model, who is responsible for the configuration of infrastructure devices?
AWS maintains the configuration of its infrastructure devices. Don’t forget AWS is responsible for its global infrastructure elements: Regions, edge locations, and Availability Zones.
What pillar of the Well-Architected Framework would include the use of information gathered through a workload process evaluation to drive adoption of new services or resources when they become available?
This Performance Efficiency pillar focuses on the effective use of resources to meet demand.
In this pillar, you would use the information gathered through the evaluation process to actively drive adoption of new services or resources. You would also define a process to improve workload performance, and you would need to stay up-to-date on new resources and services.
A customer has created an Administrators group in IAM containing 5 users. What does the customer attach to the group to ensure all the users have the needed administrative access?
IAM policies can be attached to a group to ensure all users in the group have the same access.
AWS even has a managed policy, Administrator Access, you can use.
Which is the most efficient AWS feature that allows a company to restrict IAM users from making changes to a common administrator IAM role created in all accounts in their organization?
Service control policies (SCPs) within AWS Organizations provides central governance and management for multiple accounts.
Organization SCPs allow you to create permissions guardrails that apply to all accounts within a given organization.
You need to set a number range of EC2 instances to be made available to handle the load for your application. Which AWS service should you use?
AWS Auto Scaling will ensure you have the optimal number of EC2 instances to handle your application’s load, based on rules you specify.
The other services mentioned can help distribute load amongst existing resources, but they do not have the ability by themselves to create new resources.