EC2 Flashcards

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
Q

can we modify EBS volume with out stopping EC2 instance?

A

yes

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

what is snapshot?

A

Snapshots are point-in-time back up of data.

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

how multiple snapshot are taken?

A

Snapshots are incremental backups, which means that only the blocks on the device that have changed after your most recent snapshot are saved.

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

how to take snapshot of root volume?

A

EBS->Volume->Actions->Create Snapshot.

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

how to create AMI of your EC2 instance?

A

EBS->Volume->Actions->Create Snapshot.

EBS->Snapshot->Actions->Create Image.

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

how to move one EC2 to another AZ?

A

Create a Snapshot.
Create a AMI.
Create a EC2 instance from AMI in another AZ.

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

How to move one EC2 to another Region?

A

Create a Snapshot.
Copy Snapshot to another region.
Create a AMI.
Create a EC2 instance from AMI.

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

what are AMI types?

A
Region specific AMI
OS specific AMI
32bit / 64bit Architecture Specific AMI
Launch Permission specific AMI
Root Device Storage specific AMI
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

what is EPHEMERAL STORAGE?

A

Instance Store Volume is also called as Ephemeral storage.

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

What is ENI?

A

Elastic Network Interface is a virtual network card on AWS VPC.

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

What is ENA?

A

Elastic Network Adaptor enhance network performance of EC2 Instance.

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

What is EFA?

A

Elastic Fabric Adaptor - Used for High Performance Computing & ML application.
We can do OS by pass in EFA.”

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

What is Encrypted volume

A

Volumes whose data is Encrypted at REST.

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

Does Snapshot of encrypted root volume is encrypted?

A

Yes

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

Does Volumes created from Encrypted snapshot are encrypted?

A

Yes

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

Can you share encrypted snapshot?

A

No; Only unencrypted snapshot can be shared.

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

What is Spot Instance?

A

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.

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

What is Spot Price?

A

Spot price is the maximum price you offer to pay for instance.

Instance will be provisioned when spot price is below maximum spot price.

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

What is Spot Block?

A

Spot Blocks are used to stop instance termination if spot prices goes above max spot price.

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

In what scenarios Spot instance not good for?

A

Persistent Workloads.
Database
Critical Jobs.

45
Q

In what scenarios Spot instance good for?

A
"Big Data
CI/CD
High performance computing
web services
image & media rendering"
46
Q

What is Spot Fleets?

A

Spot Fleets are collection of spot instances.

47
Q

What is Launch Pool?

A

Spot fleets will try and match target capacity with in your price limits.

48
Q

What is EC2 Hibernate?

A

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
Q

Which scenario EC2 Hibernate will be useful?

A

Services that take long time to initialize.

50
Q

What is the Max no of days instance can be hibernated?

A

60 Days

51
Q

What is Max RAM limit for EC2 Hibernate?

A

150 GB

52
Q

EC2 Hibernate available for which type of instance?

A

On Demand & Reserved Instance.

53
Q

List of items Cloud watch can monitor?

A

Compute: EC2 Instance, Auto scaling Groups , Elastic Load Balancer
Network: Route 53 health Checks, CloudFront
Storage: EBS Volume & Storage Gateway

54
Q

What is AWS Cloud Trail?

A

AWS CloudTrail track user activity & API usage.

CloudTrail is all about Auditing.

55
Q

What is Standard Monitoring time interval for CloudWatch ?

A

5 min

56
Q

What is Detailed Monitor time interval for CloudWatch ?

A

1 min

57
Q

What we can generate using CloudWatch?

A

Dashboards
Alarms
Logs
Events

58
Q

What is IAM Roles?

A

IAM role is an collection of specific permissions.

IAM role can be assigned to any users.

59
Q

What is EC2 bootstrap scripts?

A

Scripts which is executed during instance creation.

60
Q

What is Instance meta data?

A

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
Q

What is EFS?

A

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
Q

What is NFS?

A

Network File System

63
Q

How far EFS can scale?

A

EFS can scale up to Petabyte.

64
Q

What is Amazon FSx for Windows?

A

It’s a fully managed Microsoft Windows File system.
Used for windows based application.
Built on Windows File Server.

65
Q

What is Amazon FSx for Lustre?

A

It’s a fully managed File system optimized for high performance computing.
Used for ML based application.

66
Q

What are different types of EC2 placement groups?

A
  1. Cluster Placement Group
  2. Spread Placement Group
  3. Partitioned Placement Group
