Well Architected Framework WP - Cost Optimization Flashcards

1
Q

Cost Optimization Pillar

A

pay lowest possible price while achieving business objectives

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

Cost Optimization Design Principles

A

transparently attribute expenditure

Use managed service to reduce cost of ownership

Swap capital expense for operating expense

Benefit from economies of scale

Stop spending on data center operations

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

Cost optimization definition - 4 areas

A

match supply and demand

cost effective resources

expenditure awareness

optimizing over time

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

Match supply and demand best practice

A

don’t over or under provision

Use things like autoscaling, or lambda which only responds when there’s a request

Use cloud watch to track demand

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

2 supply and demand questions

A

how do make sure capacity matches but doesn’t exceed requirements

how are you optimizing AWS usage

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

cost effective resources - best practices

A

using correct instance type is critical.

i.e. run app on T2 micro takes 7 hours and running it on M4.2 Large takes minutes. T2 Micro costs more because took longer

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

3 cost effective resources questions

A

Have you selected appropriate resource types for cost targets?

Have you selected appropriate pricing model to meet cost targets?

Are there managed service that will improve ROI

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

Expenditure Awareness best practices

A

AWS lets you provision things immediately but that has its own issues.

Be aware of what each team is spending and how

If org has multiple AWS accounts, consolidate billing, use cost allocation tags, billing alerts

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

Expenditure Awareness questions

A

what access controls and procedures do you have to govern AWS costs

How do you monitor spending and use

how do you decommission resources, or temporarily stop them, to ensure costs don’t accrue

how do you consider data transfer charges

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

Optimizing over time

A

AWS changes frequently. A service chosen yesterday may not be the best one today

Follow the AWS blog and use Trusted Advisor

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

Optimizing over time questions

A

how do you mange the adoption of new services

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

Key AWS Services for these 4 Cost Optimization Areas

A

Matched supply and demand:
autoscaling

Cost effective resources:
EC2 reserved instances, Trusted Advisor

Expenditure Awareness:
Cloudwatch alarms, SNS, historically consolidated billing and billing alerts

Optimizing over time:
AWS blog, AWS Trusted Advisor

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

How does AWS recommend optimizing speed for SQS buffer-based approach of matching supply / demand

A

Add EC2 Spot Instances

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

How does AWS recommend handling duplicate messages with SQS for buffer-based approach of matching supply / demand

A

Use FIFO Queues for exactly once processing

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

How does AWS recommend optimizing Kinesis for buffer-based approach of matching supply / demand

A

Provision a table in DynamoDB (a NoSQL db)

use idempotent processing so if message processed multiple times, no effect downstream

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

For time-based matching of supply / demand, can you use API’s to scale the instance size or class? How?

A

Yes

stop and start instance and choose different size or class. Can also do this for resources like EBS where you can snapshot and restore to a volume with more IOPS or different volume type

17
Q

For time-based matching of supply / demand, what are the key services?

A

Auto Scaling and CloudFormation for templates

18
Q

3 AWS ways of matching supply and demand

A

Demand-based
Buffer-based
Time-based

19
Q

For demand-based matching of supply/demand what are the key services?

A

Autoscaling, ELB, Cloudwatch

20
Q

How do you use the Reserved Instance Utilization Report?

A

to visualize your reserved instance utilization and find opportunities to increate your usage efficiency.

ie by modifying RI types or shifting workloads

21
Q

How do you use the Reserved Instance Coverage Report?

A

to see how much of your overall instance usage is covered by reserved instances, so you can know if you should modify or purchase RI’s

22
Q

How do you use the billing and cost management service?

A

to define budgets at aggregate or granular level

23
Q

How do you use the detailed billing report with resources and tags (DBR-rt)?

A

To see hourly use and charges for all chargeable AWS services

Gives insight to cost and usage of systems on hourly basis

Can use Redshift to ingest this data and build app to report on it

24
Q

Is the billing and cost management service integrated with IAM service?

A

Yes. Use IAM with it to control access to financial data and billing console

25
Q

2 methods to organize and manage AWS costs

A

account structuring

tagging

26
Q

Describe Account Structuring

A

parent-children structure
per account and linked accounts

Lets you assign accounts to different organizations in the company and have one paying account to oversee them

27
Q

Describe Consolidated billing and one big benefit

A

construct between linked accounts and the payer account for oversight

maximizes volume discounts for services, reserved instances, etc.

28
Q

Describe Tagging for cost optimization

A

AWS adds your tags to billing and cost allocation reports

allows higher levels of automation, ie list all resources with a “test” tag and delete or terminate them.

Useful for automating shutting down test environment at end of day

29
Q

Describe lifecycle tracking for cost optimization

A

way of tracking entities that are no longer needed

AWS config gives detailed inventory of resources
CloudTrail and CloudWatch establish record of resource events
IAM managed groups, users, roles and federation

30
Q

Key AWS Services for Expenditure Awareness

A

AWS Billing and Cost Management

Cost Explorer to visualize costs
Tagging to overlay business and org info to billing data
CloudWatch Alerts for billing alerts

31
Q

2 main ways to optimize over time in AWS

A

Measure, Monitor, Improve

Staying ever green (move to newest services, features)

32
Q

Describe the measure, monitor, improve method

A

perform gap analysis showing how system utilization aligns to requirements by measuring, monitoring users and applications

Work to minimize the gap

33
Q

4 ways to minimize utilization gap

A

establish cost optimization function

establish goals and metrics

gather insight and perform analysis

report and validate

34
Q

Describe staying evergreen

A

AWS frequently releases new services and features, so review your architecture to ensure it stays cost effective.

Be aggressive at decommissioning resources, components, workloads that are no longer needed

35
Q

Key AWS Service for optimizing over time

A

AWS Trusted Advisor,

AWS Blog and What’s new section of website