Ch4 Flashcards

1
Q
  1. Which of the following are valid payment options for reserved instances? (Choose two.)

Actual usage pricing
Predictive pricing
All up-front pricing
Nothing up-front pricing

A

C, D. Reserved instances can be paid for in no up-front, partial up-front, and all up-front models, where all up-front is the least expensive and no up-front is the most expensive.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. Which of the following are not reasons to select an on-demand instance? (Choose two.)

Applications with short-term, spiky workloads
Applications that have flexible start and end times
Applications with steady-state usage
Applications being developed or tested on EC2 for the first time

A

B, C. Applications with spiky workloads are reasons to use on-demand, as on-demand can scale up and down quickly. Flexible start and end times is a criterion for choosing spot instances, and steady-state usage is ideal for reserved instances. Anytime you’re testing a new application, on-demand is a good choice

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Which of the following are reasons to select a spot instance? (Choose two.)

Applications with short-term, spiky workloads
Applications that have flexible start and end times
Applications with steady-state usage
Applications that are only feasible at very low compute prices

A

B, D. Applications with spiky workloads are reasons to use on-demand, as on-demand can scale up and down quickly. Flexible start and end times is a criterion for choosing spot instances, and steady-state usage is ideal for reserved instances. Spot instances also make heavy compute affordable when it would not be on other instance types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Which of the following are reasons to select the S3 standard storage class? (Choose two.)

Need for high durability
Need for highest available throughput
Infrequent access of objects
Objects can easily be re-created if lost.

A

A, B. S3 shares the durability of all S3 storage classes at 11 9s. It also provides the highest availability throughput of all S3 storage classes. Infrequent access is a use case for S3-IA, while the ability to re-create objects would suggest S3 One Zone-IA.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. You are the architect for a web application that exists on a cluster of EC2 instances all within an Auto Scaling group. During periods of high activity, the group scales up— adding instances—and then quickly scales back down. However, this occurs multiple times within a two-hour window, incurring significant costs. How could you reduce costs while ensuring that demand is still met? (Choose two.)

Modify the Auto Scaling group’s cool-down timers.
Modify the Auto Scaling group to use scheduled scaling.
Lower the CloudWatch alarm threshold that causes the Auto Scaling group to scale up.
Modify the CloudWatch alarm period that causes the Auto Scaling group to scale down.

A

A, D. The problem here is that instances are scaling down too quickly. This results in them then being restarted, which incurs cost. The solutions here should be ones that cause instances to stay around a bit longer, which meets demand. Both A and D do this. Cool-down timers increase the time for the group to ensure that previous scaling actions were completed (A), and the CloudWatch alarm period for scaling down should also be increased (D).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. You have a large archive of documents that must be backed up. The documents will be accessed very infrequently, if at all. However, when the documents are accessed, they must be delivered within 10 minutes of a retrieval request. What is the most cost-effective option for storing these documents?

S3
S3-IA
Glacier
Glacier with expedited retrieval

A

D. All the description here suggests using Glacier. The documents are a large archive, and many will never be accessed. However, the requirement for quick retrieval points to a need for expedited retrieval. Glacier with expedited retrieval is still going to cost less than S3-IA for access that isn’t that frequent.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. Your application has a 200 GB database running on an EC2 instance. You cannot move the database to RDS because of a custom spatial plug-in. The application is currently peaking in the morning and the evening, but the peaks are small and usage throughout the day is minimal. You need to ensure solid performance but keep costs low. What storage type would you use?

EFS
EBS with a General Purpose SSD
EBS with a provisioned IOPS SSD
EBS with a magnetic HDD

A

B. First, EBS is a much better choice than EFS for a single-instance application. While a database would certainly benefit from IOPS, there’s no need; peaks are small, and usage overall is low. A General Purpose SSD is sufficient here.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. Which EBS volume type is most appropriate for use with a large database workload?

EBS with a throughput optimized HDD
EBS with a General Purpose SSD
EBS with a provisioned IOPS SSD
EBS with a magnetic HDD

A

C. If you have a larger database workload, provisioned IOPS SSD is ideal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Your application currently stores all its data on EBS volumes. You want to ensure that these volumes are backed up durably. However, you also want to use as few different managed services as possible in order to keep backup costs low. What option would you recommend?

Take regular EBS snapshots manually.
Set up a Lambda function to take EBS snapshots and trigger the function through CloudWatch alarms.
Create a script to copy the EBS data to S3 and run it on an EC2 instance.
Mirror data across two EBS volumes.

