Pre-exam SSA Flashcards
How would you connect to an RDS database using profile credentials specific to an EC2?
IAM DB authentication
How long is an RDS auth token valid for?
15m
Which DB engines support IAM auth in RDS?
MySQL and Postgres
Is IAM DB auth in RDS over SSL?
Yes
How would you grant access to a secret manager (e.g. parameter store or secret manager) from an ECS container, resource-based policy or IAM role?
IAM role - a resource based policy would be too broad
If you have a legacy web-app with a static hard-coded IP address, how can you introduce some fault tolerance?
Can’t use ELB, so use lambda script to switch elastic IP from one instance to another if health check (written in the lambda) fails
Can a single custom aurora endpoint handle different sorts of traffic and direct them to the correct instances?
Yes - read and write traffic can be sent to the relevant group of instances, or for read traffic to the read endpoint (which load balances across all read-capable instances)
Does an aurora replica increase write capacity?
No - only read capacity. They can act as failover targets
What is the most cost-effective EBS volume for high-throughput access to infrequently-accessed data?
Cold HDD (SC1) (good for throughput compared to IOPS, and fine for IA data)
Which EBS volumes can be boot volumes?
Provisioned IOPS (IO1) and general purpose (GP2)
What are the 3 deployment types available for lambda in CodeDeploy?
Canary (new version gets some traffic and then all the remaining later on)
Linear (more traffic shifted over time)
All at once (switch over straight away)
What can you change about an EBS volume while it’s running?
If using a supported instance (all current generation) and storage was attached after 3rd November 2016, you can modify the volume’s size, type and IOPS capacity without service interruptions.
You can’t decrease the size of a volume (you’d have to migrate data to a new disk).
You can’t change an attached gp1 to st1 or sc1 (any of the magnetic family) - you have to detach first
Can you take an EBS snapshot while an app is running?
Yes - an in-progress snapshot is not affected by ongoing reads and writes to the volume.
If you’re using a RAID config, you need to stop things, flush caches etc.
How can you setup SNI SSL for a website in AWS?
Application Load Balancer
Cloudfront web distribution
NOT a classic load balancer
What is the relationship between EBS volumes, EBS snapshots and EC2 instances in terms of the AZs they’re in?
EBS volume in one AZ
EBS volume can only be attached to an EC2 instance in the same AZ
Snapshots redundantly stored across multiple AZs
What’s the easiest way to asynchronously process a simple request to an application?
Invoke a lambda function asynchronously
Describe glacier expedited retrieval and provisioned retrieval capacity
Expedited retrieval is a way of retrieving archives quickly. Other ways are standard and bulk. Expedited is the most expensive, and for archives <250mb, is typically done within 1-5 minutes.
The speed of expedited retrieval will vary depending on load, so you can buy provisioned capacity to guarantee 150mb/s throughput. It’s expensive ($105 per unit per month).
Each unit guarantees 3 expedited retrievals every 5 minutes and up to 150mb/s of retrieval throughput
Is read/write autoscaling enabled by default in DynamoDB?
No
What is “edge to edge routing via a gateway” and is it supported?
Where two VPCs are peered and one of them has some gateway (e.g. a VPN or internet gateway) - the VPC without the gateway can’t route to the gateway in the other VPN
What is “edge to edge routing via a gateway” and is it supported?
Where two VPCs are peered and one of them has some gateway (e.g. a VPN or internet gateway) - the VPC without the gateway can’t access resources on the OTHER SIDE of the gateway in the other VPC (e.g. a corporate network). Likewise, the resources in the corporate network couldn’t access the other VPC
How can you configure active-active and active-passive routing in Route53?
These aren’t first class concepts in Route53.
Active-active: use any routing policy other than failover
Active-passive: use failover
How would you lock down files in S3 to specific clients?
Use pre-signed S3 URLs and remove permissions for anyone else.
Could use S3 - set up an OAI and use CloudFront URLs or signed cookies.
Beware - some questions might give part of the solutions as a potential answer but you have to make sure everything is locked down
How can you have SSL for multiple domains on an ALB?
Upload multiple certificates - ALB will use SNI to select the correct one
Use one certificate with Subject Alternative Name (SAN) - but you will have to reprovision the certificate every time you add a new domain
What is the block size range for a VPC?
Between /16 and /28
What IP address ranges are allowed in a VPC?
10/8
- 16/12
- 168/16
In what scenario will you be billed for an on-demand instance being in the “stopping” state?
If it’s preparing to hibernate