11 - Automating Your AWS Workloads Flashcards
What is automation in the context of cloud architecture?
Automation is a best practice that allows common tasks to be repeated faster than doing them manually.
List some benefits of automation.
- Rapid testing and experimentation
- Reducing expenses
- Minimizing human error
- Rolling back changes safely and completely
True or False: Automation replaces humans in all tasks.
False
What are the two approaches to automation mentioned?
- Imperative
- Declarative
What is the imperative approach to automation?
It involves scripting where explicit steps are provided to carry out a task.
What is an example of an imperative approach?
Writing a Bash script to install a web server on an instance.
What does the declarative approach focus on?
It focuses on declaring the desired result of a task rather than how to carry it out.
What is CloudFormation?
CloudFormation is an AWS service that takes a declarative approach to building and configuring AWS infrastructure.
Define Infrastructure as Code (IaC).
IaC is using code to define your infrastructure and configurations, which reduces human error.
What are some AWS services that enable automation?
- CloudFormation
- CodeCommit
- CodeBuild
- CodeDeploy
- CodePipeline
- EC2 Auto Scaling
- Systems Manager
- OpsWorks
What are templates in CloudFormation?
Templates are text files that define the resources CloudFormation will create and how to configure them.
In what formats can CloudFormation templates be written?
- JSON
- YAML
What is a stack in CloudFormation?
A stack is a container that organizes the resources described in a template.
What happens when you delete a stack in CloudFormation?
CloudFormation automatically deletes all the resources in that stack.
What is the purpose of stack updates in CloudFormation?
To modify individual resources in a stack by adjusting the template.
What is a change set in CloudFormation?
A change set allows you to review specific changes before executing them.
What is drift detection in CloudFormation?
A feature that monitors stacks for manual changes and alerts you when they occur.
How does CloudFormation compare to the AWS CLI?
CloudFormation keeps resources in a stack and manages updates easily, while the AWS CLI requires manual management of resources.
What is CodeCommit?
CodeCommit is a service that allows you to create private Git repositories integrated with AWS services.
What is the primary purpose of CodeBuild?
CodeBuild is a fully managed service that prepares source code for deployment.
What is continuous integration (CI)?
A practice where developers check in code multiple times a day, with automated testing to ensure functionality.
What types of build environments does CodeBuild offer?
- build.general1.small
- build.general1.medium
- build.general1.large
What is CodeDeploy used for?
CodeDeploy is used to automatically deploy applications to various environments like EC2 and on-premises servers.
What must be installed on an instance to use CodeDeploy?
The CodeDeploy agent.