Compute Flashcards

1
Q

What are the types of AMIs?

A

From AWS
Marketplace
Own AMIs
Shared AMIs

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

What is affected by the instance type?

A
Virtualization types (PV / HVM)
CPU (Number and clock speed)
Networking
Storage
Instance Limits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the instance classes?

A
General Purpose (T2, M4)
Compute Optimized (C4)
Memory-Optimized (X1, R4)
Storage-Optimized (I3, D2)
Accelerated Computing (P2, G2, F1)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do the two virtualization types differ?

A

HVM (Hardware Virtual Machine) allowes advanced networking, because it runs as if it was on dedicated hardware.

Windows instances can only be on HVM

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

If an instance has Instance Store what states can it have?

A

It only can be running or terminated (not stopped)

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

Why use dedicated hosts?

A

It the use case depends on licenses that require not shared hardware

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

What is the advantage of a dedicated instance?

A

There is no other user on that uses the hardware

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

Can every instance type support Instance Storage?

A

No

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

How can MetaData be accessed?

A

It can be accessed on 169.254.169.254

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

What can be tracked in CloudWatch?

A

CPU (usage and credits), Disk, Network

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

What two tools are present for estimating costs?

A

AWS Simple Monthly Calculator

AWS Total Cost of Ownership Calculator

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

What are the advantages of Placement Groups?

A

Low network latency or/and high network throughput

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

How to configure EC2 for ECS?

A

Install the ECS Agent on the instance (ECS optimized AMIs already have the agent installed)
The instance needs the appropriate IAM role

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

What is the process to deploy a cluster?

A
  1. Define a task
  2. Define the service
  3. Create the cluster
  4. Create the stack
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Structure and Limit of Elastic Beanstalk deployments

A

To deploy: Upload source bundle

Limits: Zip/WAR file smaller than 512 MB

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

What roles are created in an Elastic Beanstalk deployment?

A

Service Role: To access other cloud services

Instance Profile: Logs to S3 and other specific tasks

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

What needs to be defined for a lambda function?

A

Memory
Max. execution time
IAM role
Handler name

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

How are Lambda functions invoked?

A

Push event model: directly call the function
Pull event model: poll the event source and invoke function if needed
Direct invocation model: synchronously called and answers immediately.

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

Which of these situations typically require data migration for the root volume of an instance store-backed instance?

A

Scaling up means to increase the size of the instances, and with instance store-backed instances a migration is necessary

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

What does HVM stand for?

A

HVM does stand for Hardware Virtual Machine.

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

Which of the following is not an EC2 instance family?

A

Dense Storage is not an EC2 family, it is an EC2 instance type of the Storage Optimized family.

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

Which of these processes need to be suspended when updating an Auto Scaling Group to avoid issues?

A

Launch

Terminate

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

What is the advantage of HVM against PV?

A

Runs as if on bear metal server and therefore can use all hardware features

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

What is bootstrapping an instance - and what would be an Alternative?

A

Creating resources after launch using the user-date, CloudFormations cfn-update or an Configuration Management Software like Chef.

Alternatively all resources can be included in the AMI

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

Which services support Container Based deployments?

A
OpsWorks
Elastic Beanstalk
ECS
CodeDeploy
or using a 3rd party service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

What does the Error Message: InsufficientInstanceCapacity mean?

A

AWS cannot provide enough instances of the desired type

27
Q

What is the max. capacity of an instance store volume?

A

10GB

28
Q

What happens (per default) to the EBS volumes if a EC2 instance gets terminated?

A

Root volume will be terminated as well.

Additional volumes will remain

29
Q

What is the difference between Dedicated Instance and Dedicated Hosts?

A

Both use dedicated physical servers.

On the D. Host you have visibility to sockets, cores and the host ID.
You can target the launch of an instances’ placement.
This is mainly used for licensing reasons (license per core etc.)

30
Q

What is EC2 Instance Recovery

A

In combination with CloudWatch Alarms and EBS can a failed EC2 instances be “rebooted” with the same:

  • Instance ID
  • IP-Addresses
  • EBS volumes
31
Q

ASG: What is the difference between Launch Configuration and Launch Template?

A

The Template is newer and has more options and is close to CloudFormation than the Launch Configuration being close to launching an EC2 instance

32
Q

Which issues will cause an EC2 instance status check to fail?

A

Failed system status checks

Incorrect startup configuration

Exhausted memory

Corrupted file system

Incompatible kernel

33
Q

What information do you need to provide Amazon to allow them to pre-warm the Elastic Load Balancer?

