Module 11: Automating Flashcards

1
Q

Why automate ?

A

Because manual processes are error prone, unreliable and inadequate to support agile business

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

Risk of manual processes

A

Not repeatable at scale
No version control
Lacks audit trails
Inconsistent configurations

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

Benefits of automation

A

Reduce manual intervention and access
Allows reproduicle environments
Improves productivity
automates testing and scaling

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

What is IaC

A

Infrastructure as Code

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

What is the principle of infrastructure as code

A

it’s the practice to enable creation, deloyment and maintenance of infrastructure in a programmatic way.

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

IaC definition

A

Infrastructure as code (IaC) is an industry term that refers to the process of provisioning and managing cloud resources by defining them in a template file that is both human-readable and machine-consumable

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

IaC benefits

A

Rapidly deploy complex environment with consistency
Propagate change to all stacks by modifying the template
Easy clean up…

Reusable, repeatable, maintainable.

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

What is Cloudformation?

A

Cloudfromation provisions resources by using infrastructure as code.

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

Services working with cloudformation

A

AWS Beanstalk: SaaS to manage web apps programmed in Go, Java, .Net, Node JS PHP r Python. You send your app to beanstalk and it will fully manage the cloud ressources for you.

AWS Quick starts: Automated ref archtitecture based on template.

AWS Serverless Application Model (SAM): To build serverless architecture

AWS Amplify: A dev framework for full stack web and mobile app, with a facilitated code

AWS Cloud Dev Kit: Open source dev framework to model and provision resources through cloudformation

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

How does cloud formation work?

A

You define the resources in a template and create the template from scratch or use a prebuilt template. You upload the template or store it and then you create the stack action. Then you observe the progress, and once created you get to use the stack to manage the created ressources centrally

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

What is the trick when developing an automation where cloud formation is not supported ?

A

Go through a lambda function to reach the service

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

What is the syntax of Cloudformation template ?

A

YAML or JSON
(YAML optimized for readability and supports embeded comments)
(JSON widely used, data in JSON can be used by many sysems, less complex to parse and generate than YAML)

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

How should I manage my templates ?

A

Like I would do source code. I store them in a repository

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

Example of YAML formated template.
+
What is the only mandatory field in a template?

A

Resources is the only mandatory field

AWSTemplateFormatVersion: “version date” Description: StringMetadata: template metadataParameters: set of parametersRules: set of rulesMappings: set of mappingsConditions: set of conditionsTransform: set of transformsResources: set of resourcesOutputs: set of outputs

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

Where can I design my templates

A

Any text editor to right code or AWS Cloud Formation Designer, A template editor helping in the build with a canvas as a drag and drop interface to create code

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

Why is it a clever thing to do to use a single template for creating dev and prod environment?

A

Because like that, same application bnaries same Java version same db version. Far easier to manage.

17
Q

OK my dev and prod environment are on the same template… But what if I need to update my databse. I can’t test ? What is the tool that allows to test new configurations?

A

Yes you can test new conf by usinga “change set”.
You create xour change set. You examine how it responds. Once happy you run the change set and tadaaa!

18
Q

Nice thing to do when using change set is to organise deletion policy so as not to have build up

A

That’s just it. re-read again if you don’t know it.

19
Q

What is the use of the “Detect Drift” Function ?

A

Sometimes the application that you push through the template is changed by someone manually. A detect drift will tell you if your app deviates from the original template

20
Q

As the org grows and you have more template you will have need for what?

A

Some order and organisation because it can get messy. AWS gives some good practices on the topic.

21
Q

What is AWS quick start for ?

A

It provides Cloud formation template and are best practices standard for security and high availability

22
Q

Added benefits of Quick start ?

A

You get a deployment guide with the template

23
Q

Infrastructure as code has benefits but:

A

Coding can be tricky. Human error, differing skill levels, size and complexity, sec vulneraiblities…

24
Q

What is Amazon Q developer for

A

Gen AI coding assistant

25
Q

Amazon Q developer helps you accross your dev lifecycle, but what is the dev lifecycle ?

A

Plan
Create
Test and secure
Operate
Maintain and modernise

26
Q

What is the Well architected pillar that is the closest to IaC?

A

Operational Excellence

27
Q

What are Operational Excellence principles for IaC

A

Use IaC, frequent small and reversible changes, fully automate integration and deployment

28
Q

SECURITY and IAC

A

Automate security best practices

29
Q

Reliability and IAC

A

Deploy changes with automation
Use automation when obtaining or scaling resources

30
Q
A