EC2 Flashcards

(108 cards)

1
Q

What is EC2 Instance?

A

EC2 is a web service that provide resizable compute instance in the cloud.

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

What are available EC2 Pricing Models?

A
  1. On Demand Pricing.
  2. Reserved Pricing
  3. Spot Pricing
  4. Dedicated Host Pricing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

In which Scenario On Demand Pricing works?

A
  1. Users who don’t want up front payment or long term commitment.
  2. Application which has unpredicted workloads which cant be interrupted.
  3. Applications which are developed or tested for First time in AWS.”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

In which Scenario Reserved Pricing works?

A

Users are able to make upfront payment.

Applications with predictable work loads

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

In which Scenario Spot Pricing works?

A

Applications can be feasible only on low cost.
Applications which has feasible timings.
Users who want large amount of capacity on flexible timeline.

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

In which Scenario Dedicated Host works?

A

Dedicated Host is used where multi tenant virtualization is not applicable like regulatory requirement, Software license.

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

What are available EC2 Instance Types?

A

FIGHT DR MCPXZ AU

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

How AWS calculate Spot Instance Termination Charges?

A

“If AWS terminate the instance in a partial hour you will not be charged.
If User terminate the instance in a partial hour you will be charged.”

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

How to encrypt root volume?

A

“1. Root volume can be encrypted during Instance creation - Add Storage stage.
2. if encryption is not created during instance creation-
Encrypt snapshot while creating snapshot of root volume.
Create AMI on encrypted snapshot & create an instance out of it which will have encrypted root volume.”

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

How to protect accidental ec2 instance termination?

A

We need to select “Protect against accidental termination” option during EC2 instance creation.

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

What will happens to root volume when instance is terminated?

A

In General Root volume will be Deleted Automatically when instance is terminated

however in case of EBS you can persist the root volume after termination.

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

what is EBS?

A

Amazon Elastic Block Storage provide persistent block storage volume for EC2 instance like Hard drive.

EBS volumes can persist independently from the life of the instance.

It can be dynamically change the configuration of a volume attached to an instance.

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

What is Security Groups?

A

“Security Group act as a virtual firewall for EC2 instance.

Security Group control all inbound & outbound network traffic of EC2 instance.”

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

What are Different EBS Storage volume?

A
  1. General Purpose.
  2. Provisioned IOPS.
  3. Throughput Optimized.
  4. Cold Hard Disk Drive.
  5. Magnetic
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

EC2 comes under which group?

A

Compute Group

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

What is AMI?

A

Amazon Machine Image provides information required to launch an EC2 instance.

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

What is Cloud Watch?

A

Cloud watch is an monitoring service which monitor AWS resources & applications that run on AWS.

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

How long does it takes to implement security group changes?

A

Immediate

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

How to set EC2 Instance outbound rules?

A

EC2 Instance outbound rules can be set in security group.

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

How to block a port in security group?

A

You cant block a port in security group.
You can only allow a port in security group.
By default all ports are blocked in a security group.

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

what is default setting for security group?

A

By default all ports are blocked in a security group.

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

How many EC2 can we have in a security group?

A

1 to many

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

how many security group can we have in a EC2 instance ?

A

1 to many

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

can we have EBS volume & EC2 in different region?

A

