Chapter 16 Optimization Flashcards

1
Q

5 pillars

A
  • operational excellence
  • security
  • reliability
  • performance efficiency
  • cost optimization
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Cost Tagging Categories

A
  1. Environment
  2. Application ID
  3. Automation (opt in/out)
  4. Business Unit
  5. Owner
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How to enforce tagging?

A

Via IAM policy which specified required tag names.

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

Why would you potentially be charged for stopped EC2 instance?

A

Because an associated EBS volume was not terminated.

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

Are you charged for an unused Elastic IP address?

A

Yes, but it is not charged if it is attached to an EC2 instances.

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

General purpose instance types

A

A1, T2, M3, M4

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

Compute Optimized instance types

A

C3, C4

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

Memory Optimized instance types

A

X1, R3, R4

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

Storage Optimized Instance Types

A

I3, D2

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

Accelerated Computing Instance Types

A

P2, G3, F1

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

Reserved instance duration

A

1-3 years, potential savings of 75%

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

For DB reserved instances, what happens when you exceed reserved rate?

A

You are charged the on demand rate.

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

Termination notices for spot instances are issues when?

A

2 minutes before instances are terminated

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

How to guarantee a specific time duration with Spot instances?

A

Use block durations, which is a parameter set when using spot instances. It guarantees a duration block.

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

How to minimize impact of interruptions with Spot instances?

A

Persist data with EBS volume and/or split up the work using SQS.

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

______refers to the functionality that automatically replaces unhealthy instances in your application, maintains your fleet at the desired capacity, and balances instances across Availability Zones.

A

Fleet management

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

A _______ is a snapshot of a particular state of a resource, such as an Amazon EC2 instance, Amazon EBS volumes, and an Amazon RDS DB instance.

A

golden image

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

If you don’t want to make manual predictions for an auto-scaling group, what can you use?

A

predictive scaling. It leverages machine learning algorithms

19
Q

Aurora auto scaling is available for MySQL and Postgres, but Aurora serverless is available only for _____

A

MySQL

20
Q

How does Lambda scale?

A

It runs multiple, parallel functions

21
Q

Glacier vs Glacier Deep Archive

A

Deep archive is 7-10 year data retention for compliance purposes. 12 hr retrieval time (vs minutes to several hrs for Glacier)

22
Q

When to use S3 vs EFS?

A

S3 as much as possible to keep storage costs low, and EFS when your application requires it.

23
Q

What tool allows you to analyze access patterns for S3 data and allow you to transition objects to the appropriate storage class?

A

Amazon S3 Analytics: Storage Class Analysis

24
Q

Tool which allows you to create CSV with replication and encryption status of S3 objects on weekly or monthly bases?

A

S3 Inventory

25
Q

S3 can publish storage, request, and data transfer metrics to _____

A

CloudWatch

26
Q

If you have S3 objects in csv format, how can you select just a subset of the data in the object?

A

using S3 Select. Drastic performance increase btw.

27
Q

How to query archived data?

A

Glacier Select (seems to return entire object?)

28
Q

For EBS, to achieve best performance consistently, use ___

A

EBS optimized instances

29
Q

When I/O is more important than fault tolerance, use a ______ configuration

A

RAID 0

30
Q

Important Metrics for EBS

A

BurstBalance and VolumeQueueLength (among others)

31
Q

If EBS volume in unattached, it is marked as _____

A

available

32
Q

For a general purpose SSD, optimize for ____ so that you only pay for what you use.

A

capacity

33
Q

S3 Transfer Acceleration leverages ____ to improve application-client transfer speeds

A

Cloudfront/edge locations

34
Q

DAX

A

DynamoDB Accelerator. Memory cache for DynamoDB which offers performance optimization. Best for when you have predictable loads. (note that auto scaling best for unpredictable loads)

35
Q

How to enable versioning in DynamoDB?

A

Use a versionId as the sort key with prefix of 0. Whenever you update an item, make two copies, one which is the actual version ID and one which will overwrite the item with versionId of 0.

36
Q

Do you want more or less indexes in DynamoDb? Why?

A

Less, additional indexes (which aren’t used often) contribute to costs and degrade I/O without improving application performance.

37
Q

Why should you be careful about attribute projections in DynamoDB?

A

If you update an attribute that is projected in an index, you incur the cost of updating the index as well.

38
Q

What are sparse indexes in DynamoDB?

A

An index in which the sort key is not present in every item of the table. This allows queries of a subset of the table items, and results in faster, less expensive results. (i.e. CustomerId & OrderID)

39
Q

RI Utilization report shows how much you 1. _______ while RI Coverage report shows how much you 2.______

A
  1. over purchased

2. under purchased

40
Q

Most granular analysis of costs provided by ____

A

AWS Cost and Usage Report

41
Q

What service allows you to stop/terminate EC2 instances which have been underutilized/unused for too long and/or stop instances which have EBS as root volume?

A

CloudWatch

42
Q

EBS volumes should be attached to what type of instance?

A

EBS Optimized instance

43
Q

What metric would you look at to determine if your provisioned IOPS is sufficient for your application?

A

VolumeQueueLength