A

The total size of the request/response you will be expecting
The expected request rate per second
The start and end dates of the expected flash traffic

34
Q

What could be reasons for an instance not launching on an Auto Scaling Group?

A
  • Key Pair or Security Group does not exits
  • Instance Type is not supported
  • Invalid EBS mapping
  • Trying to attach an EBS Volume to an instance store AMI
35
Q

What feature only relates to Spread Placement Groups?

A

The placement group can only have 7 running instances per Availability Zone

36
Q

What is the “t2 unlimited” option?

A

Can give burst options of CPU power beyond normal CPU credit bursting.
Comes at a addtional price

37
Q

AutoScaling: What should be done if there seems to be an error with the instances and someone needs to chek it out?

A

Temp. suspend the scaling pricess (administrative suspension)

38
Q

SQS: How to guarantee the order of the items and that a message appears only once?

A

Use the FIFO Queue Logic

39
Q

SQS: Does Amazon SQS support message metadata?

A

Yes. An Amazon SQS message can contain up to 10 metadata attributes. You can use message attributes to separate the body of a message from the metadata that describes it.

40
Q

SQS: What is Amazon SQS long polling?

A

While the regular short polling returns immediately, even if the message queue being polled is empty, long polling doesn’t return a response until a message arrives in the message queue, or the long poll times out.

Long polling makes it inexpensive to retrieve messages from your Amazon SQS queue as soon as the messages are available.

41
Q

SQS: Can I delete all messages in a message queue without deleting the message queue itself?

A

Yes. You can delete all messages in an Amazon SQS message queue using the PurgeQueue action

42
Q

SQS: Can I convert my existing standard queue to a FIFO queue?

A

No. You must choose the queue type when you create it. However, it is possible to move to a FIFO queue

43
Q

What is the InsufficientInstanceCapacity error?

A

AWS does not have enough on-demand instances

44
Q

What are Change sets?

A

Change sets allow you to preview how proposed changes to a stack might impact your running resources. For example, whether your changes will delete or replace any critical resources

45
Q

CloudFormation:

How to create a multi region / multi account infrastructure?

A

Create an AWS CloudFormation template in a single account that defines custom resources to launch nested stacks into the other accounts and regions

46
Q

EC2: What is an “Elastic Interface Accelerator”?

A

Elastic Inference provides cost efficient hardware acceleration for deep learning inference for all EC2 instance types, at a fraction of the cost of standalone GPU instances.

47
Q

EC2: Can you use every instance type for scheduled isntances?

A

No, only C3, C4, M4 and R3 (Linux and Windows)

48
Q

EC2: What is capacity reservation?

A

When you create a Capacity Reservation, we reserve the specified capacity for your use. The reserved capacity is charged at the selected instance type’s On-Demand rate whether an instance is running in it or not

49
Q

What are the three parts included in an AMI?

A
  • Template, for the instance (OS, applications etc.)
  • Launch permissions
  • Block Device Mapping
50
Q

How to include more than 16kb in the user data?

A

Link more content in S3 e.g.

51
Q

What is the AWS Service Catalog?

A

Portfolio of approved AWS products that the users can access to

52
Q

Lambda: Why could a function be slow running?

A

The function is container based, AWS lets the container run as long as the function is called regularly. If not the container needs to spin up first.

53
Q

Lambda: What happens when executing a function fails?

A

The functioned will be called three times. If wanted the failed request can be forwarded to a dead letter queue.

54
Q

What is Lightsail?

A

Easily launch a VPC with a basic set of applications such as Wordpress on a LAMP stack
Only for Linux.

55
Q

What is AWS Batch?

A

Enables developers to run hundreds of batch computing jobs

56
Q

EC2: What needs to be done to change the instance size?

A

Stop the instance

Restart with the new instance size

57
Q

Batch: What can be specified for the vCPUs?

A

min./max. and desired vCPUs

58
Q

Where to find the current and estimated costs of the month?

A

In the My Billing Dashboard

59
Q

What is the way to copy an AMI to another region?

A

Use the CopyImage API

60
Q

How are on-demand instances limited?

A

By the families vCPU Limits

61
Q

Which of the following is the top cost-saving benefit of using ECS instead of EC2?

A

Better memory utilization

62
Q

What are the valid Spot Instance durations?

A

f 1, 2, 3, 4, 5, or 6 hours. After that, the

instance terminates.

63
Q

What’s the minimum yearly required utilization for a scheduled instance?

A

1200 hours

64
Q

What is the SBE Instance Type?

A

Comes from a SnowballEdge