Compute in the cloud Flashcards

1
Q

What is Amazon Elastic Compute Cloud abbreviation?

A

Amazon EC2

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

Do you pay for stopped or terminated EC2 instances?

A

NO

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

What does EC2 run on top of?

A

Runs on top of physical host machines

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

What is responsible for sharing the underlying physical resources?

A

Hypervisor

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

What is multitenancy?

A

Sharing underlying hardware between virtual machines

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

What does the hypervisor isolate?

A

The virtual machines from each other,as they share resources from the host.

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

Do you have control over the configuration of EC2 instances?

A

Yes

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

What do we call when we give EC2 more memory and more CPU?

A

Vertically Scaling

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

What model is EC2?

A

Compute as a service (CaaS)

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

Name some of the Amazon EC2 instance types?

A

General purpose
Computer optimized
Memory optimized
Accelerated computing
Storage optimized

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

What are general purpose instances used for?(EC2)

A

General purpose instances provide a balance of compute, memory, and networking resources. You can use them for a variety of workloads, such as:

application servers
gaming servers
backend servers for enterprise applications
small and medium databases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are compute optimized instances used for?(EC2)

A

Ideal for compute-bound applications that benefit from high-performance processors. Like general purpose instances, you can use compute optimized instances for workloads such as web, application, and gaming servers.

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

What are memory optimized instances used for?(EC2)

A

Designed to deliver fast performance for workloads that process large datasets in memory. In computing, memory is a temporary storage area. It holds all the data and instructions that a central processing unit (CPU) needs to be able to complete actions. Before a computer program or application is able to run, it is loaded from storage into memory. This preloading process gives the CPU direct access to the computer program.

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

What are accelerated computing instances used for?(EC2)

A

Use hardware accelerators, or coprocessors, to perform some functions more efficiently than is possible in software running on CPUs. Examples of these functions include floating-point number calculations, graphics processing, and data pattern matching.

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

What are storage optimized instances used for?(EC2)

A

Designed for workloads that require high, sequential read and write access to large datasets on local storage. Examples of workloads suitable for storage optimized instances include distributed file systems, data warehousing applications, and high-frequency online transaction processing (OLTP) systems

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

Which Amazon EC2 instance type is suitable for data warehousing applications?

Memory optimized

Storage optimized

General purpose

Compute optimized

A

Storage optimized

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

Which Amazon EC2 instance type balances compute, memory, and networking resources?

Memory optimized
Storage optimized
General purpose
Compute optimized

A

General purpose

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

Which Amazon EC2 instance type is ideal for high-performance databases?

Memory optimized
Storage optimized
General purpose
Compute optimized

A

Memory optimized

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

Which Amazon EC2 instance type offers high-performance processors?

Memory optimized
Storage optimized
General purpose
Compute optimized

A

Compute optimized

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

Amazon EC2 pricing. On-demand?

A

On-Demand Instances are ideal for short-term, irregular workloads that cannot be interrupted. No upfront costs or minimum contracts apply. The instances run continuously until you stop them, and you pay for only the compute time you use

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

EC2 Instance Savings Plans

A

AWS offers Savings Plans for a few compute services, including Amazon EC2. EC2 Instance Savings Plans reduce your EC2 instance costs when you make an hourly spend commitment to an instance family and Region for a 1-year or 3-year term. This term commitment results in savings of up to 72 percent compared to On-Demand rates. Any usage up to the commitment is charged at the discounted Savings Plans rate (for example, $10 per hour). Any usage beyond the commitment is charged at regular On-Demand rates.

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

Amazon EC2 pricing. Spot Instances

A

Spot Instances are ideal for workloads with flexible start and end times, or that can withstand interruptions. Spot Instances use unused Amazon EC2 computing capacity and offer you cost savings at up to 90% off of On-Demand prices.

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

Amazon EC2 pricing.Reserved Instances?

A

Reserved Instances are a billing discount applied to the use of On-Demand Instances in your account. There are two available types of Reserved Instances:

Standard Reserved Instances
Convertible Reserved Instances

You can purchase Standard Reserved and Convertible Reserved Instances for a 1-year or 3-year term. You realize greater cost savings with the 3-year option.

Standard Reserved Instances: This option is a good fit if you know the EC2 instance type and size you need for your steady-state applications and in which AWS Region you plan to run them. Reserved Instances require you to state the following qualifications:

Instance type and size: For example, m5.xlarge
Platform description (operating system): For example, Microsoft Windows Server or Red Hat Enterprise Linux
Tenancy: Default tenancy or dedicated tenancy

You have the option to specify an Availability Zone for your EC2 Reserved Instances. If you make this specification, you get EC2 capacity reservation. This ensures that your desired amount of EC2 instances will be available when you need them.

Convertible Reserved Instances: If you need to run your EC2 instances in different Availability Zones or different instance types, then Convertible Reserved Instances might be right for you. Note: You trade in a deeper discount when you require flexibility to run your EC2 instances.

At the end of a Reserved Instance term, you can continue using the Amazon EC2 instance without interruption. However, you are charged On-Demand rates until you do one of the following:

Terminate the instance.
Purchase a new Reserved Instance that matches the instance attributes (instance family and size, Region, platform, and tenancy).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Amazon EC2 pricing. Spot Instances?

A

Spot Instances are ideal for workloads with flexible start and end times, or that can withstand interruptions. Spot Instances use unused Amazon EC2 computing capacity and offer you cost savings at up to 90% off of On-Demand prices.

Suppose that you have a background processing job that can start and stop as needed (such as the data processing job for a customer survey). You want to start and stop the processing job without affecting the overall operations of your business. If you make a Spot request and Amazon EC2 capacity is available, your Spot Instance launches. However, if you make a Spot request and Amazon EC2 capacity is unavailable, the request is not successful until capacity becomes available. The unavailable capacity might delay the launch of your background processing job.

