Ultimate AWS associate Flashcards

1
Q

What problems exist with a traditional IT approach (owning / renting infrastructure)?

A

Costs for renting, power, cooling, maintenance, adding and replacing hardware takes time + cost, limited elasticity on demand, monitoring costs, security (physical and software), environmental disasters

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

What is cloud computing?

A

ON-DEMAND delivery of compute, power, database storage, applications and other IT resources. It is Pay-as-you-go, specific to your needs. Almost instant access.

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

Deployment models, Private vs

A

Private: single organization - complete control, security for sensitive needs.
Public: Cloud resource owned and operated by third-party cloud service provider. AWS
Hybrid: Keep some servers on premise, extend some capabilities into the cloud.

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

Five characteristics of cloud computing?

A
  1. On-demand self service: no human interaction required to access.
  2. Broad network access: Resources available over the network, accessed by diverse client platforms
  3. Multi-tenancy and resource pooling: multiple customers can share same infrastructure + apps with security and privacy & serviced from the same physical resources.
  4. Rapid elasticity and scalability (major advantage)
  5. Measured service (pay for use)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Six advantages of the cloud

A
  1. Trading capital expensive for operational (not buying infra, paying for using instead)
  2. Benefit from economies of scale from large infra provider
  3. Stop guessing capacity, scaled on measured usage.
  4. Increased speed + agility
  5. Stop spending money running and maintaining data centers
  6. Going global in minutes leveraging AWS infra
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Problems we solve:

A

We are flexible, cost effective, scalable, elastic and highly available while being agile (rapidly developing, testing and launching software)

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

Types of cloud computing?

A

IaaS: providing building blocks for cloud IT, provides networking, computers, data storage
PaaS: Everything managed by service provider, all you need is to focus on deployment and management of Apps.
SaaS: Completed product, run and managed by service provider for you to use

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

Three different pricing models, compute, storage, data give a brief description of each

A

Compute, pay for compute time.
Storage - data stored in cloud.
Data transfer (only when it is going OUT) - data IN is free.

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

How do you choose an AWS region?

A

It depends,
Compliance: governments want data to be local? can’t leave?
Proximity: does the application need reduced latency?
Available services: new services and features aren’t available in every region
Pricing: varies from region to region.

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

What is comprised of an availability zone?

A

One or more discrete data centers with redundant power, networking and connectivity. Each being separate from each other to avoid disasters, all connected with high bandwidth, low latency networking.

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

What are points of presence?

A

Edge locations, it delivers to end users with lower latency by caching information that is frequently accessed.

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

What is a region vs an availability zone?

A

AWS Regions are separate geographic areas. AWS Regions consist of multiple, physically separated and isolated Availability Zones

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

What is the name for a IAM policy assigned only to an individual?

A

This is an inline policy

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

An IAM policy document consists of ….

A

