Compute EC2 Flashcards

1
Q

What are the 13 compute services in the compute services category, and provide a short description of each?

A

Insert short descriptions for each compute service)

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

Amazon Elastic Compute Cloud (EC2)

A

Virtual servers in the cloud for scalable compute capacity.

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

Amazon Elastic Container Service (ECS)

DOcker CONTAINERS

A

Fully-managed container orchestration for Docker containers. Amazon Web Services (AWS) Elastic Container Service (ECS) is a fully managed container orchestration service that enables you to run, deploy, and manage containerized applications on a scalable and secure infrastructure. ECS is an ideal choice for deploying microservices-based applications, batch processing jobs, and machine learning models.

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

Amazon Elastic Container Service for Kubernetes (EKS)

KUBERS WO KUBERS ON EC2

A

Managed Kubernetes service for containerized applications. ECS is a scalable container orchestration platform that allows users to run, stop, and manage containers in a cluster. EKS, on the other hand, helps teams to build Kubernetes clusters on AWS without having to install Kubernetes on EC2 compute instances manually.

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

AWS Lambda

A

Serverless computing for running code in response to events. AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of Amazon Web Services. It is designed to enable developers to run code without provisioning or managing servers. It executes code in response to events and automatically manages the computing resources required by that code.

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

AWS Elastic Beanstalk

PASS APP MGT

A

Fully-managed PaaS for easy deployment and application management.

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

AWS Batch

A

Fully-managed batch processing for computing workloads. AWS Batch allows developers, scientists, and engineers to efficiently process hundreds of thousands of batch and machine learning computing jobs on AWS.

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

Amazon Lightsail

A

Simple VPS with storage, network, and an OS for easy web app deployment. Amazon Lightsail
Build applications and websites fast with low-cost, pre-configured cloud resources

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

AWS Fargate

ENGINE W ECS EKS

A

Serverless compute engine for running containers without managing infrastructure. AWS Fargate is a serverless compute engine for containers that works with both Amazon Elastic Container Service (ECS) and Amazon Elastic Kubernetes (EKS).

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

Amazon EC2 Auto Scaling

A

Automatically adjusts the number of EC2 instances for availability and scaling. Amazon EC2 Auto Scaling helps you maintain application availability and define how to scale Amazon EC2 capacity to meet the demands of your application.

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

Amazon EC2 Image Builder

A

Fully-managed service for automating EC2 image creation and deployment. EC2 Image Builder simplifies the building, testing, and deployment of Virtual Machine and container images for use on AWS or on-premises.

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

AWS Outposts

A

Extends AWS infrastructure to on-premises or co-location environments. AWS Outposts is a family of fully managed solutions delivering AWS infrastructure and services to virtually any on-premises or edge location for a truly consistent hybrid experience. Outposts solutions allow you to extend and run native AWS services on premises, and is available in a variety of form factors, from 1U and 2U Outposts servers to 42U Outposts racks, and multiple rack deployments.

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

AWS Wavelength

A

Delivers ultra-low-latency applications for 5G devices at the edge.

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

AWS ParallelCluster

A

Open-source cluster management for deploying and managing HPC clusters.

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

Amazon Elastic Compute Cloud (EC2):

A

Virtual servers in the cloud that allow you to run applications. EC2 instances provide scalable compute capacity.

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

Amazon Elastic Container Service (ECS):

docker containerized app

A

A fully-managed container orchestration service for Docker containers. ECS makes it easy to deploy, manage, and scale containerized applications.

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

AWS Lambda:

run code wothout servers to events

A

A serverless computing service that lets you run code without provisioning or managing servers. Lambda runs your code in response to events and automatically scales.

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

Amazon Elastic Container Service for Kubernetes (EKS):

A

A managed Kubernetes service that simplifies the deployment, management, and scaling of containerized applications using Kubernetes.

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

AWS Fargate:

containerwithout infra

A

A serverless compute engine for containers that enables you to run containers without managing the underlying infrastructure.

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

AWS Elastic Beanstalk:

A

A fully-managed service that makes it easy to deploy and run applications in multiple languages. Elastic Beanstalk automatically handles the deployment details.

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

AWS Outposts:

onpremise 1u or 2 u

A

A fully-managed service that extends AWS infrastructure to on-premises locations. Outposts allows you to run AWS services on premises for a consistent hybrid experience.

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

What are some benefits of tagging?

Resource CAAC tracking

A

Tagging helps with resource organization, cost allocation, access control, and resource tracking)

23
Q

What is the default security group rule for outbound traffic?

A

The default security group allows all outbound traffic by default)

24
Q

What 2 things must a security rule specify?

type p2 sd

