AWS EC2 Instance Flashcards

This it to have mastery of the concepts of EC2 Instances

1
Q

Which EC2 Purchasing Option can provide you the biggest discount, but it is not suitable for critical jobs or databases?

A

SPOT Instances

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

What should you use to control traffic in and out of EC2 Instances?

A

Security Groups

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

How long can you reserved EC2 Reserved Instances?

A

1 to 3 years only

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

You would like to deploy a High-Performance Computing HPC application on EC2 Instances. Which EC2 Instance type should you use?

A

Compute Optimized

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

Which EC2 Purchasing Option should you use for an application you plan to run on a server continuously for 1 year?

A

Reserved Instances

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

You are preparing to launch an application that will be hosted on a set of EC2 Instances. The application needs some software installation and some OS packages need to be updated during the first launch. What is the best way to achieve this when you launch the EC2 Instances?

A

Write a bash script that installs the required software and updates to your OS, then use this script in EC2 User Data when you launch your EC2 instances.

EC2 User Data is used to bootstrap your EC2 Instances using bash script. The script can contain commands such as installing software packages, download files from the internet or anything you want.

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

Which EC2 Instance Type should you use for a critical application that uses an in-memory database.

A

Memory-Optimized

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

Which EC2 Instance Size has 1 vCPU?

A

t2.small

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

This servers as a container for an IAM Role that can use to pass role information to an EC2 instance when the instance starts. It allows you to grant permissions to resources and services in your AWS Account without having to store access keys directly on the instance.

A

Instance Profile

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

True or False:

Security Groups can be attached to only one EC2 Instance

A

False, It can be attached to multiple EC2 Intances within the same AWS Region/VPC

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

True or False:
When you stop and then start an EC2 instance, it can change its public IP Address

A

True

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

Logical component in a VPC that represents a virtual Network card

A

ENI or Elastic Network Interface

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

This is a feature of EC2 Instance where we can keep the data on disk intact in the next start.

The in-memory (RAM) state is preserved
The instance boot is much faster

A

EC2 Hibernate

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

You have launched an EC2 instance that will host a NodeJS appliation. After installing all the required software and configured your application, you noted down the EC2 instance public IPv4 so you can access it. Then, you stopped and started your EC2 Instane to complete the application configuration. After restart, you can’t access the EC2 Instance and you found that the EC2 instance public IPV4 has been changed. What should you do to assign a fixed IP4 to your EC2 Instance?

A

Allocate an Elastic IP and Assign it in your EC2 Instance.

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

You have an application performing big data analysis hosted on a fleet of EC2 Instance. You want to ensure your EC2 instances have the highest networking performance while communciating with each other. Which EC2 Placement group should you use?

A

Cluster Placement Group

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

You have a critical application hosted on a fleet of EC2 Instances in which you want to achieve maximum availability when there’s an AZ failure. Which EC2 Placement Group should you choose?

A

Spread Placement Group

17
Q

True or False:

Elastic Network (ENI) can be attached to EC2 Instances in another AZ

A

False

ENI are bounded to a specific AZ. You cannot attach an ENI to an EC2 Instance in a different AZ.

18
Q

The following are true regarding EC2 Hibernate, Except:

A
19
Q

To enable EC2 Hibernate, the EC2 Instance Root Volume must be what type?

A

EBS Volume and must be encrypted to ensure the protection of sensitive content.