A version, statement (Sid: statement id, effect (allow/deny), principle (account/user/role), action (actions that are allowed), resource: what can be accessed, AND lastly, condition: for when policy is in effect.

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

How can you increase security for an IAM user?

A

setting a password policy, password expiry, prevent password re-use, activating MFA.

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

The three options to access AWS?

A
  1. Management console
  2. Command Line Interface protected by access keys
  3. Software Developer Kit (SDK) protected by access keys
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

How do you create access keys for CLI

A

IAM -> Users -> username -> create access key
Asks for use case
create access key, download .csv file
in CLI it will just ask for these details. Enter them. Done.

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

Cloudshell vs CLI

A

AWS CloudShell is a browser-based shell that you can launch directly from your AWS console and run the standard CLI commands. CloudShell is an extension to the AWS CLI and offers many advantages compared to AWS CLI.

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

An EC2 instance needs to action something what do we need to do?

A

the EC2 instance will require permission given by an IAM role. IAM roles can be given to services.

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

What does an IAM credential report show?

A

All account’s users and the status of their credentials

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

Access advisor would be used for what purpose? what kind of ‘level’ is this? individual, account, user, group?

A

shows service permissions granted to a user and when those services were last accessed. User-level.

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

Shared responsibility model for IAM?

A

I am responsible for creating users, groups, roles, policies management and monitoring, using MFA on all accounts, rotating keys, IAM tools to apply appropriate permissions, analyze access patterns and review permissions.

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

List two security tools for IAM

A

IAM Credentials report (all account’s users and the status of their credentials) and the access advisor (service permissions granted to a user and when last accessed)

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

List the capabilities surrounding EC2

A
  • Renting virtual machines (EC2)
  • Storing data on virtual drives (EBS)
  • Distributing load across machines (ELB)
  • Scaling services using an auto-scaling group (ASG)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Purpose of EC2 User data? examples?

A

Bootstrapping, to automate EC2 boot tasks, only run once at the instance first start. Installing updates, software, common files, etc. Runs via root user.

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

what are the naming conventions for Ec2? m5.2xlarge as an example

A

m: instance class
5: generation (AWS improves these over time obv)
2xlargE: size within the instance class.

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

EC2 instance types? list some examples

A

General purpose, compute optimized (ML, gaming server, high performance web servers, batch processing workloads etc), memory optimized (fast performance for workloads, processing large data sets in memory) , storage optimized (SQL databases, cache for in memory databases, data warehousing applications etc)

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

What are firewalls on an EC2 instance? how do firewalls interact with EC2?

A

They are security groups. They interact as rules and can be attached to more than one EC2 instance & an instance can have multiple security groups as well.

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

Ports to know for exam 22, 21, 22 (another), 80, 443, 3389

A

SSH, FTP, SFTP, HTTP & HTTPS, RDP

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

What is EC2 instance connect?

A

an alternative to SSH, instead using the web browser, we don’t need to manage SSH keys. Still needs an SSH port open on inbound security groups.

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

If trying to perform a command on an EC2 instance but access denied what to do?

A

Check IAM roles, maybe permission isn’t granted to that EC2 instance.

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

EC2 on demand instances give a description

A

Pay for what you use.
Highest cost but no upfront.
No long-term commitment.
Recommended: Short-term uninterrupted workloads.

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

Reserved instances give some info pricing

Compared w/ EC2, info on what, time, payment options, other options and recommendation

A

up to 72% discounts compared w/ on-demand.
You reserve instance type , region, OS

Reservation period: 1 year or 3 years+

Can be no upfront or upfront (all upfront, most discount)

Into a region or zone,

Can buy/sell in marketplace if not needed anymore.

Recommended for steady state applications, like databases

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

EC2 savings plan instance
Discounts, usage options, instance use, location

A

Discount based on long-term usage.
Commit to certain usage option $10 hour for 1/3 years etc.
Any usage beyond that is at on-demand pricing.
Locked to specific region and instance family (T2, M5 etc) but can change the size, OS and Tenancy

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

EC2 spot instances pros, cons

A

Biggest discounts 90% compared to on-demand
You can lose at any point of time if max price < current spot price?
Most cost-efficient instances in AWS.
Recommended for: Batch jobs, data analysis, image processing, any distributed workloads
NOT for critical jobs/processes/databases.

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

EC2 dedicated hosts are.. and allow?

A

a physical server with an EC2 instance capacity fully dedicated to you
allows you to address compliance reqs, use own software licenses
Can pay on-demand and reserved options
Useful for software that have complicated licensing models or companies that have strong regulatory needs/compliance.

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

In an EC2 instance, what is referred to as being the OS and firewall?

A

This is the AMI and the Security group

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

How do you set up the EC2 user data?

A

This is done at the start by entering a script, it is the bootloader of downloads, installs etc.

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

How long can you have an EC2 reserved instance?
A) 6 months
B) 1 year
C) 1 to 3 years
D) 1 or 3 years
E) 3 years

A

Answer is D 1 or 3 years, not any time inbetween

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

Can EC2 instances be optimized for users? how?

A

Depending on the needs, a compute, memory or storage optimzed EC2 instance can be created.

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

Reserved vs spot instances?

A

Reserved are good for long uninterrupted workloads. Spot for short, quick and potentially interrupted, therefore not critical workloads.

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

Whats special about an EBS volume? (And what is it?)

A

Elastic block storage, the data persists after the EC2 instance is terminated. It is a network attached drive. Kind of like a network USB stick

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

How many instances (at this course level) can EBS volumes be attached to at a time? and AZ consideration?

A

Just one. Similarly, only a specific AZ. But you can have 2 EBS volumes on one instance. They don’t need to be attached at all times. There is something later called EBS Multi-attach, but that is more advanced.

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

Why would you snapshot an EBS volume? give one reason

A

In order to move the volume across an AZ. Snapshot and replicate (?)

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

What is an option we can give to an EBS volume to control its behviour?

A

Delete on termination or do not delete on termination.

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

After taking a snapshot how can you make it cheaper to store? how long to restore?

A

by moving it to an “Archive tier” 75% cheaper. 24-72 hours.

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

Do snapshots expire?

A

Yes, you can specify retention from 1 day to 1 year.

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

Describe the use of EC2 image builder

A

Automate the creation of VMs. AUtomate create, maintain and validate and test
Can be run on a schedule

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