A

A. This is a tough question. You can eliminate B and C because both involve additional services: CloudWatch, Lambda, and additional EC2 instances. Taking EBS snapshots is good, and by moving those snapshots into S3 (which is the default), you get durability automatically. Mirroring data is also a great option—providing fault tolerance—but this does not provide a durability component, something the question specifically requires. Therefore, A is the best answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. You are the architect for a highly available and highly scalable accounting application. All transaction records in the application’s data stores must be available for immediate retrieval for three months, but then they should be purged to reduce storage costs. How can you most easily address this requirement?

Store the transaction records on EBS and delete the volume after three months.
Store the transaction records in S3 and use lifecycle management to delete the records after three months.
Store the transaction records in Glacier and use lifecycle management to delete the records after three months.
Store the transaction records in EBS and use lifecycle management to delete the records after three months.

A

B. There are two components to this question: which storage medium is appropriate, and how should older records be deleted. To get both immediate retrieval and lifecycle management, you’d need S3, as in option B. (Also, EBS does not offer lifecycle management, in option D.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. You want to optimize performance and cost of your application by creating a placement group rather than hosting separate copies of your application in multiple availability zones. Across how many availability zones can a placement group span?

One
One or more
Two or more
Placement groups are not in availability zones.

A

B. Placement groups are typically in a single availability zone, but now spread placement groups can be placed across availability zones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. Across how many availability zones can a spread placement group be stretched?

One
One or more
Two or more
Placement groups are not in availability zones.

A

B. It is typical to think of a spread placement group as a group spread across availability zones, but that is a misnomer. The spread in spread placement group means that the instances are spread across distinct underlying hardware, and although they can be spread across availability zones, they don’t have to be.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. How many instances can run in a single availability zone for a spread placement group?

One
Five
Seven
Nine

A

C. A spread placement group can have a maximum of seven running instances per AZ.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. Which of the following are advantages of a spread placement group over using non-grouped instances? (Choose two.)

A spread placement group can span peered VPCs in the same region.
A spread placement group is less expensive than the same number of on-demand instances not in a group.
A spread placement group allows instances to talk with negligible network lag.
A spread placement group reduces IO in an instance within that group.

A

A, C. Spread placement groups primarily offer reduced network lag between instances (C). They also allow for cross-VPC spanning of instances (A).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. Which of the following statements about placement groups is false?

A spread placement group can span peered VPCs in the same region.
A clustered placement group has instances all in a single availability zone.
A spread placement group allows instances to talk across regions without network lag.
A clustered placement group involves fewer availability zones than a spread placement group.

A

C. The only false statement here is C: Spread placement groups cannot be set up across regions, and therefore this entire statement is untrue.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. Which of the following actions incur costs within AWS? (Choose two.)

Data ingress from the Internet
Data egress to the Internet
Transferring data across regions
Transferring data from one instance to another within the same availability zone

A

B, C. Egress always has a cost associated with it (B), while ingress is always free. Transferring data across regions is treated the same as transfers to the Internet. Only inter-AZ data transfer is guaranteed to be costless (D), making C the other correct answer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q
  1. Which of the following costs the least?

Retrieving a file from S3 to a local desktop client
An instance retrieving data from S3 in the same region
Uploading a file to S3 from a local desktop client
An instance retrieving data from S3 in a different region

A

C. The least cost is always going to be “free,” so look for anything that might be ingress. In this cost, uploading to S3 is straight ingress and is therefore free and the cheapest option.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q
  1. Which of the following might help reduce data transfer costs? (Choose two.)

Set up CloudFront to cache content.
Ensure that any instances communicating with other instances in the same region have private IP addresses.
Set up an RDS instance with read replicas.
Set up S3 buckets with versioning.

A

A, B. First, CloudFront is always a good option. It’s free to move data from EC2 to CloudFront, so that could reduce how far data must travel, and associated costs. Then, private IPs allow for communication that doesn’t route out to the Internet, and generally AWS charges less for communication from private IP to private IP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q
  1. Which of the following is not a level of AWS support?

Developer
Free tier
Enterprise
Business

A

B. Although there is a free tier, it’s a billing option and not an actual support level. That makes B the non-level in this answer set.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q
  1. Which of the following is reduced as part of AWS’s total cost of ownership approach?

Developer salaries
DevOps salaries
Capital expenditures
Organizational head count

A

C. AWS reduces the need for large capital expenditures and provides a pay-as-you-go model instead.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q
  1. Which of the following payment models does AWS employ to reduce total cost of ownership?

Pay up front
Pay-as-you-go
Pay after use
Quarterly pay

A

B. AWS uses a pay-as-you-go model for all of its services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q
  1. Which of the following is not a key tenet of the AWS pricing philosophy?

Pay-as-you-go
Pay less when you reserve.
Pay less per unit by using more.
Pay more only when AWS grows.

A

D. D is incorrect; you actually pay even less as AWS grows, due to economies of scale.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q
  1. When calculating total cost of ownership, what instance pricing model does AWS suggest using?

On demand
Reserved
Dedicated hardware
Spot instance

A

B. AWS suggests using reserved instance pricing in TCO calculations, as it is closest to on-premises servers in an apples-to-apples comparison.

24
Q
  1. How does the cost of standard reserved instances compare with the cost of on-demand instances?

Standard reserved instances cost significantly less than on-demand instances.
Standard reserved instances cost about the same as on-demand instances.
Standard reserved instances cost significantly more than on-demand instances.
Standard reserved instances cost a little bit less than on-demand instances.

A

A. Standard reserved instances often provide up to a 75% discount as compared to on-demand instances.

25
Q
  1. Which of the following is not a valid payment option for reserved instances?

No upfront
Partial upfront
Half upfront
All upfront

A

C. There is no “half upfront” payment option. The valid options are no upfront, partial upfront, and all upfront.

26
Q
  1. Which of the following are valid terms for reserved instances? (Choose two.)

Six months
One year
Two years
Three years

A

B, D. Reserved instances can be purchased for either one- or three-year terms.

27
Q
  1. Which of the following are valid pricing models for EC2 instances? (Choose two.)

Spot instances
Spot market
Dedicated hosts
All upfront

A

A, C. A spot instance (A) is a valid model, but spot market (B) is not; spot market is where you purchase spot instances. Dedicated hosts (C) is another valid model. All upfront is a payment option, but not an actual pricing model for instances.

28
Q
  1. Which instance type is ideal for an application that has a flexible start and end time?

Spot instances
On-demand instances
Dedicated hosts
Reserved instances

A

A. Spot instances are recommended for applications with flexible start and end times, that need to run with low compute prices, or that may have urgent compute needs for large amounts of additional capacity.

29
Q
  1. Which instance type is ideal for an application that suffers numerous spikes in usage at unpredictable times?

Spot instances
On-demand instances
Dedicated hosts
Reserved instances

A

B. On-demand instances are best when usage patterns swing severely and can’t be predicted.

30
Q
  1. Which instance type is ideal for an application that has a long-running compute job that cannot be interrupted but also suffers from significant fluctuations in usage patterns?

Spot instances
On-demand instances
Dedicated hosts
Reserved instances

A

B. On-demand instances are ideal for any usage that swings wildly in unpredictable patterns, particularly if a job cannot be halted. If usage is predictable, a long-running job might benefit from a reserved instance, and if the job can be stopped, then spot instances would be better.

31
Q
  1. Which of the following are valid ways to purchase dedicated hosts? (Choose two.)

On-demand hourly
All upfront
On layaway
As a reservation

A

A, D. This is a little tricky, as dedicated hosts function a bit differently than the other instance types, in both purchasing and payment. In this case, it’s important to note that the question is about purchasing, and not payment (which would drive you to answer “all upfront,” “partial upfront,” or “no upfront”). Dedicated hosts can be purchased as an on-demand instance or as a reservation for significant savings.

32
Q
  1. Which of the following would not incur a charge?

Transferring data from S3 to CloudFront
Distributing data via CloudFront to an Internet client in a different region
Transferring data from an EC2 instance to an instance in another region
Importing data to S3 via Transfer Acceleration

A

A. It is always free to move data into CloudFront. There may be a cost associated with egress from CloudFront, but the transfer to CloudFront is cost-free.

33
Q
  1. Which of the following is an AWS support plan?

Standard
Free
Small teams
Enterprise

A

D. The four AWS support plans are basic, developer, business, and enterprise.

34
Q
  1. What is AWS Trusted Advisor?

An AWS security service
An online resource to help you reduce cost
A logging tool to help you detect intrusions
A performance tool to help you correctly size your Auto Scaling groups

A

B. AWS Trusted Advisor is an online resource that helps you reduce cost as well as increase performance and improve security. However, it does not provide logging (C) or affect Auto Scaling limits or configuration.

35
Q
  1. How many core Trusted Advisor checks does the Trusted Advisor tool provide?

Three
Four
Five
Nine

A

C. There are five core Trusted Adviser checks: cost optimization, security, fault tolerance, performance, and service limits. Note: In some places, AWS will say that there are seven checks, but in others, five. The most current documentation indicates the five checks noted here.

36
Q
  1. Which of the following might be a recommendation from Trusted Advisor? (Choose two.)

Turn on MFA for the root account.
Turn off global access to an S3 bucket.
Turn on Transfer Acceleration for S3.
Turn on MFA Delete for S3.

A

A, B. AWS Trusted Advisor provides advice that typically is useful in all environments, for all use cases. In this set of answers, the two that meet that criteria are turning on MFA for the root account and avoiding global Internet access to an S3 bucket. These recommendations will apply to almost all situations. The other two options—C and D—are use-case specific and therefore would not be suggested by Trusted Advisor.

37
Q
  1. Which of the following is not an area in which Trusted Advisor makes recommendations?

S3 bucket permissions
IAM usage
RDS public snapshots
DNS usage

A

D. AWS Trusted Advisor makes recommendations about S3 bucket usage, IAM usage, and snapshots (both EBS and RDS) but does not make recommendations regarding DNS, so D is correct.

38
Q
  1. Which of the following is not a category for which Trusted Advisor makes recommendations?

Security
Scalability
Service limits
Fault tolerance

A

B. AWS Trusted Advisor makes recommendations in five categories: cost optimization, performance, security, fault tolerance, and service limits.

39
Q
  1. Which of the following might be an area about which Trusted Advisor makes recommendations? (Choose two.)

Idle load balancers
Incorrect S3 storage class
No MFA on root account
Underuse of DNS records

A

A, C. First, C is an easy choice: MFA on the root account is one of the most common recommendations. Then, consider the areas in which Trusted Advisor can make absolute recommendations; underuse of DNS records doesn’t make a lot of sense (how do you “underuse DNS?”) and coming up with the “correct” S3 storage class involves understanding use cases, which Trusted Advisor can’t do. This leaves A, idle load balancers.

40
Q
  1. Which of the following are recommendations AWS makes to help you control your AWS costs? (Choose two.)

Right-size your services to meet capacity at the lowest cost.
Save money by reserving.
Save money with on-demand resources.
Buy high capacity and serve low capacity.

A

A, B. AWS makes five standard recommendations: Right-size your services to meet capacity needs at the lowest cost, save money by reserving, use the spot market, monitor and track service usage, and use Cost Explorer to optimize savings.

41
Q
  1. Which of the following might be a means by which you could decrease AWS costs in any standard application stack?

Use DynamoDB instead of RDS.
Use Route 53 instead of non-AWS registrars.
Use the spot market.
Use dedicated host instances.

A

C. AWS makes five standard recommendations: Right-size your services to meet capacity needs at the lowest cost, save money by reserving, use the spot market, monitor and track service usage, and use Cost Explorer to optimize savings. Using the spot market (C) falls into that last category. The other answers are all use-case driven and really don’t fit into general cost-saving recommendations.

42
Q
  1. What is AWS Cost Explorer?

An analytics tool for evaluating instance usage
An analytics tool for evaluating RDS usage
An analytics tool for managing AWS costs over time
An analytics tool for managing application deployments

A

C. This should be pretty basic: AWS Cost Explorer provides reports via analysis for evaluating your overall AWS costs over time.

43
Q
  1. You want to anticipate your costs over the next year. Which of the following tools would you use?

AWS Trusted Advisor
AWS Cost Explorer
AWS Cost Manager
AWS Savings Advisor

A

B. This is largely a matter of recognizing the valid AWS tools—AWS Trusted Advisor and AWS Cost Explorer—and then determining which deals with costs. In this case, that’s AWS Cost Explorer.

44
Q
  1. You want to determine how your instance class choices are affecting your overall AWS spending. Which tool would help?

AWS Trusted Advisor
AWS Cost Explorer
AWS Auto Scaling groups
AWS CloudTrail

A

B. Cost Explorer gives you reports on EC2 monthly cost and usage that can help analyze monthly spending on instances.

45
Q
  1. You want to set limits on how much is spent monthly on S3 storage. Which of the following tools would be helpful?

AWS Trusted Advisor
AWS Cost Explorer
AWS Budgets
AWS CloudFormation

A

C. While AWS Cost Explorer can give you information about your monthly storage costs, AWS Budgets allows you to set alerts and then add custom programming to reduce or halt those costs.

46
Q
  1. You want to cut off all access to your S3 buckets when a certain cost threshold is reached. Which tool allows you to do this?

AWS Trusted Advisor
AWS Cost Explorer
AWS Budgets
None of these

A

D. This is an important question. None of the tools listed allow for actual “cutoffs” at cost thresholds. AWS Budgets allows you notifications when a threshold is met but does not allow you to cut off spending at a certain point on its own.

47
Q
  1. You want to delay the cost of hiring a large DevOps team while prototyping application hosting in the cloud. What service allows you to deploy your code with minimal oversight?

Elastic Beanstalk
CloudFormation
Elastic Transcoder
JSON

A

A. Elastic Beanstalk can deploy your code and handle capacity provisioning, load balancing, and setting up Auto Scaling and health checks, all with very little oversight. Note that you’d still need personnel to keep an application like this running, but Elastic Beanstalk can reduce initial resources needed for application deployment.

48
Q
  1. You need an analytics solution to perform business intelligence on your large data store. What AWS managed service can provide you with OLAP that reduces cost at scale?

RDS
Oracle on an EC2 fleet with provisioned IOPS EBS volumes
Memcache
Redshift

A

D. Redshift is AWS’s managed service for OLAP and business intelligence.

49
Q
  1. You are currently running a fleet of 12 EC2 instances and processing large datasets that are uploaded by users. However, the cost of maintaining these instances is increasing, and the maintenance of the processing code is also growing. What AWS managed service would allow you to reduce these costs and still process large datasets?

EMR
Memcache
CloudFront
BigData Processing Service

A

A. EMR, Elastic MapReduce, is a web service targeted at processing large amounts of data. It is optimized for this task and often provides cost savings over EC2 instances running similar processes.

50
Q
  1. You are in charge of building a business intelligence application that can handle multiple data sources and perform analytics at a large scale. Which of the following services and tools would allow you to build a cost-effective solution? (Choose two.)

QuickSight
Provisioned IOPS EBS volumes
EC2 instances
Redshift

A

A, D. QuickSight is a business analytics service, and Redshift is ideal for business intelligence and OLAP. While you could build high-performance applications using EC2 instances and provisioned IOPS EBS volumes, managed services like QuickSight and Redshift are almost always going to be more cost effective.

51
Q
  1. You have been tasked with combining several data sources into a single (optionally ephemeral) data store that you can then perform analysis on. You currently have data in RDS, two DynamoDB instances, and multiple S3 buckets. What is the most cost-effective approach to handling this task?

A fleet of EC2 instances with throughput optimized SSD EBS volumes
A combination of CloudWatch, Lambda, and custom code
Redshift
QuickSight

A

D. Both A and B are going to incur significant costs and custom code. C is not a bad option on the analytics side but will still likely require custom code to aggregate the data sources. QuickSight, however, is designed exactly for this task: combining data sources and then performing analytics and extracting insights.

52
Q
  1. You need to choose a scalable, cost-effective, and highly durable solution for storing flat files. What AWS service would you use?

S3
Kinesis
DynamoDB
Aurora

A

A. S3 is the AWS choice for durability and flat-file (non-relational data) storage.

53
Q
  1. You have been tasked with replacing a legacy LDAP directory server that manages users, groups, and permissions with a cloud-based solution in order to reduce maintenance costs for the current directory server. What AWS service should you investigate?

IAM
Cognito
AWS Organizations
AWS Directory Server

A

A. IAM is the best option for handling users, groups, and permissions within AWS.

54
Q
  1. You have been tasked with replacing a legacy LDAP directory server that manages users, groups, and permissions and provides single sign-on capabilities with a cloud-based solution in order to reduce maintenance costs for the current directory server and codebase. What AWS services should you investigate? (Choose two.)

IAM
Cognito
AWS Organizations
AWS Directory Server

A

A, B. IAM is the best option for handling users, groups, and permissions within AWS. You can then add Cognito to offer single sign-on capabilities to your applications.

55
Q
  1. You are migrating a large on-premises application suite to AWS. Your company has made a significant investment in Chef for configuration and management and doesn’t want to lose the investment in time and money that the Chef tool represents. How could you preserve this functionality and keep costs low?

CloudTrail
CloudWatch
OpsWorks
Service Catalog

A

C. OpsWorks is a configuration management tool that actually can use Chef, so many of the existing modules would plug right in and existing expertise would translate directly over.