AWS EC2 Flashcards

(66 cards)

1
Q

EBS - SSD - IOPs

A
  • GP2 16000 IOPS

- IO1 - 64K IOPS

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

EC2 Hibernation

A
  • preserves in memory RAM on EBS
  • Must be less than 150gb
  • Can’t hibernate > 60 days
  • On-demand and Reserved
  • Windows, Linux AMI, Umbunto
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

If you delete an ASG, what happens to the instances?

A

The instances will be terminated and the ASG will be deleted.

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

EC2 ASGs can span AZs and Regions - true or false?

A

False… ASGs only span AZs not regions.

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

How would you ensure only traffic to EC2 instance from an ELB

A

configure the security group of the ec2 instances to allow only traffic from the ELB

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

Can you change instance size while running

A

Yes. Simple button push

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

Two methods for accessing meta data of ec2 instances

A

169.254.169.254/latest/meta-data

Metadata Query Tool

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

An elastic IP Address is public or private?

A

Public

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

Easy way to move a private network between two ec2 instances (primary and standby) in failure of the primary?

A

Use an ENI. Move on failure.

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

How does cross zone load balancing work with 1 instance in az1 and 4 instances in az2

A

All get 20%

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

How does load balancing work with 1 instance in az1 and 4 instances in az2 without cross zone balancing

A

50% in az1. And 50% in az2 split across 4 instances

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

Ec2 auto scaling picks the highest capacity policy if two events trigger at the same time. True or false

A

True

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

You can use an internet gateway ID as the custom source for a security group rule?

A

False

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

A recovered instance is identical to the original. Including Id. IPs. And metadata

A

True

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

Allows elb to complete inflight requests?

A

Connection draining

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

True or false, an ebs volume can be used normally while a snapshot is in progress?

A

True

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

Load balancer is not sending data to an instance, Why?

A

Instance has failed the elb health check

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

Can you Create a cloud watch alarm to reboot instances

A

True

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

Cold Attach

A

Instance is being launched

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

Hot attach

A

Instance is running

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

Warm attach

A

Instance is stopped

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

ASGs are only scaling out a portion of the instances …why?

A

VCPU based limits

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

You can change the security group when the instance is in a running or stopped state?

A

True

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

Default Configuration of the default NACL is

A

Allow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Default Configuration of a custom NACL is
Deny
26
Can you change a default security group
Yes
27
Can you delete the default security group
No
28
How do you allow a group of developers the ability to assume a role that allows access to aws services?
Create a policy that allows certain permissions needed by the devs Create a role using the policy just created Create a policy that allows that role to be assumed Attach the policy to the IAM group for devs
29
Can an IAM group assume a role
No
30
Assuming a role gives you permanent access
False. Roles grant temp access
31
What aws resources can assume a role
A role can be assumed by a human user or a machine principal, such as an Amazon Elastic Computer Cloud (Amazon EC2) instance or an AWS Lambda function
32
Auto scaling cooldown
Wait time scaling takes before takings action…. 5mins default
33
Allows a spot instance to run uninterrupted for 1 to 6 hours
Spot block
34
Default security group settings
Allow inbound from all within same group Allow all outbound
35
What are the rules of a new security group?
Inbound Deny | Outbound Allow All
36
What interfaces get DNS Hostnames using the default VPC?
Both Public and Private get Hostnames
37
What interfaces get DNS Hostnames using the non-default VPC?
Private gets a DNS Hostname | Public does not get a DNS Hostname
38
You can only attach an instance store to an EC2 instance at launch?
True.
39
Do all instance types support encryption?
No... all families do, but not all types within those families.
40
How can you optimize the EBS volumes attached to your EC2 instance?
Use EBS Optimized Instances
41
Adding an ASG to an ELB... what health checks should be enabled on the ASG?
- EC2 which is by default | - ELB - so that the ASG knows the ELB has marked the instance as unhealthy
42
Used to execute scripts from the console on all target EC2 instances
RUN Command
43
How to use a new AMI in a Launch Configuration
- Create a New Launch Config using the new AMI | - Update the ASG to use the new Launch Config
44
Placement group that enables workloads to achieve the low-latency network performance necessary for tightly-coupled node-to-node communication that is typical of HPC applications.
Cluster
45
Placement group where instances do not share the underlying hardware with groups of instances….This strategy is typically used by large distributed and replicated workloads, such as Hadoop, Cassandra, and Kafka.
Partition
46
Placement group that places a small group of instances across distinct underlying hardware to reduce correlated failures.
Spread
47
Do gp2 ebs volumes support multi-attach
No. Multi-Attach is supported exclusively on Provisioned IOPS SSD volumes.
48
Does hibernating an ec2 instance preserved an instance store volume or save the data
No
49
During rebalancing, asg launches new before termination of old?
True
50
Asg terminates unhealthy instances before launching new
True
51
You have an asg across 3azs… what is the min capacity to be highly available?
2
52
Used to customize dynamic ec2 configuration options
User data
53
EC2 instance in an Auto Scaling group is having some issues that are causing it to launch new instances based on the dynamic scaling policy. How to troubleshoot and stop the current scaling...
Suspend the scaling processes responsible for launching new instances Place the EC2 instance that is experiencing issues into the Standby state you can suspend a scaling process... no need to disable
54
The following are a few reasons why an instance might immediately terminate:
– You’ve reached your EBS volume limit. – An EBS snapshot is corrupt. – The root EBS volume is encrypted and you do not have permissions – The instance store-backed AMI that you used to launch the instance is missing a required part (an image.part.xx file).
55
Using IP addresses as targets allows load balancing any application hosted in AWS or on-premises using IP addresses
true
56
The logical ID is used to reference the resource in parts of the template for CloudFormation.
true
57
Lambda runtimes
``` Java C# Go Ruby Power shell Node is ```
58
Can instance volumes be used at boot volumes
Yes
59
Asg rebalancing launches new before terminating
True. Unlike unhealthy
60
Need DB with no write downtime?
Aurora multi master
61
Reasons asg might not terminate instances
In impaired stas Health grace period not expired Failed elb check
62
Asg de-registration delay can do what?
Delay the scaling in event allows the target to complete work
63
Can you use a launch configuration with multiple instance types?
No. Use a launch template?
64
When to use Enhanced networking
High throughput. 10gbs to 100gbs
65
Can you hibernate an ec2 with instance store and keep the data
No. You will lose the data
66
Status check failed_instance
Problems that require your attention…. Vs. “…_system” that require amz attention