Solutions Architect - Associate Flashcards
What was the first AWS service and when was it lauched?
SQS, 2004
What is a region?
Specific geography engineered for fault tolerance and high availability
How many AZs are in each region (minimum)?
2
What is an AZ?
Availability zone - specific DC with redundant power etc. Can be close but far enough away so local issues like flooding don’t affect multiple AZs
What is an edge location?
Location specialised for caching content allowing faster upload/download from AWS
Which services use edge locations?
CloudFront, S3 (accelerated transfer)
Describe these IAM terms: Users Groups Policies Roles
Users - people/accounts
Groups - collection of users
Policies - JSON docs that define permissions
Roles - allows one part of AWS to do something with another (e.g. EC2 roles)
Is IAM regional?
No, it’s global
What permissions do new users have when created?
None
What is the structure of a policy statement?
Effect (Allow), Action () and Resource ().
What are AWS managed policies?
Read-only policies that AWS update when new features come out
What sort of storage is S3?
Object-based
What size files can be stored in S3?
0B to 5TB
What’s the maximum storage size of a bucket?
Unlimited
What’s the URL structure of an S3 bucket?
s3-.amazonaws.com/
s3.amazonaws.com/
.s3.amazonaws.com
.s3-.amazonaws.com
What is the data consistency behaviour of S3?
Read after write consistency for PUTs of new objects
Eventual consistency for overwrite PUTs and DELETES
What data is stored for each S3 object?
Key (name of object)
Value (sequence of bytes)
Version ID (for versioning)
Metadata (e.g. tags)
Subresources:
Access Control Lists
Torrent (not an exam topic)
What are the SLAs for S3 standard?
Build for 99.99% availability
Guaranteed 99.9% availability
99.99999999999% durability for S3 information (11 x 9s)
Designed to sustain the loss of 2 facilities concurrently
What’s the use case for S3-IA?
Data accessed less frequently but still requires rapid access - lower standard fee but charged a retrieval fee
What’s the use case for S3 one zone?
Temporary or reproducible data - no multi-AZ resilience
What is the use case of S3 RRS (reduced redundancy storage)?
Non-critical, reproducible data. Like S3 standard but only replicated in at least 3 AZs. Legacy now - cheaper to use S3 standard.
What’s the SLA for S3 IA?
Availability is 99.0%, not 99.9% (but durability is the same)
What is S3 intelligent tiering?
Changes tiers of objects depending on access behaviour to object
What’s the minimum capacity charge and storage duration of IA tier in S3?
128KB and 30 days
What is the first byte latency for all S3 tiers apart from Glacier?
Milliseconds
What are the S3 charges?
Storage Requests Storage Management Pricing (object tagging, S3 inventory, S3 analytics storage class analysis) Data transfer Transfer acceleration
What is S3 transfer acceleration?
Transfer of files over long distances using CloudFront edge locations - data routed over optimised netowrk path
What are the rules for bucket names?
Between 3 and 63 characters - DNS compliant
Is it possible to record object-level API activity?
Yes, for an additional cost in CloudTrail
What are the 4 ways to encrypt data in S3?
Client side
Server side - S3 managed keys (SSE-S3)
Server side - KMD (SSE-KMS)
Server side - customer provided keys (SSE-C)
What is the advantage of usig SSE-KMS over SSE-S3?
Separate permissions and auditing for key use
Is it possible to disable S3 bucket versioning?
Once it’s enabled it can’t be disabled but it can be suspended
What happens when you delete an object in a versioned S3 bucket?
Additional version created that is a delete marker
How can you prevent accidental deletion of an S3 file in a versioned bucket?
MFA delete - can be configured via API
Can S3 replication be used to replicate to a bucket within the same region?
No
What happens to delete markers with S3 replication?
They are not replicated (idea is to prevent deleting backups of data). Previous config (V1) did allow delete markers to be replicated.
Can you have multiple S3 replication rules?
Yes - each rule has a priority to determine what runs first
How does S3 replication handle SSE encrypted objects?
Decrypts and then re-encrypts in destination bucket
What is a potential risk of replicating encrypted objects using S3 replication?
KMS limits might be exceeded - an increase to these limits can be requested
Can S3 replication be configured to replicate to another AWS account?
Yes - there’s an option to change ownership of objects to destination bucket account owner
Which objects are copied as part of S3 replication?
New and changed objects - anything existing won’t be. Would have to use cli: aws s3 cp –recursive
Can you daisy-chain S3 replicated buckets?
No
Are actions performed by S3 lifecycle management replicated by S3 replication?
No
What is S3 lifecycle management?
Used to transition objects to different storage classes, or expire objects (put delete marker in)
Can also clean up multipart uploads
How can the scope of S3 lifecycle management be limited?
By prexifes or tags
How is behaviour defined for S3 Lifecycle management (e.g. what can be defined and what are the limits)?
Behaviour can be defined for current and previous versions of object.
You define the desired storage tier and the number of days after object creation or when object became a previous version.
Current versions - min 30 days
Previous versions - min 1 day
How can expiration and deletion be defined in S3 lifecycle management?
Expiration puts delete marker on the current object (min 31 days)
Can configure deletion of previous version (min 61 days)
Object delete markers clearup - when objects are expired, and previous versions deleted, current object will have delete marker. It clears these markers up. It can’t be set if rule has object expiry enabled.
What types of origin are available for CloudFront?
S3, EC2, ELB, Route53, Some other non-AWS origin server
What are the two types of CloudFront distribution?
Web Distribution
RTMP (real-time messaging protocol) - adobe flash media server
How can you restrict bucket access so all requests must go via CloudFront?
Create an Origin Access Identity (essentially a new user with permission to call S3 bucket that is used by CloudFront)
What is the default CloudFront TTL?
24h
How could you restrict access to CloudFront data?
Signed URLs - can restrict by datetime, IP address rang etc.
If a signed CloudFront URL expires while a download is in progress, does it still complete?
Yes - although for RTMP distributions, if user skips to another position in the media file (which triggers another play event) after expiry, CloudFront won’t serve the media file.
Can WAF be used with CloudFront
Yes
How do multiple origins work in CloudFormation, in terms of which origin is used?
Failover
Routing based on path (e.g. /images/*.jpg)
Can geo-restrictions be used with CloudFront?
Yes - can whitelist or blacklist particular countries
What is AWS storage gateway?
Virtual appliance installed into a hypervisor running in an on-premises DC, which async replicates data to S3 of glacier
Which hypervisors does AWS storage gateway support?
VMware ESXi
Microsoft Hyper-V
What are the 4 types of AWS storage gateway?
File gateway - NFS
Volumes gateway (stored volumes) - iSCSI (block-based storage - vHDD stored in S3 as EBS snapshots)
Volumes gateway (cached volumes) - iSCSI (block-based storage - only most recently accessed data stored on site - rest in AWS)
Tape gateway - VTL - virtual tapes sent to S3
What are the 3 ways AWS storage gateway can communicate with S3/Glacier?
Direct connect
Internet
VPC
What is iSCSI?
Pronounced “i-scuzzy” - internet small computer systems interface
How does storage gateway: volume gateway work?
Data written to volumes is async backed up as point-in-time snapshot and stored in S3 as EBS snapshots
Snapshots are incremental (only changed blocks captured)
Snapshot storage is compressed
What are the two types of volume gateway?
Stored volumes - low-latency access to all data on-prem with incremental backups to S3 (as EBS snapshots)
Cached volumes - S3 is primary data storage while retaining frequently accessed data locally in storage gateway
What is the size range for volume gateway stored volumes?
1GB-16TB
What is the size range for volume gateway cached volumes?
1GB-32TB
What are the 3 types of snowball and the amount of data they can handle?
Snowball - 80TB
Snowball edge - 100TB - has compute capability (e.g. lambda on the edge)
Snowmobile - Peta/exo-byte
How does S3 transfer acceleration work?
Uses CloudFront edge network to accelerate uploads to S3
What is the URL format for S3 transfer acceleration?
.s3-accelerate.amazonaws.com
What do you pay for when S3 versioning is enabled?
Each version of the object - so 10 versions of a 1GB object results in charges for 10GB
What are the time limits for lifecycle transitions?
Standard -> IA = 30 days after created
IA -> Glacier = 30 days
What is the default maximum number of S3 buckets per account?
100
What is the maximum number of PUTs per second that S3 will allow?
3500
What are the pricing options for EC2 instances?
On-demand: fixed rate per hour (windows) or minute (linux)
Reserved: 1-3 year contract, pay up to 100% up-front for maximum discount
Spot: bid price you want for instant capacity
Dedicated hosts - physical servers
What is the use case for on-demand EC2 instances?
Need for flexibility
Short-term, spiky or unpredictable workloads that cannot be interrupted
Dev/test
What is the use case for reserved EC2 instances?
Apps with steady/predictable usage
Apps that require reserved capacity
What are the 3 types of reserved EC2 instance?
Standard RIs - up to 75% off on-demand price
Convertible RIs - up to 54% off - can change attributes providing creation of RIs of equal or greater value
Scheduled RIs - launch within time window you reserved on predictable recurring schedule
What is the use case for spot EC2 instances?
Workloads that can be interrupted and with flexible start/end times
Workloads only feasible at very low compute prices (e.g. genomics)
Users with urgent need for large amounts of additional capacity
When will you be charged for a terminated spot EC2 instance?
If you terminate, you’ll be charged for complete hour. If EC2 terminates, you won’t be charged
What is the use case for dedicated EC2 instances?
Software licences that don’t support multi-tenant or virtualized environments
Data protection laws that prohibit multi-tenant virtualized environments
What is EBS?
Elastic Block Storage - volumes that can be attached to EC2 instances
Is EBS durable storage?
Yes - an EBS instance is placed in a specific AZ and auto-replicated to protect from failure of single component
What is IOPS?
Input/output operations per second
What are the EBS volume types?
General purpose SSD - 3 IOPS per GB, max 10,000 IOPS, can burst upto 3000 IOPS for extended periods for volumes >3334GB
Provisioned IOPS (IO1) - for I/O intensive apps, up to 20,000 IOPS per volume
Throughput optimized HDD (ST1) - big data, warehousing, cannot be a boot volume
Cold HDD (SC1) - low cost, infrequently accessed workloads (e.g. file servers). Cannot be a boot volume
Magnetic (standard) - can be a boot volume, lowest cost per GB that is bootable - considered legacy
By default, what happens to an EBS volume when the EC2 instance it is attached to is terminated?
It is deleted (additional volumes are not deleted by default - just the bootable volumes)
What are the two EC2 instance status checks that AWS provides?
System status check - checks that packets get to instance (checking underlying hypervisor infrastructure)
Instance status check - checks packets get to OS
Can encrypted boot volumes be created using public AMIs?
No. Either:
Use third party tools (e.g. BitLocker)
Make a copy of AMI and enable encryption on the copy
Additional volumes can be encrypted
How many security groups can a single EC2 instance be associated with?
Many
How quickly do security group changes take effect?
Immediately
Can you use security groups to DENY specific traffic?
Not really - everything is blocked by default. There are only ALLOW rules - which is why multiple security groups are always compatible and can’t conflict
Can you use security groups to block an IP address?
No - use network access control lists for this
Are security groups stateful?
Yes - traffic in will be allowed back out
Are network access control lists stateful?
No - have to configure both ways
What is the SSH port?
22
What is the RDP port?
3389
What is the MySQL/Aurora port?
3306
What are the default settings for a security group?
All inbound traffic is blocked
All outbound traffic is allowed
Can volume type of EBS be changed while instance is running?
Yes - might be some performance degradation while it’s changing
Which EBS volume types cannot be changed?
Standard (magnetic) volumes
How can you migrate an EC2 instance to another region?
Copy the EBS snapshot (or AMI created from the snapshot) to another region using console/cli
Are volumes created from encrypted snapshots encrypted?
Yes
What are the two types of EC2 instance/AMI?
EBS-backed
Instance store backed (ephemeral)
What are the properties of instance store EC2 instances?
Can only be rebooted or terminated
Upon reboot or termination, any data on the instance will be lost
Longer provisioning times because store volume created from template in S3
What are the three types of ELBs?
Application load balancer - great for HTTP(S) - layer 7
Network load balancer - great for TCP where extreme performance required - layer 4
Classic load balancer - layer 7 and 4 - http(s) - legacy
What would a 504 error indicate from an ELB?
Struggling to communicate with whatever it’s balancing load to (e.g. EC2 instance)
What is the purpose of the X-Forwarded-For header?
EC2 instances only see private IP address of load balancer, therefore application or classic load balancer will pass on user’s IPv4 address in this header
How are instances monitored by ELB reported?
InService
OutOfService
How can health checks be configured for ELB?
Requesting a particular path over a particular protocol and port
What are the 4 broad EC2 metrics that CloudWatch can monitor?
CPU (usage)
Disk (IOPS)
Network (packets in/out)
Status (e.g. failed instance/system)
What actions can happen when a CloudWatch alarm is triggered?
Notification (SNS topic)
EC2 action (start, stop, restart etc.)
AutoScaling action
What are CloudWatch events?
Events are streamed when AWS resources change state - rules can be created to match selected events in the stream and route them to targets to take action (e.g. invoke lambda, put in Kenisis stream, create an EBS snapshot etc.)
How can logs be sent to CloudWatch?
There is an agent that can be installed on EC2 instances
What is the difference between CloudWatch and CloudTrail?
CloudWatch - logging and monitoring
CloudTrail - auditing
Can you change EC2 roles while the instance is running?
Yes
How can you get meta-data on an EC2 instance?
http://169.254.169.254/latest/meta-data/
How can you get the IP address of an EC2 instance?
http://169.254.169.254/latest/meta-data/public-ipv4
Is EC2 userdata suitable for sensitive information?
No - it’s not cryptographically stored
What comes first - launch configuration or autoscaling group?
Autoscaling groups require a launch configuration
What is a launch configuration?
A selected AMI, instance size etc. - essentially like configuring a new instance without actually creating it
What is an autoscaling group?
Uses a launch configuration to launch a desired number of instances into specific AZs (AWS will spread instances across selected AZs)
Autoscaling groups also need to know which ELB to use and about health check configuration
What are the 2 types of health check that autoscaling groups support?
EC2 (monitor health of instances)
ELB (uses load balancer health check config)
What is a health check grace period on autoscaling groups?
Length of time in seconds before health checks start to prevent instance being regarded as unhealthy while it is still being provisioned