What are the costs of EC2?

A

Free, you only pay for the resources. Paying for the EC2 instances it creates. When AMi is created, paying for storage of AMI.

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

You need something faster than an EBS what do you use?

A

An EC2 instance store. Better I/O performance. However they lose their storage if stopped.

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

What is good for an instance store?

A

Buffer, cache, scratch data, temp content

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

What is special about EFS?

A

Can be mounted to 100s of EC2 at a time. It is highly available, expensive, scalable. Multi-AZ

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

How do save on EFS?

A

Using EFS infrequent access. up to 92% lower cost. Will automatically move files to IA based on last time accessed. This is defined in the life cycle policy.

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

What is the lifecycle policy on EFS?

A

After X number of days move to X location (EFSIA)

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

In EC2 storage what is AWS responsibility?

A

Infrastructure, replication of data for EBS volumes and EFS drives, replacing faulty hardware, ensuring employees cannot access your data.

56
Q

What is responsibility of customer in EC2 storage?

A

Settiing up/backing up data (snapshots), setting up data encryption, responsibility of any data on the drives, understanding the risk of using EC2 instance store.

57
Q

Amazon FSx what is it and used for?

A

it is a fully managed service. File systems X, launch 3rd party - high performance file systems on AWS. FSx for Lustre, FSx for windows file server

58
Q

FSx on windows file server is?

A

for windows instances. Fully managed, highly reliable and scalable windows native shared file system. Supports SMB protocol and windows NTFS.

59
Q

FSx for Lustre

A

Fully managed, high performance computing (think FSx for lustre) lustre = linux and cluster, used for high performance such as machine learning, analytics, video processing, financial modelling, 100s GB/s etc.

60
Q

What is attached/mapped to a specific availability zone?

A

An EBS volume

61
Q

What can be attached to multiple EC2 instances across multiple AZs?

62
Q

Which load balancer provides Layer 7 protocols, HTTP routing, static DNS?

A

Application load balancer.

63
Q

What does the network load balancer do?

A

TCP/UDP protocols (layer 4), high performance, millions of requests per second. Static IP through elastic IP

64
Q

What does the gateway load balancer do?

A

Routes traffic to firewalls that managed on EC2 instances. IDS, layer 3.

65
Q

Auto scaling group does:

A
  • Scales out (adds an EC2 instance) to match increasing loads
  • Scales in (removes)
  • Min and max number req of machines running
  • Register new instances to a load balancer.
66
Q

What is an autoscaling group?

A

its a group that is attached to a load balancer, it increases or decreases EC2 instances depending on its needs.

67
Q

How do we create an autoscaling group?

A

Click ASG -> create launch template -> Name it, describe it, choose AMI, instance type, no key pair needed, existing SG,

68
Q

What are all of the auto scaling strategies?

A

Auto Scaling Strategies include: Manual Scaling, Dynamic Scaling (Simple/Step Scaling, Target Tracking Scaling, Scheduled Scaling), and Predictive Scaling.

69
Q

What does a load balancer do when instances fail?

A

Load Balancers have the ability to handle instance failure by redirecting traffic to healthy instances.

70
Q

How does a load balancer handle back-end autoscaling?

A

It doesn’t, this is done by autoscaling groups

71
Q

How is amazon S3 advertised?

A

labelled as infinitely scaling storage, many websites use s3 as backbone

72
Q

Amazon S3 use cases?

A

backup and storage, disaster recovery, archive files, hybrid cloud storage, host applications & media, datalakes and big data analytics, software delivery and static websites etc.

73
Q

What are the files in S3 buckets called? and the name of buckets need to be?

A

Objects , globally unique (across all regions and accounts).

74
Q

Is S3 regional or global?

A

S3 looks global but the buckets are created in the region

75
Q

what does a bucketname look like

A

it-looks-like-this
No uppercase, underscores, 3-63 characters long, not an IP, start with lowercase letter or number, not start with prefix or end with suffix

UNIQUE across all accounts, regions etc.

76
Q

What is the Full path of an object?

A

The key. S3://my-bucket/my_file_example.txt
A prefix + object name

77
Q

Max size of S3 file? how to upload bigger?

A

5gb, if bigger has to be multi-part upload.

78
Q

What are the different types of security in S3?

A

User-based IAM policies
Resource - based

79
Q

What are the three resource-based policies?

A

Bucket policies (Bucket-wide rules)
Object access control list (finer grain)
Bucket access control list - less common

80
Q

What rights does an IAM principal have towards S3?

A

Can access, if allowed and no explicit deny.

81
Q

What does an S3 bucket policy look like?

A

