AWS Developer Associate - C02 (Set 1) Flashcards
The ALB does not show the application servers the IP of the client directly. How can the application servers see the IP of the client?
By looking at the X-Forwarded-For Header
Which ELB has Cross-Zone Load Balancing enabled by default?
ALB
ALB uses what protocols?
HTTP & HTTPS
What is the order of hierarchy with an ASG, ELB, and EC2 instances
Users access ELB, which points to the ASG, which points to EC2 instances
NLB uses what protocols?
TCP & UDP
What is an example target if you use ASG Target Tracking Scaling?
To keep the CPU Utilization below 70%
Which is higher performing in latency and requests/second, NLB or ALB?
NLB
What is ASG Simple / Step Scaling?
Adding X units after a CloudWatch Alarm is triggered.
ie: When a CloudWatch Alarm is triggered (CPU > 70%), then add 2 units
What are the target groups for NLB?
EC2 Instances, IP Addresses, ALB, Health Checks
ASG Scheduled Actions
Anticipates scaling based on known usage patterns
What is ASG Predictive Scaling?
Continuously forecasting load and scheduling scaling ahead of expected high usage periods.
Metrics to scale on for ASG:
CPUUtilization, RequestCountPerTarget, Average Network in / out, Any other custom metric
What is scaling cooldown, and what is the default time for it?
After a scaling activity happens, you are in the cooldown period, with a default of 300 seconds
What are the target groups for ALB?
EC2 Instances, ECS tasks, Lambda Functions, IP Addresses
What types of Databases can you have within RDS?
Postgres, MySQL, MariaDB, Oracle, Microsoft SQL Server, Aurora
RDS Read Replicas use what type of reads?
RDS Read Replicas are asynchronous, so they use eventually consistent reads.
Aurora grows in increments of ___ GB up to ___TB
10 GB … 128 TB
Does RDS & Aurora support at-rest or in-flight encryption?
Both, KMS for at rest and TLS-ready by default
What types of ElastiCache are there?
Redis and Memcached
Which Elasticache is highly available?
Redis
Which Elasticache is non persistent?
Memcached
Which Elasticache supports backup and restore features?
Redis
Which Elasticache supports sharding and multi-threaded architecture?
Memcached
Which cache of ElastiCache is simpler in terms of setup and use?
Memcached
Each Route53 record contains (5):
Domain/subdomain Name, Record Type (A/AAAA), Value, Routing Policy, TTL
What types of DNS record types does Route53 support?
A, AAAA, CNAME, NS
What is Record Type A?
Maps a hostname to IPv4
What is Record Type AAAA?
Maps a hostname to IPv6
What is Record Type CNAME?
Maps a hostname to another hostname
What is Record Type NS?
Name Servers for the Hosted Zone
What is the subdomain in the following example: http://www.tinydancinghorse.com ?
www
What is the Top level domain in: http://www.tinydancinghorse.com ?
com
What is the Domain Name in the following example: http://www.tinydancinghorse.com ?
tinydancingHorse
What is the Root domain in: http://www.tinydancinghorse.com?
Tinydancinghorse.com
What does a CNAME do in Route53?
Points a hostname to any other hostname (app.mydomain.com -> bla.anything.com)
What does an Alias do in Route53?
Points a hostname to an AWS Resource (app.mydomain.com -> bla.amazonaws.com) AND Works for ROOT domain and NON ROOT domain
What Record type is an Alias Record in Route53
A or AAAA
How do you set the TTL for an Alias Record in Route53?
You can’t
What types of Routing Policies does Route53 support? (7)
Simple, Weighted, Failover, Latency Based, Geolocation, Multi-Value answer, Geoproximity
What does simple routing policy do?
Routes traffic to a single resource. If multiple values are returned, random one is chosen by the client.
What does the weighted routing policy do?
Control the % of the requests that go to each specific resource
What does the latency-based routing policy do?
Redirects to the resource that has the least latency close to us - Latency is based on traffic between users and AWS Regions
Where do Route53 health checks if an EC2 instance is within an ASG within an ALB?
The ALB
Are Route53 health checkers inside or outside of the VPC?
Outside
What does the Geolocation Routing Policy do?
Routes based on user location, specific to continent, country, or state
What does the Geoproximity routing policy do?
Routes traffic to resources based on the geographic location of users and resources
What do Internet Gateways do for VPCs?
Helps our VPC instance connect with the external internet
What do NAT Gateways do?
Allows our VPC to access the internet through the Internet Gateway (IGW) while staying private
What is a NACL?
A Network ACL is a firewall which controls traffic to and from a subnet, which can have ALLOW or DENY rules, only including IP addresses
What is a security group?
A firewall that controls traffic to and from an ENI/EC2 Instance. It can only have ALLOW rules, which include IP addresses and other security groups
What AWS services access a VPC through a VPC Endpoint?
S3 and DynamoDB
What AWS services access a VPC through a VPC Endpoint Interface?
Anything other than S3 and DynamoDB
What is the URL for EC2 Instance Metadata?
http://169.254.169.254/latest/meta-data
Can you retrieve the IAM Role name or the IAM policy from the metadata?
Just the IAM Role name
What API call do you need to use for MFA?
STS GetSessionToken; $> sts get-session-token
What S3 encryption type requires HTTPS over HTTP?
SSE-C
What is the default encryption in S3?
SSE-S3
Why can’t you generate a pre-signed S3 URL and paste it in the browser if you use SSE-C?
For non-SSE-C objects, you can generate a presigned URL and directly paste that URL into a browser to access the data. However, you cannot do this for SSE-C objects, because in addition to the presigned URL, you also must include HTTP headers that are specific to SSE-C objects. Therefore, you can use presigned URLs for SSE-C objects only programmatically.
What must be enabled to use MFA delete in S3?
Versioning must be enabled.
What is the purpose of CloudFront?
It is a CDN (Content Delivery Network) that gives developers an easy and cost effective way to distribute content with low latency and high data transfer speeds.
What is the API in CloudFront that invalidates part of the cache?
CreateInvalidation API
Where are Docker images stored in AWS?
Amazon ECR (Elastic Container Registry)
What is AWS Fargate and which AWS Services does it support?
It is Amazon’s own Serverless container platform, which works with ECS and EKS
What are the two launch types for ECS?
EC2 & Fargate
What is the difference between Fargate and EC2 launch types for ECS?
Fargate is serverless with no infrastructure to manage, while EC2 Launch type requires you to provision & maintain the EC2 Instances
What is a Task Role?
It allows the containers in your task to assume an IAM role without having to use AWS credentials inside the containers.
Which Load Balancer is not compatible with ECS Fargate?
CLB - Classic Load Balancer
Which ECS Launch type(s) does EFS work with?
Both EC2 and Fargate
Is EFS serverless or not?
Serverless
What is Target Tracking ECS Autoscaling?
Scales based on a target value for a specific CloudWatch metric
What is Step Scaling ECS Autoscaling?
Scales by adding X tasks based on a specific CloudWatch alarm
What is Scheduled Scaling ECS Autoscaling?
Scales the number of ECS tasks based on the time or day.
What is the problem with autoscaling for EC2 ECS?
ECS Service autoscaling only scales at the task level, it does not scale the EC2 instances
What are the 7 crucial bits of information in an ECS Task Definition?
Image Name, Port binding for container & host, Memory & CPU, Environment Variables, Networking Information, IAM Role, Logging Config
For which ECS Launch type can you define a Task Placement Strategy or Task Placement Constraints?
ECS EC2
Is EFS Multi-AZ by default?
Yes
What is the Login command for Amazon ECR?
Aws ecr get-login-password
What is the managed Node Group in EKS?
It creates and manages EC2 instance nodes for you, which are a part of an ASG managed by EKS
What are Self-managed nodes in EKS?
Nodes created by you and managed by an ASG
What maintenance is required for Fargate with EKS?
None required as there are no nodes to be managed.
What are the 3 Elastic Beanstalk components?
Application, application version, and Environment
What is the directory for Elastic Beanstalk Extensions?
.ebextensions/
What is the suffix for Elastic Beanstalk extension files?
.config
What does Elastic Beanstalk rely on under the hood?
CloudFormation
What are the 6 components of a CloudFormation template?
Resources (mandatory), Parameters, Mappings, Outputs, Conditionals, Metadata
What is in the resources component of CloudFormation?
The aws resources declared in the template
What is in the parameters component of CloudFormation?
The dynamic inputs for your template so you can input custom values each time you create or update a stack
What is in the mappings component of CloudFormation?
Maps, their keys, and values which can be referenced in your CloudFormation template.
What is in the outputs component of CloudFormation?
Outputs from the current stack, which can be referenced by other stacks.
How do you reference a parameter in cloudFormation?
Fn::Ref or !Ref
When to use parameters instead of mappings in CloudFormation?
When the values are really user specific
How do you access values in a map?
Fn::FindInMap or !FindInMap
What are the three parameters passed into the !FIndInMap function?
MapName, TopLevelKey, SecondLevelKey
Can you delete a stack if one of its outputs is referenced by another CloudFormation stack?
No, you must delete the stacks that reference the base stack before deleting the base stack.
How do you use an output value in a different stack?
Fn::ImportValue or !ImportValue
What is the function to reference parameters or resources?
Fn::Ref or !Ref
What is the function to get attributes?
Fn::GetAtt or !GetAtt
What is the function used to access a map value?
Fn::FindInMap or !FindInMap
What is the function used to import values exported in other templates?
Fn::ImportValue or !ImportValue
What happens in a CloudFormation rollback when stack creation fails?
Everything gets deleted
What happens in a CloudFormation rollback when the Stack Update fails?
The stack automatically rolls back to the previous known working state.
What is CloudWatch mainly used for?
Providing metrics, logs, events and alarm