No; We need to have EC2 & EBS in same region to operate fast.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
can we modify EBS volume with out stopping EC2 instance?
yes
26
what is snapshot?
Snapshots are point-in-time back up of data.
27
how multiple snapshot are taken?
Snapshots are incremental backups, which means that only the blocks on the device that have changed after your most recent snapshot are saved.
28
how to take snapshot of root volume?
EBS->Volume->Actions->Create Snapshot.
29
how to create AMI of your EC2 instance?
EBS->Volume->Actions->Create Snapshot. | EBS->Snapshot->Actions->Create Image.
30
how to move one EC2 to another AZ?
Create a Snapshot. Create a AMI. Create a EC2 instance from AMI in another AZ.
31
How to move one EC2 to another Region?
Create a Snapshot. Copy Snapshot to another region. Create a AMI. Create a EC2 instance from AMI.
32
what are AMI types?
``` Region specific AMI OS specific AMI 32bit / 64bit Architecture Specific AMI Launch Permission specific AMI Root Device Storage specific AMI ```
33
what is EPHEMERAL STORAGE?
Instance Store Volume is also called as Ephemeral storage.
34
What is ENI?
Elastic Network Interface is a virtual network card on AWS VPC.
35
What is ENA?
Elastic Network Adaptor enhance network performance of EC2 Instance.
36
What is EFA?
Elastic Fabric Adaptor - Used for High Performance Computing & ML application. We can do OS by pass in EFA."
37
What is Encrypted volume
Volumes whose data is Encrypted at REST.
38
Does Snapshot of encrypted root volume is encrypted?
Yes
39
Does Volumes created from Encrypted snapshot are encrypted?
Yes
40
Can you share encrypted snapshot?
No; Only unencrypted snapshot can be shared.
41
What is Spot Instance?
Amazon EC2 Spot Instance let you take advantage of unused EC2 capacity in AWS Cloud. Spot Instance are 90% cheaper compare to On demand pricing.
42
What is Spot Price?
Spot price is the maximum price you offer to pay for instance. Instance will be provisioned when spot price is below maximum spot price.
43
What is Spot Block?
Spot Blocks are used to stop instance termination if spot prices goes above max spot price.
44
In what scenarios Spot instance not good for?
Persistent Workloads. Database Critical Jobs.
45
In what scenarios Spot instance good for?
``` "Big Data CI/CD High performance computing web services image & media rendering" ```
46
What is Spot Fleets?
Spot Fleets are collection of spot instances.
47
What is Launch Pool?
Spot fleets will try and match target capacity with in your price limits.
48
What is EC2 Hibernate?
EC2 hibernation store RAM contents to EBS root volume. When you reboot instance previous RAM content will be restored automatically. This is fastest way of booting EC2 instance.
49
Which scenario EC2 Hibernate will be useful?
Services that take long time to initialize.
50
What is the Max no of days instance can be hibernated?
60 Days
51
What is Max RAM limit for EC2 Hibernate?
150 GB
52
EC2 Hibernate available for which type of instance?
On Demand & Reserved Instance.
53
List of items Cloud watch can monitor?
Compute: EC2 Instance, Auto scaling Groups , Elastic Load Balancer Network: Route 53 health Checks, CloudFront Storage: EBS Volume & Storage Gateway
54
What is AWS Cloud Trail?
AWS CloudTrail track user activity & API usage. | CloudTrail is all about Auditing.
55
What is Standard Monitoring time interval for CloudWatch ?
5 min
56
What is Detailed Monitor time interval for CloudWatch ?
1 min
57
What we can generate using CloudWatch?
Dashboards Alarms Logs Events
58
What is IAM Roles?
IAM role is an collection of specific permissions. | IAM role can be assigned to any users.
59
What is EC2 bootstrap scripts?
Scripts which is executed during instance creation.
60
What is Instance meta data?
Data about instance like Public & Private IP: Meta data: Http://169.254.169.254/latest/meta-data/ User data: Http://169.254.169.254/latest/user-data/"
61
What is EFS?
EFS - Elastic File System EFS is a file storage service for EC2 instance. EFS storage capacity is elastic; It can grow & shrink size automatically as we add & remove files."
62
What is NFS?
Network File System
63
How far EFS can scale?
EFS can scale up to Petabyte.
64
What is Amazon FSx for Windows?
It’s a fully managed Microsoft Windows File system. Used for windows based application. Built on Windows File Server.
65
What is Amazon FSx for Lustre?
It’s a fully managed File system optimized for high performance computing. Used for ML based application.
66
What are different types of EC2 placement groups?
1. Cluster Placement Group 2. Spread Placement Group 3. Partitioned Placement Group
67
What is Cluster placement group?
Cluster Placement Group is a group of EC2 instances which can run only on a Single AZ. Cluster Placement Group can not span multiple AZ. Cluster Placement Group is used for low network latency & High network throughput.
68
What is Spread Placement Group?
Spread Placement Group contain small group of EC2 instances which are placed on distinct hardware to reduce failures. Spread Placement Group can span multiple AZ."
69
What is Partitioned Placement Group?
Partitioned Placement Group spreads your EC2 instances across logical partitions such that groups of instances in one partition do not share the underlying hardware with groups of instances in different partitions. This strategy is typically used by large distributed and replicated workloads. Partitioned Placement Group can span multiple AZ.
70
What are Placement Group naming constraint?
Placement group names should be unique with in AWS account.
71
Can you move instance in/out of placement group using AWS Console?
NO it is allows only using AWS CLI / AWS SDK. | AWS Console cant move instance in/out of placement group.
72
What is HPC?
High Performance Computing
73
What are the main components of HPC?
Data Transfer Compute & Network Storage Automation & Orchestration
74
What is AWS Direct Connect?
AWS Direct Connect is a cloud service which establish dedicated network connection from your on-premises infrastructure to AWS. You can establish a private connection between your Data Center & AWS."
75
What is AWS Batch?
AWS Batch Run 1000s of Batch jobs in AWS.
76
What is AWS Parallel Cluster?
AWS Parallel Cluster is a cluster management tool that helps you to deploy and manage High Performance Computing (HPC) clusters on AWS.
77
How to achieve max Data transfer between On-premise datacenter to AWS?
Off Line Data Transfer: Snowball & Snowmobile. | On Line Data Transfer: AWS Data Sync & AWS Direct Connect.
78
How to achieve max Computing?
Create EC2 Instance that are GPU / CPU optimized. Create EC2 instance in (Spot Instance / Spot Fleets) Create EC2 instance Cluster Placement Groups
79
How to achieve max Network?
ENI - Elastic Network Interface ENA - Enhanced Network Adaptor EFA - Elastic Fabric Adaptor
80
How to achieve max Storage?
Instance Storage: EBS & Instance Store | Network Storage: S3, EFS & FSx for Luster"
81
How to achieve max Orchestration & automation?
AWS Batch & AWS Parallel Cluster.
82
What s AWS WAF?
It’s a web application firewall which monitor Http/https request for AWS CloudFront/Load Balancer/API gateway
83
EBS snapshot are backed up to s3 in what manner?
Incremental
84
To retrieve instance metadata or user data which ip address we need to use?
169.254.169.254
85
If I terminate EC2 instance; will EBS root volume persist?
No unless "Delete on termination" is unchecked for root volume.
86
When creating a new security group all inbound traffic is allowed by default?
False; During creation nothing is allowed.
87
Spread placement group can be deployed across multiple az?
Yes
88
if ebs volume is attached as an additional disk can I detach it without stopping instance?
Yes
89
which one provide least expensive EBS options?
Cold HDD
90
use of cluster placement group is ideal for?
High network throughput
91
what type of storage an ebs volume based on?
Block based
92
to help you manage ec2 you can assign your own metadata in the form of?
Tags
93
what is the aws cli command should is use to create snapshot of ebs volume?
aws ec2 create-snapshot
94
what are valid underlying hypervisor for ec2?
nitro & xen
95
which ec2 feature uses SR-IOV?
ENA
96
When updating a policy used by IAM role attached to EC2 instance; what need to happened for the change to get in effect?
Immediate
97
to enable encryption at rest using EC2 & EBS what we need to do?
encrypt storage
98
can spared placement group deploy across multiple AZ?
yes
99
when can you attach & detach IAM role on an EC2 instance?
"No Role Instance - Stopped/Running | Replace Role - Instance should be Running"
100
where in AWS infra EC2 is provisioned?
in AZ
101
can I delete snapshot of root device of EBS used by registered AMI?
No
102
which service would you use to run a general windows file server?
FSx for windows
103
standard reserved instance can be moved between region?
False
104
is it possible to perform API actions on an existing EBS snapshot?
Yes; you can use API,CLI or console to create snapshot, copy snapshot & create volume from snapshot
105
how to find public & private IP address of an EC2 instance?
169.254.169.254
106
What are Reserved Pricing Types?
1. Standard Reserved Instance. 2. Convertible Reserved Instance. 3. Scheduled Reserved Instance."
107
Which file service runs Windows Server Message Block
Windows FSx
108
Which file service runs Network File System?
EFS