Cloudformation Flashcards

1
Q

____ is a service that allows you to manage, configure, and provision your AWS infrastructure as code.

A

Cloudfront

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

_____ are defiened using a Cf template

A

resources

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

CF integrates the template and makes the appropriate ____ calls to create the resources you have defined.

A

API

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

Cloudformation supports ____ and ____.

A

Yaml and JSON

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

WHich of the following are CF benefits:

  • Infra is provisioned consistently, with fewer mistakes
  • Less time and effort than configuring things manually
  • You can version control and peer review your templates
  • FRee to use (charged for what you create)
  • Can be used to manage updates and dependencies
  • CAn be used to rollback and delete teh entire stack as well.
A

All of the above

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

___ or ____ template is used to describe the endstate of the infra you are either provisioning or changing

A

Yaml or Json

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

After creating the template, you upload it to CloudFormation using ____

A

S3

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

CF reads the templates and makes ___ calls on your behalf

A

API

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

The resulting resources are called a _____

A

stack

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

Put the CF template structure in order-

InstanceID:

Value: !Ref EC2 Instance

Outputs:

Description: The Instance ID

A

Outputs:

InstanceID:

Description: The Instance ID

Value: !Ref EC2 Instance

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

____ is the only mandatory section of the CF template

A

resources

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

Remember the ____ section is used to reference additional code stored in S3, allowing for code re-use

ie: for Lambda code or template snippets/reusable pieces of CF code.

A

Transform

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

_____ an extension to CF to define serverless apps

A

(SAM) Serverless Application model

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

T or F

SAM provides simplified syntax for defining serverless resources: APIs, Lambda Functions, DynamoDB Tables, etc.

A

True

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

Use the SAM ____ to package your deployment code; upload it to S3 and deploy your serverless app.

A

CLI

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

SAM CLI commands

A

sam pacakge \

–template-file ./mytemplate.yml

–output -template -file sam-template.yml\

–s3-bucket s3-bucket-name

17
Q

SAM Deploy Commands

A

–template-file sam-template.yml\

–stack-name mystack\

–capabilities CAPABILITY_IAM

18
Q

SAM = ___ ____ ____

A

serverless application model

19
Q

SAM allows you to define and privision serverless apps using ____

A

CloudFormation

20
Q

SAM uses the SAM ____ commands to package and deploy:

SAM ____: packages your app and uploads to S3

SAM ____: deploys your serverless app using CF

  1. deploy
  2. CLI
  3. package
A

CLI; package;deploy

21
Q

CF Nested stacks

Allow _____ of code for common use cases

ie: standard config for a LB, web server, app server, etc.

A

Re-use

22
Q

CloudFormation Nested Stack

instead of copying out the code each time, create a standard ____ for each common use case and reference from within your CF _____.

A

template

23
Q

____ ____ allow you to resuse CF code so you don’t need to copy/paste every time.

A

nested stacks

24
Q

nested stacks are really useful for ___ used configs

ie: for LB, web app servers.

A

frequently

25
Q

Nested Stacks

simple create a CF template, store it in S3, and you can reference it in the ____ section of any CD template using the stack _____ type.

A

resource

26
Q
A