Section 11 - Deployments & Managing Infrastructure at Scale Flashcards
Which service does this describe?
a service that gives developers and businesses an easy way to create a collection of related AWS and third-party resources, and provision and manage them in an orderly and predictable fashion
CloudFormation
What service does this describe?
A manner of outlining your AWS infrastructure, for any resources (most of them are supported by AWS)
CloudFormation
From an exam perspective, what service will be used when we have Infrastructure as Code?
Cloud Formation
From an exam perspective, what service will be used when we need to repeat an architecture in different environments, regions or AWS accounts
Cloud Formation
Which are advantages to CloudFormation (select two):
1. Costs
2. Helps to automate the building of static web sites
3. Helps to determine how to form a cloud?
4. Infrastructure as a Code
- Costs
- Infrastructure as a Code
With Infrastructure as a Code, changes to the infrastructure are (manually processed through the resource/reviewed through code)
Reviewed through code
Which are Costs benefits of CloudFormation (choose three)
1. It’s a free service, so there’s no associated costs to use it.
2. stacks are tagged with identifier so you can see how much each stack costs
3. CloudFormation is income driven so, the less profitable you are, the less the associated costs will be
4. can estimate the costs using Cloud Formation template
5. You can setup templates for when resources are created/terminated, thus saving you from paying for down time
2,4,5
Which are Productivity benefits of CloudFormation? (choose three)
1. CloudFormat will get up and punch you in the throat if you’re not staying productive
2. ability to destroy and re-create infrastructure on the fly
3. automated generation of Diagram for your templates
4. assists in manual generation of Diagram for your templates
5. declarative programming (no need to figure out ordering and orchestration)
2,3,5
CloudFormation - in addition to using templates in AWS, where else can they be found?
on the web
Does CloudFormation support all resources?
It supports, almost all, resources
If you need to use a non-supported AWS resource with Cloud Formation, you can use cus___ res______?
custom resources
This tool is a graphic tool for creating, viewing, and modifying AWS CloudFormation templates. With ________, you can diagram your template resources using a drag-and-drop interface, and then edit their details using the integrated JSON and YAML editor.
CloudFormation Designer
What are the two formats for CloudFormation templates?
JSON and YAML
What are the two formats for CloudFormation templates?
JSON and YAML
When using CloudFormation to create infrastructure, how do you later delete the resources created from that process?
Deleting the “stack” will then delete all of the resources that were created for the stack
When using CloudFormation to create infrastructure, what name of the “item” created by CloudFormation?
stack
This service allows you to code your infrastructure using a programming language other than what’s native to CloudFormation
AWS Cloud Development Kit
This service will compile a template from your language of choice (Python, javascript etc) into a CloudFormation JSON or YAML template that can be used by CloudFormation
Amazon Cloud Development Kit
what is meant by “Web App 3-tier” architecture
when uploading a web application in AWS, a user is directed to an Elastic Load Balancer ==> Auto Scaling Group of EC2 instances ==> database (or in-memory …ie ElastiCache)
As a developer on AWS, there’s really only one simple thing they actually want to utilize AWS for. What would that be?
to run their code
Most websites would have this architecture built into their web applications.
A load balancer combined with an auto scaling group
what service is considered a developer centric view of deploying an application on AWS
AWS Elastic Beanstalk
AWS Elastic Beanstalk is considered what type of service (Iaas, Saas, Paas)?
PaaS (platform as a service)
How much is using Beanstalk?
It’s free but you will pay for the underlying instances.
Elastic Beanstalk is a (managed/non managed) service.
Managed
What are the three architecture models for Elastic Beanstalk?
- Single Instance only (good for dev)
- Load Balancer & Auto Scaling Group - for production or pre-production web applications
- auto scaling group only - good for non-web apps in production
Elastic Beanstalk can support (one/just a couple/many) platforms.
many
How does Beanstalk handle health monitoring?
Beanstalk has a full monitoring suite within the service itself, there will be health agents on each instance that will push metrics to CloudWatch.
CloudFormation is utilized by what code-centric service?
Elastic Beanstalk
What is an important distinction between Beanstalk and CloudFormation?
Beanstalk is more “application” focused whereas CloudFormation is more “infrastructure” focused
What is another service that offers code deployment that is not related to Elastic Beanstalk nor CloudFormation?
CodeDeploy
a service that automates code deployments to any instance, including Amazon EC2 instances and instances running on-premises. This service makes it easier for you to rapidly release new features, helps you avoid downtime during deployment, and handles the complexity of updating your applications.
CodeDeploy
If you’re trying to update your software from version 1 to version 2, what two things does CodeDeploy work with?
EC2 instances
On-prem servers
Given that CodeDeploy work for EC2 instances and on-prem, it is considered to be a (public/private/hybrid) service.
hybrid
With the CodeDeploy Agent, servers and EC2 instances must be provisioned and configured (on demand/with a morning Batch file/ahead of time)
ahead of time
If you want to update your application from version 1 to version 2 for both EC2 instances and on-prem servers, all from a single interface, what service would be used for this?
CodeDeploy
An AWS offering that’s a competing product to GitHub
CodeCommit
If you want to store your code in AWS using a version controlled repository, what AWS service would you use?
CodeCommit
CodeCommit hosts G__ based repositories.
Git
What is a benefit to using CodeCommit
the code changes are fully versioned
CodeCommit is (managed by the user/fully managed by AWS), (not scalable nor highly available/scalable and highly available), and (open/private)
managed by AWS, scalable and highly available, private
CodeCommit is integrated with which AWS services?
all of them
AWS Code building service in the cloud
CodeBuild
CodeBuilder is (non managed/managed) and non serverless/serverless)
managed and serverless
True or False
CodeBuilder is scalable and highly available
True
This service compile source code from CodeCommit, runs tests and produces packages that are ready to be deployed
CodeBuild
This service orchestrates the different steps to have the code automatically pushed to production
CodePipeline
CodePipeline is a (non managed/fully managed) service
fully managed
From an exam perspective, if you see “orchestration of code”, think of this service
AWS CodePipeline
1 - CodeBuild A - build code in the cloud
2 - CodeCommit B - deploys code in hybrid manner (to AWS and on-prem)
3 - CodeArtifact C - orchestrates the deployment of code
4. - CodeStar D - AWS repository of code, similar to GitHub
5 - CodeDeploy E - effective artifact management service
6 - CodePipeline F - UI to manage software development
1A
2D
3E
4F
5B
6C
orchestrates steps to have code pushed to production
CodePipeline
code building service in the cloud
CodeBuild
deploys code to hybrid … AWS & on-prem servers
CodeDeploy
AWS code repository, similar to GitHub
CodeCommit
C___ D___________ is the term for software packages depending on one another to be built
code dependencies
which is the term applied to storing and retrieving code dependencies
artifact management
This service is a secure, scalable, and cost-effective artifact management for software development
CodeArtifact
this service works with common dependency management tools
CodeArtifact
from an exam perspective, if a team needs a artifact management system or a place to store their code dependencies
CodeArtifact
unified UI with dashboard to allow a developer to easily manage software development activities in one place
CodeStar
this service is a cloud IDE (integrated development environment) for writing, running and debugging code
Cloud9
Cloud9 run in the (desktop/cloud) compared to a classic IDE (integrated development environment) that runs in (the desktop/cloud)
cloud / desktop
which is an example of a classic IDE
Visual Studio Code
the service allows for code development in the cloud and code collaboration at the same time
Cloud9
Which service is primarily used for software version control?
CloudCommit
which service is this?
allows you to store artifacts using popular package managers and build tools like Maven, Gradle, npm, Yarn, Twine, pip, and NuGet. CodeArtifact can automatically fetch software packages on demand from public package repositories so you can access the latest versions of application dependencies.
CodeArtifact
AWS CodeS___ provides a unified user interface, enabling you to easily manage your software development activities in one place. With AWS CodeS____, you can set up your entire continuous delivery toolchain in minutes, allowing you to start releasing code faster.
CodeStar
This service helps you manager your fleet of EC2 and On-prem systems at scale
AWS Systems Manager (SSM)
AWS Systems Manager is a (private/hybrid/public) service. Why?
hybrid, because it manages both AWS and on-prem
This service provides operational insights about the state of your infrastructure
Amazon Systems Manager (SSM)
about how many products are included in the Amazon Systems Manager (SSM) service
10+
If you want to do automatic patching of all your services and instances for enhanced compliance OR run commands across an entire fleet of servers (similar to SCCM for Windows), what service would you use?
Amazon Systems Manager (SSM)
If you want to store parameter configuration using Amazon Systems Manager, what SSN product would you use?
SSM Parameter Store
Amazon Systems Manager (SSM) works for servers running which OS (choose two)
Windows
Mac OS
Linux
Windows
Linux
From an exam perspective, if you come across a question about patching all of your instances and services OR running commands on all servers, you would choose what instance?
Amazon Systems Managers (SSM)
How does the Amazon Systems Manager perform it’s magic on EC2 instances and servers?
Just like with SCCM, you would install an SSM agent which then communicates with SSM
Which AMIs have an SSM agent installed by default?
Linux AMI and some Ubuntu AMIs
You’re running an EC2 instance that has an SSM agent installed on it. When you use SSM to run commands and patches, you notice nothing is happening on your server. What is the first point of failure that you would consider?
the SSM agent
this service allows you to start a secure shell on your EC2 or on-prem server w/o the need for SSH access, bastion hosts, or SSH keys
Amazon Systems Manager (SSM) Session Manager
When using Amazon System Manger (SSM) Session Manager, port 22 is (open/closed)
disabled
Which OS are supported by Amazon Systems Manager (SSM) Sessions Manager?
Windows, Mac OS, and Linux
How does an EC2 instance or on-prem server connect to SSM Session Manager?
through the Amazon Systems Manager (SSM) agent
When using SSM Session Manager, log data can be sent to the following two places?
S3 and CloudWatch logs
What are three ways of accessing an EC2 instance?
1 Open port 22 and use SSH keys with a terminal
2.Use EC2 instance connect (SSH keys are required)
3. Session Manager
An Amazon Service created to work with “Chef” and “Puppet”
AWS OpsWorks
AWS OpWorks is an alternative to what AWS service?
AWS Systems Manager (SSM)