AAAAWWWSSSS Flashcards
The Well Architected Framework is a set of principles that AWS recommends as a way of evaluating the pros and cons of designing and implementing applications in the cloud.
The AWS Well Architected Framework’s 5 Pillars include:
- Reliability
- Performance Efficiency
- Security
- Cost Optimization
- Operational Excellence
Avoid the complete failure of your application. Replace a failed resource rather then try to fix it.
Reliability
Get the performance you desire without overprovisioning capacity, but also without sacrificing reliability. You can improve application performance by creating a CloudFront distribution to place your application’s content in edge locations that are closer to them.
Performance Efficiency
Concerned with ensuring the confidentiality, integrity, and availability of data. Only those people and systems that need access to data should have it and needs to be protected from unauthorized modifications.
Security
When securing data stored on your AWS Resources, you should know the following basic principles:
- Principle of Least Privileage: Create IAM user & resource policies that grant delete or modified access only to those principals that need it.
- Avoid data loss by using backup and replication: Create EBS snapshots to create recovery points for EC2 instances. Configure S3 object versioning & replication to make it possible to recover modified or destroyed data.
- Enforce Confidentiality by using encryption to protect data at rest as well as in transit.
- Track every activity that occurs on your AWS resources by enabling detailed logging.
Use cloud to meet your needs at the lowest possible cost. Use AWS Cost Explorer and Cost/Usage Reports to see how much your spending on AWS Services. Also save money by purchasing instance reservations or using spot instances to save over on-demand costs.
Cost Optimization
Automating the processes required to achieve and maintain the other 4 goals/principles. Improve and automate more activities for the purpose of strengthening the other pillars.
Operational Excellence
- Reliability: Use Elastic Load Balancing Health Checks to monitor health of applications running on several EC2 instances.
- Performance Efficiency: Use EC2 Auto Scaling dynamic scaling policies to scale in and out automatically.
- Security: Use CodeBuild to automatically test new application code for security vulnerabilities. When deploying an application use CloudFormation to automatically deploy fresh, secure infrastructure rather than following a manuel checklist.
- Cost Optimization: Implement S3 object life cycle configuration to delete unneeded objects. Or automatically have certain applications shut down and restart at certain times of the day.
- Scale the size of the Auto Scaling group in or out between 1 and 3 instances, depending on the average aggregate CPU utilization of the instances:
- On the other hand, if the utilization drops below 50%, it indicates that you have more instances than you need, so Auto Scaling will scale in:
- Dynamic Scaling Policy
- Target Tracking Policy
Difference between Static and Dynamic Website
- Static: refers to the sites assets sitting in the S3 Bucket. You can update these files as much as you want, but what’s delivered to the end user is the same content that’s stored in S3.
- Dynamic: Use server-side processing to modify the content on the fly just before sending it to the user.
**Rule of thumb, is a website uses a database for storing any information, it’s a dynamic website.
S3 Bucket. By default, files in S3 buckets are not public. Your bucket name must be the same as the domain name. Static Websites that are hosted on S3 do not use what
- They do not use encrypted HTTPS, meaning the content you serve is not encrypted and can be read in transit. If you want to use HTTPS to secure your static website, you can do so by creating a CloudFront distribution (which is encryption in transit).
What are examples of applying the principles of the security pillar of the WAF.
- Granting each AWS user their own IAM username and password.
- Enabling S3 Versioning
What is required to enable S3 static website hosting on a bucket
Enable Bucket hosting in the S3 Service console
What feature of S3 improves the security of data you store in an S3 bucket
- Objects in S3 are not public by default
- By default, S3 removes ACLS that allow public read access to objects.
What contains the configuration information for instances in an Auto Scaling group
Launch Template
How does an application load balancer enable reliability
By routing traffic away from failing instances