A

A security rule must specify the type of traffic (protocol and port range) and the source or destination of the traffic)

25
Q

What does a key pair consist of?

A

A key pair consists of a public key and a private key)

26
Q

What are your 3 options for a key pair that you must select before launching an EC2 instance? [Look for this in lab 3]

new existing non no ssh

A

Options include creating a new key pair, choosing an existing key pair, or not selecting a key pair for instances that do not require SSH access)

27
Q

What key pair do you use to securely connect to a Windows EC2 instance?

A

For Windows instances, you typically use a password instead of a key pair for authentication)

28
Q

What key pair do you use to securely connect to a Linux EC2 instance?

A

You use a key pair to connect to a Linux EC2 instance) Amazon EC2 supports ED25519 and 2048-bit SSH-2 RSA keys for Linux instances. You can have up to 5,000 key pairs per Region.

29
Q

Besides using the Launch Wizard, how else can you launch an EC2 instance?

Cloudformation, SDK, Cli wizard

A

EC2 instances can be launched using the AWS CLI, SDKs, or AWS CloudFormation)

30
Q

What assumptions regarding key pair and security groups are made when using the CLI to launch an EC2 instance?

SEK

A

The CLI assumes that the necessary key pair and security groups are configured)

31
Q

What are the minimum commands needed in order to launch an EC2 instance?

AMI ID VMI TYPE VPC ID SBNT ID SEC. GROUP ID EC2 KEY PAIR NAME SEC KEG

A

At a minimum, you need the aws ec2 run-instances command with the required parameters, such as AMI ID and instance type)
You need the following parameters to launch an EC2 instance:
The AMI ID to launch the instance.
The EC2 instance type, which must be compatible with the AMI ID.
The VPC ID and Subnet ID where the instance will launch.
A security group ID to assign to the instance. …
The EC2 key pair name.

32
Q

What types of things can user data do at the installation and configuration of an EC2 instance launch?

DAC SUC SS/CS

D: Downloading Files
A: Automation
C: Customization
S: Software Installation
U: System Updates
C: Configuration Settings
R: Running Startup Scripts
I: Integration with Cloud Services

A

User data can run scripts, install software, configure settings, etc., during the launch of an EC2 instanceSoftware Installation: User data can be used to install and configure software packages on the EC2 instance. This is often done by providing shell scripts or commands that install the required applications.

System Updates: You can use user data to ensure that the operating system and installed software are up to date by running update commands during the instance launch.

Configuration Settings: User data can set configuration parameters for various applications or services. For example, configuring a web server, database server, or any custom application settings.

Downloading Files: User data can include commands to download files from external sources, such as scripts, configuration files, or data files needed for the instance.

Running Startup Scripts: Any script or command that needs to be executed when the instance starts can be included in user data. This is helpful for automating tasks on boot.

Customization: User data allows for customization of the instance based on specific requirements, ensuring that the instance is set up according to your needs.

Automation: You can automate tasks such as user creation, security configurations, or any other repetitive actions that need to be performed during instance launch.

Integration with Cloud Services: User data can be used to integrate EC2 instances with other AWS services, such as attaching an instance to an Elastic Load Balancer, configuring instance metadata, etc.

33
Q

What is Amazon Elastic Block Store (EBS)?

A

Amazon EBS is a scalable, high-performance block storage service designed for use with EC2 instances)

34
Q

How does Amazon EBS differ from Amazon EC2 Instance Store (hint: ephemeral)? When would you use each?

A

EBS provides persistent storage, while EC2 Instance Store offers temporary, ephemeral storage. Use EBS when you need persistent storage; use EC2 Instance Store for temporary data that can be easily recreated)

35
Q

What other storage options are there that are NOT for the root volume?

A

Other storage options include Amazon S3, EFS, and additional EBS volumes attached to the instance)

36
Q

What is a tag, and what does a tag consist of?

KEY PAIR VALUE ID AND ORGANIZE AWS RESOURCES

A

A tag is a label consisting of a key-value pair used to identify and organize AWS resources)

37
Q

What are some benefits of tagging?

RESOURCE COAT CONTROL ORG ALLOCATE TRACK

A

Tagging helps with resource organization, cost allocation, access control, and resource tracking)

38
Q

What is the default security group rule for outbound traffic?

A

The default security group allows all outbound traffic by default)

39
Q

What 2 things must a security rule specify?

traffic2p source and dest

A

A security rule must specify the type of traffic (protocol and port range) and the source or destination of the traffic)

40
Q

What does a key pair consist of?

A

A key pair consists of a public key and a private key)

41
Q

What are your 3 options for a key pair that you must select before launching an EC2 instance? [Look for this in lab 3]