It is a JSON document.

82
Q

IAM user wants to access S3 bucket, how?

A

Assign IAM permissions through a policy to S3 bucket.

83
Q

If we have EC2 instance and want to give access to S3 bucket. IAM users?

A

Use IAM roles, EC2 instance role with correct IAM permissions.

84
Q

S3s can be used to create websites?

A

True, static and dynamic.

85
Q

CRR vs SRR?

A

Cross region replication vs same region.

86
Q

How to set up asyncrhonous rep between CRR and SRR? two must haves.

A

Versioning MUST be enabled.
Need proper IAM permissions to read/write.

87
Q

Use case for replication? CRR

A

Compliance, lower latency, across accounts.

88
Q

Use case SRR?

A

Log aggregation, live replication between prod and test.

89
Q

What are all the different storage types for S3? hint: 2 standard, 3 something and 2 of something else.

A

Standard- general purpose
Standard - infrequent access
Glacier instant/flexible & deep
AIntelligent tiering
One zone infrequent access

90
Q

Define S3 durability

A

How many times an object will be lost on S3. Same for all storage classes.

91
Q

S3 standard / general purpose availability, use cases

A

99.99% availability
Used for frequent accessed data.
Low latency, high throughput
Sustains 2 concurrent facility failures
Use case: Big data analytics, gaming, content distribution,

92
Q

S3 infrequent access availability and use cases

A

lower cost than S3 standard, less frequently accessed. 99.9% availability (less than general, 99.99%)
Use case: disaster recovery, backups.

93
Q

S3 infrequent but ONE zone access?

A

High durability 99.9999% but ONLY in a single AZ. Lost if AZ destroyed. 99.5% availabilty. Secondary copies of backups.

94
Q

Glacier storage classes.. cold.. low cost object storage used for and pricing?

A

archiving and backup. Price for storage + object retrieval cost.

95
Q

S3 glaciier instant retrieval info:

A

Millisecond retrieval. Great for data accessed once a quarter. Min storage duration of 90 days.

96
Q

Glacier flexible retrieval info:

A

1-5min retrieval, 3-5 hours (standard) and 5-12 for bulk. min storage 90 days.

97
Q

Glacier deep archive..

A

12 hour retrevial for standard, 48 hours for bulk. Min 180 days.

98
Q

What is S3 intelligent tiering for? price?

A

Small monthly monitoring and auto tiering fees. Move objects automatically between access tiers based on usage. No retrieval charges. It just allows you to relax while it moves for you.

99
Q

Why would you use the IAM access analyzer?

A

To ensure only intended people have access to your S3 buckets. Can see resources in account that are shared by other entities.

100
Q

Responsibility of AWS for S3?

A

Infra, config and vulnerability analysis, compliance validation

101
Q

Responsibility of customer for S3?

A

S3 versioning, policies, replication setup/config, logging and monitoring, S3 storage classes, data encryption at rest and in transit.

102
Q

You need a high secure solution that is portable, to collect and process data at the edge, migrating data into and out of the AWS what do you use?

A

Snowcone or snowball edge. The cone is for smaller data needs. 8-14 TB vs 80-210 TB storage
migration up to terabytes, snowball up to petabytes.

103
Q

What issues might people turn towards the snow family?

A

Uses: those with limited connectivity, bandwidth, high network costs, shared bandwidth and stability issues. If it takes >1 week, snowball is good.

104
Q

Snowball pricing, how does it work?

A

Data IN into the snowball device to S3 is free.

You pay for the device usage and data transfer out of AWS.

Rest is on-demand, days of usage, or committed upfront where you pay monthly 1 year or 3 years.

105
Q

Why might a hybrid cloud be a good strategy?

A

Long cloud migrations.. security requirements, compliance, IT strategies

106
Q

functions of a AWS storage gateway?

A

Bridging between on-premise data and cloud data in S3, hybrid model solution.
Uses: Disaster recovery, backup & restore, tiered storage.

107
Q

What can you do with databases that other file storage options (EFS,EBS,EC2 instance store, S3) can’t accomodate?

A

Structuring the data, building indexes to efficiently query and search the data.

108
Q

What is a relational database?

A

Looks like excel spreadsheet, links between them. they relate to one another.

109
Q

What is a noSQL database and its benefit?

A

non relational database, built for specific data models, flexible for modern apps. Scalable (out), high performance and highly functional.

110
Q

RDS stands for? brief description:

A

relational database service. Managed DB service for SQL. Create databases in cloud such as: MySQL, oracle, aurora, etc.

111
Q

Why not just put a DB into an EC2 instance?

A

