freecodecamp Flashcards
ElasticBeanstalk
Which deployment method should be used if a fast rollback is required?
Immutable
This creates a new set of instances and switches the load balancing.
The old servers are still present.
ElasticBeanstalk
What are the 6 Linux Server Configurations?
PUCCFS
Packages - What additional packages (nginx, redis e.g.) should be installed Usually done with “yum”
Users/Groups
Commands - Runs commands, such as staring nginx
Container Commands
Files - Creates files, for example for configs
Services - Checks the status of a service (nginx - ensureRunning: true)
ElasticBeanstalk
You need to get the AMI of a specific Java Version, how to do this?
Use the describe-platform-version command with the region and the platform-arn parameter
ElasticBeanstalk
Where are the configuration files stored?
.ebextenstions
ElasticBeanstalk
It takes to long to start up a service, what can be done?
Use a custom AMI with all needed services baked in
ElasticBeanstalk
What is the CLI command to swap environments?
eb swap [original] –destination_name [new]
ECS
What is an essential container?
Required setting, if this container fails or stops, all other container will be stopped.
A task has at least one essential container
ECS
How to include secrets form the Parameter store?
Use the Value From instead of Value in the Environment variables
X-Ray
What does the Service Graph show?
Client, front-end services (lambda, sns, ec2), back-end services (databases)
It improves view into bottlenecks and latency spikes
X-Ray
What is a segment, and what data does it show?
A segment is the service that is sending data like it’s IP, the taken request, what work has been done, if it was successful or not (and the reasons)
X-Ray
You know that there are failed requests, but you cannot see them in X-Ray - what could be a reason?
The sampling rate is too low
ACM
Which services can you attach a certificate to?
ELB
CloudFront
API Gateway
(ElasticBeanstalk through an ELB)
ACM
What is SSL Termination?
The encryption is decrypted on the ALB
Route53
How to connect to on-premise servers?
Use Route53 Resolver
CLI
You need to switch between Accounts while using the CLI, what can be done?
using the profile parameter
aws s3api list-buckets –profile admin_mark
The profile makes reference to the .credentials file
[mark] aws_access_key=123 aws_secret_access_key=ABC [admin_mark] .. ..
KMS
What are the common five KMS CLI commands
aws kms create-key aws kms encrypt aws kms decrypt aws kms re-encrypt aws kms enable-key-rotation
SQS
You have messages around 3mb and want to deliver them to SQS using the PHP SDK, how can this be done?
It cannot be done with the SDK for PHP.
But for Java you can use the SQS Extended Client Library for Java for messages up to 2GB.
It will put the message to S3 and send the reference to SQS.
Parameter Store
What are the differences between Standard and Advanced tier?
4kb / 8kb
10.000 params / 100.000 params
no policies / parameter policies