9.0 AWS Services Flashcards

(40 cards)

1
Q

introduction to AWS

What does AWS stand for?

A

Amazon Web Services

Currently the most popular cloud platform, with a huge collection of services.

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

introduction to AWS

In AWS, what are the three geographical scopes?

A
  • Global
  • Region
  • Availability Zones

Different resources will be created in one of those scopes.

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

introduction to AWS

What do you receive for first time registration on AWS?

A

1-year free of basic resources

Some services are NOT included in the free tier.

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

Core AWS Services

What is the purpose of the IAM service in AWS?

A

to specify who or what can access which services and resources

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

Core AWS Services

How is access granted to services and resources using IAM?

A
  • Create and manage AWS Users and Groups
  • Users and Groups are assigned an IAM Role
  • Policies (set of permissions) are attached to the Role
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Core AWS Services

When you first set up an AWS account, what is the default user created in AWS IAM?

A

ROOT user

ROOT user has unlimited privileges.

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

Core AWS Services

What is a best practice regarding the ROOT user in AWS?

A

Don’t use it.
Instead, create an admin user with less privileges to manage the whole account.

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

Core AWS Services

What are the different types of IAM users?

A
  • Human Users
  • System Users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Core AWS Services

Give an example of an IAM system user.

A

A ‘jenkins’ system user is created and given permissions to deploy Docker containers on AWS.

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

Core AWS Services

What is the purpose of an IAM Group?

A

For granting access to multiple IAM users at once instead of trying to manage access individually

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

Core AWS Services

What is an IAM role?

A

A role is used to grant AWS services access to other AWS services.

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

Core AWS Services

How is an IAM role different from an IAM user?

A

Instead of being uniquely associated with one person, a
role is intended to be assumable by anyone who needs it

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

Core AWS Services

Can an IAM policy be assigned to AWS services?

A

No, not directly. They must be attached to an IAM role.

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

Core AWS Services

How do you grant AWS services access to other AWS services using IAM?

A
  1. Create IAM Role
  2. Assign Role AWS Service
  3. Attach Policies to that Role
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Core AWS Services

Explain how CSPs manage physical data centers.

A
  • CSPs are responsible for **securing **and managing physical data centers that run cloud resources.
  • Data centers are located all over the world and clustered together in Availability Zones.
  • One or more Availability Zones make up a Region.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Core AWS Services

Explain VPCs in AWS

A
  • Your own isolated network in the cloud
  • Virtual representation of phsyical network infrastructure
  • Default VPC in each Region
  • A VPC spans all AZs (Subnets) in that Region
  • Multiple VPCs in different Regions
  • Your resources always have to run in a VPC
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Core AWS Services

Explain Subnets in AWS

A
  • Range of internal IP addresses in your VPC
  • Like a private network inside a network
  • Subnet for each Availability Zone
  • Based on your firewall configuration you can have a private and/or public subnet
18
Q

How is communication allowed inside a VPC?

A

IP addresses

When you create a new resource, such as an EC2 instance, an IP address is assigned within a subnet’s default internal IP range

19
Q

Core AWS Services

What is the purpose of an Internet Gateway in AWS?

A

Connect the VPC or its subnets to the internet

20
Q

Core AWS Services

At a high level, how do you secure your resources in AWS?

A
  • Control access to your VPC
  • Control access to your individual server instances
21
Q

Core AWS Services

What is the difference between a NACL and Security Group when it comes to access control?

A
  • NACLs configures access on subnet level
  • Security Group configures access on instance level
22
Q

Core AWS Services

What does CIDR stand for?

A

Classless Inter-Domain Routing

Defines a range of IP addresses.

23
Q

Core AWS Services

What’s the easiest way to choose a CIDR block?

A

Use a subnet calculator

24
Q

Core AWS Services

What is the relationship between a subnet and CIDR block?

A

When you create a subnet, you specify the IPv4 CIDR block for the subnet, which is a subset of the VPC CIDR block

25
# Core AWS Services What is **Elastic Compute Cloud (EC2)**?
A virtual server in AWS, providing computing capacity
26
# Core AWS Services How do you **launch** an EC2 instance in AWS?
1. Choose OS Image 2. Choose capacity 3. Network configurations 4. Add storage 5. Add tags 6. Configure Security Group
27
# Core AWS Services How do you deploy a web app on an EC2 instance?
1. Create an EC2 instance on AWS 2. Connect to EC2 instance with ssh 3. Install Docker on remote EC2 instance 4. Run Docker container (docker login, pull, run) from private repository 5. Configure EC2 Security Group to access application externally from the browser
28
# Core AWS Services How do you connect to an EC2 instance via SSH?
ssh -i .ssh/docker-server.pem ec2-user@18.184.54.160 ## Footnote Private SSH key must be downloaded first
29
# Continous Deployment - Deploy to EC2 from Jenkins What is the most simple way to deploy a containerized app to an EC2 instance from Jenkins?
1. Connect to EC2 instance from Jenkins server via ssh (ssh agent) 2. Execute "docker run" on EC2 instance
30
# Continous Deployment - Deploy to EC2 from Jenkins How do you connect to an EC2 instance from Jenkins server via SSH?
1. Install SSH Agent Plugin within Jenkins UI 2. Configure global credentials (id=ec2-server-key, name=ec2-user, kind=SSH Username with private key) 3. Use credential in 'deploy' stage in Jenkinsfile
31
# Introduction to AWS CLI What is the **AWS Command Line Interface (CLI)** used for?
Interact with AWS account instead of using the UI ## Footnote Requires configuration with Access key ID and Secret Access Key.
32
# Introduction to AWS CLI How do you access the UI versus CLI?
* UI access through password * CLI access through Access key ID and Secret Access Key
33
# Introduction to AWS CLI How do you configure your AWS CLI?
`aws configure`
34
# Introduction to AWS CLI What is the AWS CLI **command structure**?
* aws command subcommand [options] * aws iam list-groups * aws = the base call to the aws program * command = the AWS service * subcommand = specifies which operation to perform
35
# Introduction to AWS CLI Give an example of launching a basic EC2 instance via AWS CLI
36
What are some container services on AWS to help deploy containerized workloads?
* Elastic Container Registry (ECR) * Elastic Container Service (ECS) * Elastic Kubernetes Service (EKS)
37
What is ECR?
Container registry to store, share and deploy container images
38
What is ECS?
AWS proprietary container orchestration
39
What is EKS?
Amazon's managed K8s service
40
What are best practices for SSH keys?
* Keep your .pem file in the standard location in ~/.ssh/ with 400 permissions * Do not share these .pem files with co-workers. Private keys should be private to each user, generated by them. * Each user should generate their own SSH keypair and their public key should be deployed to each system they need access to.