8. Automation Flashcards

1
Q

Term for using code to define, deploy, configure, update, and remove infrastructure

A

Infrastructure as Code
(IaC)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name four benefits of IaC

A
  • Speed & Safety
  • Reusability
  • Versioning & documentation
  • Validation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the AWS IaC service?

A

CloudFormation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Where is CloudFormation IaC code stored?

A

In template files.

Those files should be stored in a repository.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CloudFormation templates can be written in what formats?

A

JSON & YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Like the CLI and Console, running a CloudFormation template does it’s work via ____________ .

A

API calls to AWS services

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Is there a cost for using CloudFormation?

A

No, only for the resources you create with it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How are environment-specific details configured when using CloudFormation?

A

By defining parameters in the template file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can manually-created resources be added to CloudFormation control?

A

CloudFormation’s
resource import

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The three things you work with in CloudFormation:

A
  • Templates
  • Stacks
  • Change Sets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a CloudFormation stack?

A

Related resources managed as a single unit.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can a CloudFormation stack be partially created?

A

No. All stack resources must all be created successfully.
If a stack resource can’t be created, CloudFormation rolls the stack back and
deletes any other resources that were created.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you modify an existing CloudFormation stack?

A
  • Run a modified template
    and/or
  • Provide new parameter values at runtime.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a CloudFormation
change set ?

A

The diff CloudFormation generates when changes are submitted for an existing stack.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How are cross-stack references created in CloudFormation?

A

Through Outputs

https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the recommended way to organize AWS resources into mulitple CloudFormation stacks?

A

By lifecycle and ownership .

This allows teams to group resources with similar lifecycles and to update them independently of other teams’ resources.

17
Q

What is AWS Solutions Library?

A

Solutions created by AWS (or AWS Partners) for various common use cases, and vetted by AWS Architects.

They include aids like reference architectures, CloudFormation templates, deployment guides and scripts.

https://aws.amazon.com/solutions/

18
Q

What is AWS Cloud
Development Kit (CDK)?

REV

A

A framework for using common programming languages to create and deploy CloudFormation templates.

Provides resources preconfigured according to best practices.

19
Q

What does AWS Systems Manager enable?

A

AWS System Manager enables:
* Creation of logical groups of AWS resources.
* Observability and investigation of resource groups.
* Change management and change automation of resource groups.

https://docs.aws.amazon.com/systems-manager/latest/userguide/what-is-systems-manager.html

20
Q

What is Elastic Beanstalk

A
  • You just provide your code.
  • Like Lambda for persistent applications
21
Q

What is Amazon CodeWhisperer?

A
  • Analyzes your comments and code in your IDE
  • Generates code suggestions, including complete functions.
  • Scans code for security vulnerabilities.