Module 2: Compute In The Cloud Flashcards

1
Q

Amazon EC2 provides secure, resizable compute capacity in the cloud as Amazon EC2 instances.

What are some of the benefits of using Amazon EC2 servers?

A
  1. Secure
  2. Resizable
  3. Server instances boot quickly (minutes).
  4. Pay only for what you use.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name the EC2 instance types described below:

  1. Well suited for high-performance
    databases
  2. Offers high-performance
    processors.
  3. Suitable for workloads such as
    distributed file systems and data
    warehousing applications
  4. Ideal for application streaming and
    graphics workloads
  5. Suitable for a broad
    range of workloads
A
  1. Memory optimized
  2. Compute optimized
  3. Storage optimized
  4. Accelerated computing
  5. General purpose
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Name the EC2 instances described below:

  1. Ideal for workloads with flexible start and end times.
    Offer savings over on-demand prices.
  2. A physical server with EC2 instance capacity for a single customer.
    Most expensive Amazon EC2 option.
  3. No upfront costs or minimum contracts.
    Ideal for short term, irregular workloads
  4. Offers up to 66% savings over on-demand costs for a consistent amount of compute usage.
    Requires a 1-year or 3-year term commitment.
  5. Provides a billing discount over on-demand pricing.
    Requires a 1-year or 3-year term commitment.
  6. An EC2 instance that runs in a VPC on hardware for a single customer.
    Higher cost compared to standard Amazon EC2 instances.
A
  1. Spot
  2. Dedicated host
  3. On-demand
  4. Compute savings plan
  5. Reserved
  6. Dedicated instance.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Based on the given scenarios below, suggest a suitable Amazon EC2 instance type:

  1. Next, suppose that the coffee shop owners want to save costs on their EC2 compute usage, but they want to
    have even more flexibility than what is possible with Reserved Instances.
  2. Now, suppose that there is a healthcare clinic located next to the coffee shop. The clinic must meet specific
    compliance and regulatory requirements. For example, it must ensure that its data doesn’t reside on the same
    data servers that are used by other companies.
  3. Suppose that the coffee shop owners have an application that will run continuously for at least a
    year. An example of this might be the main application that customers use for mobile ordering. The
    owners don’t think that Spot Instances would be a good fit because of possible interruptions. They
    also considered On-Demand Instances, but the estimated price seems high for what they would pay
    for a year of compute time.
  4. In the coffee shop example, suppose that the owners are experimenting with a new application that is still in
    the development and testing phases. The application does not yet need to run for long periods of time.
    However, when the application does run, it must do so without interruption so its performance can be
    accurately assessed.
  5. The owners of the coffee shop might also use an Amazon EC2 instance for their data processing, such as a batch
    workload that aggregates and analyzes customer survey data. Compared to other types of batch workloads in
    the coffee shop, such as daily financial processing, the survey data processing is not mission-critical.
A
  1. Compute savings plan.
  2. Dedicated instance/host.
  3. Reserved instances.
  4. On-demand
  5. Spot.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between
Compute Savings Plans and
Spot Instances?

A
  • Compute Savings Plans:
    Are ideal for workloads that involve a consistent amount of compute usage over a 1-year or 3-year term.
    With Compute Savings Plans, you can reduce your compute costs by up to 72 percent over On-Demand costs.
  • Spot Instances are ideal for workloads with flexible start and end times, or that can withstand interruptions.
    Unlike Amazon EC2 Savings Plans, Spot Instances do not require contracts or a commitment to a consistent amount of compute usage.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. Name the Amazon EC2 functionality that enables scaling to happen automatically?
  2. List the configurations that you can set for an Auto Scaling group.
A
  1. Amazon EC2 Auto Scaling
  2. Minimum capacity
    Desired capacity
    Maximum capacity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Name the auto scaling approaches described below:

  1. Automatically schedules the right number of Amazon EC2 instances based on predicted demand.
  2. Responds to changing demand.
A
  1. Predictive auto scaling
  2. Dynamic auto scaling
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Are these examples of Auto Scaling or Elastic Load Balancing?

  1. Removed unneeded Amazon
    EC2 instances when demand is low
  2. Adds a second Amazon EC2
    instance during an online store’s popular sale
  3. Distributes a workload across
    several Amazon EC2 instances
  4. Ensure that no single EC2
    instance has to carry the full
    workload on it’s own
  5. Automatically adjusts the
    number of EC2 instances to match demand
  6. Provides a single point of
    contact for traffic into an Auto Scaling group
A
  1. Auto scaling
  2. Auto scaling
  3. Elastic Load balancing
  4. Elastic Load balancing
  5. Auto scaling
  6. Elastic Load balancing.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

1)Name the AWS service for serverless computing.

2) the benefits of using this service.

3) Brief overview of how this service works.

A
  1. AWS Lambda
  2. *Lets you run code without provisioning or managing servers.

*Pay only for compute time while code is running.

*Use other AWS services to automatically trigger code.

3)
Upload code to Lambda –>
Set event soruce that triggers code –>
Code only runs when triggered –>
Pay only for the compute time used

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

Name and describe two container orchestration services provided by Amazon

A
  1. Amazon Elastic Container Service (ECS)
    *Highly scalable
    *Supports docker containers
  2. Amazon Elastic Kubernets Service (EKS)
    *Used to run Kubernets on AWS.
    *Run and scale Kubernets applications
    *Readily update Kubernets applications with new available features.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Name the Amazon service described below:

*Serverless compute engine for containers.
* Run serverless containers with Amazon ECS or Amazon EKS
* Pay only for the resources you use

A

Amazon Fargate

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

A customer wants to use an
Amazon EC2 instance for a
batch processing workload.
Which Amazon EC2 instance
type should they use?

A. General purpose
B. Compute optimized
C. Memory optimized
D. Storage optimized

A

B. Compute optimized.

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

What are the contract
length options for Amazon
EC2 Reserved Instances?

A. 1 year
B. 2 years
C. 3 years
D. 4 years

A

A. 1 year, and
C. 3 years

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

A customer has a workload
that will run for a total of 6
months and can withstand
interruptions. What would
be the most cost-efficient
Amazon EC2 instance
purchasing option?

A. Reserved Instance
B. Dedicated Instance
C. On-Demand Instance
D. Spot Instance

A

D. Spot Instance.

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

A customer wants to give
users messages for the
specific topics to which they
have subscribed. Which
service should they use?

A. Amazon Simple Notification Service (Amazon SNS)

B. AWS Lambda

C. Amazon Simple Queue Service (Amazon SQS)

D. Amazon Elastic Kubernetes Service (Amazon EKS)

A

A. Amazon Simple Notification Service (Amazon SNS)

The other response options are incorrect because:

B. AWS Lambda is a service that lets you run code without provisioning or managing servers.

C. Amazon Simple Queue Service (Amazon SQS) is a service that allows you to send, store, and receive messages between software components through a queue. It does not use the message subscription and topic model that is involved with Amazon SNS.

D. Amazon Elastic Kubernetes Service (Amazon EKS) is a fully managed Kubernetes service. Kubernetes is opensource software that allows you to deploy and manage containerized applications at scale.

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