After you have launched a Spot Instance, if capacity is no longer available or demand for Spot Instances increases, your instance may be interrupted. This might not pose any issues for your background processing job. However, in the earlier example of developing and testing applications, you would most likely want to avoid unexpected interruptions. Therefore, choose a different EC2 instance type that is ideal for those tasks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Amazon EC2 pricing. Dedicated Hosts ?
Dedicated Hosts are physical servers with Amazon EC2 instance capacity that is fully dedicated to your use. You can use your existing per-socket, per-core, or per-VM software licenses to help maintain license compliance. You can purchase On-Demand Dedicated Hosts and Dedicated Hosts Reservations. Of all the Amazon EC2 options that were covered, Dedicated Hosts are the most expensive
26
Which Amazon EC2 pricing option provides a discount when you specify a number of EC2 instances to run a specific OS, instance family and size, and tenancy in one Region? Convertible Reserved Instances EC2 Instance Savings Plans Spot Instances Standard Reserved Instances
Standard Reserved Instances require you to specify: instance family and size platform description tenancy Region
27
Which Amazon EC2 pricing option provides a discount when you make an hourly spend commitment to an instance family and Region for a 1-year or 3-year term? On-demand EC2 Instance Savings Plans Spot Instances Reserved Instances
EC2 Instance Savings Plans
28
Describe scalability ?
Scalability Scalability involves beginning with only the resources you need and designing your architecture to automatically respond to changing demand by scaling out or in. As a result, you pay for only the resources you use. You don’t have to worry about a lack of computing capacity to meet your customers’ needs.
29
The AWS service that helps automatically to scale?
The AWS service that provides this functionality for Amazon EC2 instances is Amazon EC2 Auto Scaling.
30
What does Amazon EC2 Auto Scaling enables you to do ?
Amazon EC2 Auto Scaling enables you to automatically add or remove Amazon EC2 instances in response to changing application demand. By automatically scaling your instances in and out as needed, you can maintain a greater sense of application availability.
31
What are the two types of scaling approaches with Amazon EC2 Auto Scaling ?
Dynamic scaling and predictive scaling.
32
Dynamic scaling?
Responds to changing demand.
33
Predictive scaling ?
Automatically schedules the right number of Amazon EC2 instances based on predicted demand.
34
What does it mean to scale up?
Adding more power to the machines that are running
35
What does it mean to scale out?
36
What is load balancer?
An application that takes in requests and routes them to the instances to be processed.
37
In AWS what is the service name for load balancing?
Elastic Load Balancing ELB
38
Is Elastic Load Balancing regional construct?
Yes
39
Explain Tightly coupled architecture
Single component fails or changes, it causes issues for other components or even the whole system.
40
Explain Loosely coupled architecture
This is an architecture where if one component fails, it is isolated and therefore won't cause cascading failures throughout the whole system.
41
Amazon Simple Queue Service abbreviation ?
Amazon SQS
42
Amazon SQS stands for ?
Amazon Simple Queue Service
43
Amazon Simple Notification Service abbreviation ?
Amazon SNS
44
Amazon SNS stands for ?
Amazon Simple Notification Service
45
Which service allows you to send,store and receive messages between software components at any volume?
Amazon SQS / Amazon Simple Queue Service
46
How is called the data contained within a message ?
Payload
47
What is a payload?
The data that is contained within a message
48
Where are messages placed until they are processed?
SQS queue/s
49
What to we place in SQS queue/s ?
The messages (until we process them)
50
Amazon SNS works in similar way to Amazon SQS, but it work on the _____ model
Publish / subscribe to SNS topic
51
What is SNS topic / Simple Notification Service
Channel for messages to be delivered. You configure subscribes to that topic and finally publish messages for those subscribers
52
Give example what can be the subscribers to the SNS topic / Simple Notification Service ?
Subscribers can also be endpoints such as SQS queues, AWS Lambda functions, and HTTPS or HTTP web hooks.
53
What is monolithic application?
Application with tightly coupled components ( databases, servers, User Interface, business logic)
54
What will happen if a single component fails in monolithic application?
Possibly the entire application fails.
55
What is the microservices approach?
Loosely coupled application components so if one fails, the others continue with their work.
56
Which AWS service is the best choice for publishing messages to subscribers >Amazon Simple Queue Service (Amazon SQS) >Amazon EC2 Auto Scaling >Amazon Simple Notification Service (Amazon SNS) >Elastic Load Balancing
Amazon Simple Notification Service (Amazon SNS)
57
What does serverless mean?
You cannot see or access the underlying infrastructure or instances that are hosting your application. All of that (provisioning, scaling, high availability and maintenance perspective) are taken care of from AWS.
58
What is AWS Lambda ?
It allows you to upload your code into Lambda function, to configure a trigger and from there the service waits for that trigger
59
What does Amazon ECS stand for ?
Amazon Elastic Container Services
60
What is the abbreviation of Amazon Elastic Container Services ?
Amazon ECS
61
What does Amazon EKS stand for ?
Amazon Kubernetes Service
62
What is the abbreviation of Amazon Kubernetes Service ?
Amazon EKS
63
What virtualization is Docker using?
Opereating system level virtualization
64
What is a container?
A package for the code, where you package your application, its dependencies,as well as any configurations that is needs to run.
65
A package for the code, where you package your application, its dependencies,as well as any configurations that is needs to run. Or with what other words can we call all of this?
Container
66
A number of EC2 instances that are running containers are called ___?
Cluster
67
What will you use if you want to host traditional applications, have full access to the OS ?
Amazon EC2
68
What will you use if you want to host short running functions, service-oriented applications and event driven applications and you do not want to manage the underlying environment at all?
AWS Lambda
69
What FIRST you must choose if you want to run Docker container-base workloads on AWS?
Orchestration tool
70
Orchestration tools on AWS?
Amazon ECS or Amazon EKS
71
What is AWS Fargate ?
Serverless compute engine for containers. Works with Amazon ECS and Amazon EKS
72
You want to use an Amazon EC2 instance for a batch processing workload. What would be the best Amazon EC2 instance type to use? General purpose Memory optimized Compute optimized Storage optimized
Compute optimized
73
What are the contract length options for Amazon EC2 Reserved Instances? (Select TWO.) 1 year 2 years 3 years 4 years 5 years
1year and 3years
74
You have a workload that will run for a total of 6 months and can withstand interruptions. What would be the most cost-efficient Amazon EC2 purchasing option? Reserved Instance Spot Instance Dedicated Instance On-Demand Instance
Spot Instance
75
Which process is an example of Elastic Load Balancing? Ensuring that no single Amazon EC2 instance has to carry the full workload on its own Removing unneeded Amazon EC2 instances when demand is low Adding a second Amazon EC2 instance during an online store’s popular sale Automatically adjusting the number of Amazon EC2 instances to meet demand
Ensuring that no single Amazon EC2 instance has to carry the full workload on its own
76
You want to deploy and manage containerized applications. Which service should you use? AWS Lambda Amazon Simple Notification Service (Amazon SNS) Amazon Simple Queue Service (Amazon SQS) Amazon Elastic Kubernetes Service (Amazon EKS)
Amazon Elastic Kubernetes Service (Amazon EKS)
77