AWS EC2 Instance Flashcards
This it to have mastery of the concepts of EC2 Instances
Which EC2 Purchasing Option can provide you the biggest discount, but it is not suitable for critical jobs or databases?
SPOT Instances
What should you use to control traffic in and out of EC2 Instances?
Security Groups
How long can you reserved EC2 Reserved Instances?
1 to 3 years only
You would like to deploy a High-Performance Computing HPC application on EC2 Instances. Which EC2 Instance type should you use?
Compute Optimized
Which EC2 Purchasing Option should you use for an application you plan to run on a server continuously for 1 year?
Reserved Instances
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?
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.
Which EC2 Instance Type should you use for a critical application that uses an in-memory database.
Memory-Optimized
Which EC2 Instance Size has 1 vCPU?
t2.small
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.
Instance Profile
True or False:
Security Groups can be attached to only one EC2 Instance
False, It can be attached to multiple EC2 Intances within the same AWS Region/VPC
True or False:
When you stop and then start an EC2 instance, it can change its public IP Address
True
Logical component in a VPC that represents a virtual Network card
ENI or Elastic Network Interface
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
EC2 Hibernate
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?
Allocate an Elastic IP and Assign it in your EC2 Instance.
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?
Cluster Placement Group