67
Q

What is Cluster placement group?

A

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
Q

What is Spread Placement Group?

A

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
Q

What is Partitioned Placement Group?

A

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
Q

What are Placement Group naming constraint?

A

Placement group names should be unique with in AWS account.

71
Q

Can you move instance in/out of placement group using AWS Console?

A

NO it is allows only using AWS CLI / AWS SDK.

AWS Console cant move instance in/out of placement group.

72
Q

What is HPC?

A

High Performance Computing

73
Q

What are the main components of HPC?

A

Data Transfer
Compute & Network
Storage
Automation & Orchestration

74
Q

What is AWS Direct Connect?

A

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
Q

What is AWS Batch?

A

AWS Batch Run 1000s of Batch jobs in AWS.

76
Q

What is AWS Parallel Cluster?

A

AWS Parallel Cluster is a cluster management tool that helps you to deploy and manage High Performance Computing (HPC) clusters on AWS.

77
Q

How to achieve max Data transfer between On-premise datacenter to AWS?

A

Off Line Data Transfer: Snowball & Snowmobile.

On Line Data Transfer: AWS Data Sync & AWS Direct Connect.

78
Q

How to achieve max Computing?

A

Create EC2 Instance that are GPU / CPU optimized.
Create EC2 instance in (Spot Instance / Spot Fleets)
Create EC2 instance Cluster Placement Groups

79
Q

How to achieve max Network?

A

ENI - Elastic Network Interface
ENA - Enhanced Network Adaptor
EFA - Elastic Fabric Adaptor

80
Q

How to achieve max Storage?

A

Instance Storage: EBS & Instance Store

Network Storage: S3, EFS & FSx for Luster”

81
Q

How to achieve max Orchestration & automation?

A

AWS Batch & AWS Parallel Cluster.

82
Q

What s AWS WAF?

A

It’s a web application firewall which monitor Http/https request for AWS CloudFront/Load Balancer/API gateway

83
Q

EBS snapshot are backed up to s3 in what manner?

A

Incremental

84
Q

To retrieve instance metadata or user data which ip address we need to use?

A

169.254.169.254

85
Q

If I terminate EC2 instance; will EBS root volume persist?

A

No unless “Delete on termination” is unchecked for root volume.

86
Q

When creating a new security group all inbound traffic is allowed by default?

A

False; During creation nothing is allowed.

87
Q

Spread placement group can be deployed across multiple az?

A

Yes

88
Q

if ebs volume is attached as an additional disk can I detach it without stopping instance?

A

Yes

89
Q

which one provide least expensive EBS options?

A

Cold HDD

90
Q

use of cluster placement group is ideal for?

A

High network throughput

91
Q

what type of storage an ebs volume based on?

A

Block based

92
Q

to help you manage ec2 you can assign your own metadata in the form of?

A

Tags

93
Q

what is the aws cli command should is use to create snapshot of ebs volume?

A

aws ec2 create-snapshot

94
Q

what are valid underlying hypervisor for ec2?

A

nitro & xen

95
Q

which ec2 feature uses SR-IOV?

A

ENA

96
Q

When updating a policy used by IAM role attached to EC2 instance; what need to happened for the change to get in effect?

A

Immediate

97
Q

to enable encryption at rest using EC2 & EBS what we need to do?

A

encrypt storage

98
Q

can spared placement group deploy across multiple AZ?

A

yes

99
Q

when can you attach & detach IAM role on an EC2 instance?

A

“No Role Instance - Stopped/Running

Replace Role - Instance should be Running”

100
Q

where in AWS infra EC2 is provisioned?

A

in AZ

101
Q

can I delete snapshot of root device of EBS used by registered AMI?

A

No

102
Q

which service would you use to run a general windows file server?

A

FSx for windows

103
Q

standard reserved instance can be moved between region?

A

False

104
Q

is it possible to perform API actions on an existing EBS snapshot?

A

Yes; you can use API,CLI or console to create snapshot, copy snapshot & create volume from snapshot

105
Q

how to find public & private IP address of an EC2 instance?

A

169.254.169.254

106
Q

What are Reserved Pricing Types?

A
  1. Standard Reserved Instance.
  2. Convertible Reserved Instance.
  3. Scheduled Reserved Instance.”
107
Q

Which file service runs Windows Server Message Block

A

Windows FSx

108
Q

Which file service runs Network File System?

A

EFS