RDS has automated provisioning, patching, continous backups and restore, monitoring dashboards, scaling capability etc. Just can’t SSH into it..

112
Q

What is good about Aurora?

A

cloud optimized AWS proprietary tech, postgreSQL and MySQL both supported. Costs about 20% more than RDS. But more efficient, possibly cheaper.

113
Q

Why Aurora over RDS?

A

More cloud optimized, autoscaling based on actual usage, no capacity planning required, least management overhead, pay per second, good for infrequent intermittent or unpredictable workloads.

114
Q

Machines connect to WWW using what? (if using private IP)

A

a NAT and internet gateway (a proxy)

115
Q

What happens to the IP when an EC2 instance is stopped and started?

A

It can change

116
Q

Why would someone choose an elastic IP?

A

They want a fixed public IP for their instance (one at a time)

117
Q

What are alternatives (that are better) than an elastic IP?

A

Use of a DNS name and/or load balancer.

118
Q

A business wants control over EC2 instances, what do you suggest?

A

The use of placement groups.
1) Clusters, clustering instances into low latency group in single AZ.
2) Spread, spreading across underlying hardware (max 7 in group per AZ) - for more critical apps
3) Partition, spreads instances across many different partitions (different sets of racks) within an AZ, scales to 100s of EC2 instances

119
Q

Pros & cons of cluster groups?

A

Amazing network between instances. Great for big data jobs that require fast completion, apps requiring low latency. Cons, if one AZ fails they all go down.

120
Q

Spread group pros and cons?

A

Span across AZs, reduced risk using diff hardware, but limited to 7 instances per AZ

121
Q

What does a spread of placement groups look like?

A

Could have a few EC2 instances on different hardware in 1 AZ, 2 more on 2 different hardware, etc. 6 different hardware in total but 3 different zones

122
Q

How does partition groups work?

A

Up tp 7 partitions per AZ. Can span multiple AZs in same region. Up to 100s of EC2 instances. 1 Partition going down doesn’t effect others. Don’t share racks with other partitions. Access to partition info via metadata.

123
Q

A logical component in a VPC that represents a virtual network card is called..

A

an elastic network interface.

124
Q

What are the attributes of an ENI

A

Primary IPv4, one or more secondary IPv4.
One elastic IP per private IP
one public IPv4
One or more sec groups
A MAC address
You can attach ENI independently, and attach them on the fly for failover.
Bound to a specific AZ.

125
Q

EC2 stop, terminate and hibernate ?

A

Stop, data is kept in tact, terminate: any EBS volumes are gone (unless chosen not to), hibernate - whatever was in RAM, is preserved (instance boot is much faster), RAM state is in root EBS volume. When restarted, its like it never stopped. Useful for long processes that aren’t stopped, or services that take time to initialize but don’t want to wait.

126
Q

How to attach an ENI to an EC2 in another AZ

A

Elastic Network Interfaces (ENIs) are bounded to a specific AZ. You can not attach an ENI to an EC2 instance in a different AZ.

127
Q

How is the status of a load balancer determined ?

A

it is done via a healthcheck, which uses a port and route (/health), if it recieves a 200 response, then all ok.

128
Q

what does a security group for an instance with a load balancer look like?

A

0.0.0.0 would go into the load balancer, then the ec2 instance would only allow http traffic from the load balancer.

129
Q

How would you use an NLB and ALB together?

A

The NLB would go infront of the ALB. The NLB would route traffic, if HTTP/HTTPS to the ALB, and if TCP/UDP to the place its suppose to go to. Can help with high volume stuff and acting as an additional load balancer, for example routing it across many ALBs?

130
Q

Purpose of a gateway load balancer?

A

To act as a gate, sending traffic to 3rd party appliances, such as firewalls, IDS/IPS etc, then it is ‘OK’d and sent back to the gateway, then sent to the applications.

131
Q

What does a cross zone load balancer do?

A

distributes traffic across multiple AZs. If there are two EC2s in one AZ and 5 in another, it’ll distribute traffic evenly (if chosen) across all of them. Without it, two EC2 instances may take more traffic than the 5.

132
Q

How do certificates work with load balancers?

A

load balancers can hold the certificates and encrypt the information “in-flight”, load balancers, depending, can hold more than 1 certificate for more than 1 application/backend.

133
Q

What is a listener?

A

A listener is a process that checks for connection requests, using the protocol and port that you configure. Listener can be on a load balancer.

134
Q

Purpose of draining phase EC2 instance?

A

Done by the ELB settings. Allows for any remaining inflight connections to complete, between a time set, 1 to 36000 seconds. This is during the time it is deregistering