new existing without no ssh

A

Options include creating a new key pair, choosing an existing key pair, or not selecting a key pair for instances that do not require SSH access)

42
Q

What key pair do you use to securely connect to a Windows EC2 instance?

none a password

A

For Windows instances, you typically use a password instead of a key pair for authentication)

43
Q

What key pair do you use to securely connect to a Linux EC2 instance?

A

You use a key pair to connect to a Linux EC2 instance SSH (Secure Shell) and a key pair

44
Q

Besides using the Launch Wizard, how else can you launch an EC2 instance?

SAC CLOUD FORMATION

A

EC2 instances can be launched using the AWS CLI, SDKs, or AWS CloudFormation)

45
Q

What assumptions regarding key pair and security groups are made when using the CLI to launch an EC2 instance?

KEY PAIR SECURITY GROUP

A

The CLI assumes that the necessary key pair and security groups are configured)

46
Q

What are the minimum commands needed in order to launch an EC2 instance?

AMI ID type t2 key pair

A

At a minimum, you need the aws ec2 run-instances command with the required parameters, such as AMI ID and instance type Replace ami-xxxxxxxx with the ID of the Amazon Machine Image (AMI) you want to use.
Replace t2.micro with the desired instance type.
Replace YourKeyPairName with the name of your key pair.

47
Q

What are the different states in the EC2 instance lifecycle?

pr sss t

A

States include pending, running, stopping, stopped, shutting down, and terminated)

48
Q

What are the options for a stopped instance?

STaRt

A

You can start, terminate, or reboot a stopped instance)

49
Q

Can you recover a terminated instance?

A

No, once an instance is terminated, it cannot be recovered)

50
Q

If you need a persistent public IP address, what should you use?

A

Use an Elastic IP address)

51
Q

How many elastic IP addresses per Region are you permitted, and can this number be increased?

A

By default, you are allowed 5 Elastic IP addresses per AWS account per Region, and this limit can be increased)

52
Q

What is the IP address to review the latest metadata or the latest user data?

A

You can use http://169.254.169.254/latest/meta-data/ for metadata and http://169.254.169.254/latest/user-data/ for user data)

53
Q

What is Amazon CloudWatch, and how long does it maintain historical data? [Note: look for CloudWatch during lab 3]

dea lamb metrics logs alarms db ea

A

Amazon CloudWatch is a monitoring service. It retains historical data for two weeks by default Amazon CloudWatch is a monitoring and management service provided by Amazon Web Services (AWS). It allows users to collect and track metrics, collect and monitor log files, and set alarms. CloudWatch provides insights into the performance, health, and operational status of resources and applications running on the AWS platform.

Key features of Amazon CloudWatch include:

Metrics and Alarms: CloudWatch collects and monitors various metrics related to AWS resources and applications. Users can create alarms based on these metrics to receive notifications or take automated actions when specific conditions are met.

Logs Monitoring: CloudWatch Logs enables users to centralize and monitor logs from various AWS resources, applications, and custom sources. It allows for searching, analyzing, and visualizing log data in real-time.

Dashboards: CloudWatch Dashboards provide a customizable view of metrics and logs, allowing users to create visualizations and summaries for quick insights into the health and performance of their resources.

Events and Automation: CloudWatch Events allows users to respond to changes in AWS resources or application state by creating rules and triggering automated actions.

Retention of Historical Data: The retention period for historical data in Amazon CloudWatch can vary depending on the type of data. As of my last knowledge update in January 2022, the default retention period for CloudWatch metrics data is 15 months. This means that CloudWatch retains metric data for a rolling 15-month period.

54
Q

What is the difference between CloudWatch basic monitoring and detailed monitoring?

A

Basic Monitoring:

Granularity: Basic monitoring provides metrics at a 5-minute granularity. This means that CloudWatch collects data points for various metrics every 5 minutes.
Cost: Basic monitoring is included at no additional cost for many AWS services. However, there may be additional charges for some specific metrics or services.
Detailed Monitoring:

Granularity: Detailed monitoring provides metrics at a 1-minute granularity. This means that CloudWatch collects data points for various metrics every 1 minute.
Cost: Unlike basic monitoring, detailed monitoring is not included for free. It comes with an additional cost, and you pay for the increased frequency of data collection.
In summary, the key difference is in the frequency of data collection and the associated cost. Basic monitoring offers a 5-minute granularity at no additional cost (for many services), while detailed monitoring provides a more detailed 1-minute granularity but incurs additional charges. The choice between basic and detailed monitoring depends on your specific monitoring requirements and the level of granularity you need for your application’s performance metrics.