DevOps Professional Exam Flashcards

1
Q

If you do not specify a deletion policy on a CloudFormation stack, what is the default policy?

A

Delete

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

Name the 4 parts of a CFN structure?

A

Parameters
Mappings
Resources
Outputs

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

What do you pass in the “Parameters” section of a CFN object?

A

Password information, IP’s, names, etc

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

What do you pass in the “Resources” section of a CFN object?

A

Where a resource is configured and specified.

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

What do you pass in the “Outputs” section of a CFN object?

A

This displays the result of the CFN stack creation.

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

What two things CANNOT be changed in an Opsworks Stack without building it?

A

VPC & Region

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

Opsworks autohealing is enabled at the _______ level NOT the _______ level.

A

layer; stack

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

Opsworks autohealing is enabled at the _______ level NOT the _______ level.

A

layer; stack

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

What is the difference between DependsOn and (Creation Policies, Wait Conditions/Wait Condition Handlers)

A

DependsOn waits until the resource is active while the Creation Policies and Wait Conditions are for more complex actions that require the application to notify it’s ready.

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

What is the difference between Creation Policies and Wait Conditions/Wait Condition Handlers?

A

Creation Policies are only for EC2 and Autoscaling Groups.

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

What are the 5 Opsworks Lifecycle Events?

A
Setup
Configure
Deploy
Undeploy
Shutdown
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why does the “SETUP” event occur in the Opsworks Lifecycle Events?

A

Occurs when an instance has finished booting

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

Why does the “CONFIGURE” event occur in the Opsworks Lifecycle Events?

A
  • When an instance enters or leaves online
  • Associate or Disassociate EIP
  • Attach or detach a load balancer to layer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Why does the “DEPLOY” event occur in the Opsworks Lifecycle Events?

A

Occurs when you run the deploy command on an instance OR when your application is loaded on an OpsWorks stack.

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

Why does the “UNDEPLOY” event occur in the Opsworks Lifecycle Events?

A

Occurs when you delete an application or run undeploy

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

Why does the “SHUTDOWN” event occur in the Opsworks Lifecycle Events?

A

Runs when an instance is shutdown, but before the instance is terminated. Allows cleanup.

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

How many OPSworks stacks can an RDS instance be associated with?

A

1

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

An OPSworks stack clone operation (does/doesn’t) copy an existing RDS instance.

A

doesn’t

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

_________ allows you to install custom cookbooks from multiple repositories. Feature enables with Chef ______.

A

Berkshelf; 11.10

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

What are the 4 steps of the CodePipeline release process

A

Source
Build
Staging
Production

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

Instances can be in a Wait state for a finite period of time. The default amount of time is _______.

A

1 Hour

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

Max time instance can be in Wait state is ___ hours or _____ the heartbeat timeout, whichever is smaller.

A

48; 100x

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

At the conclusion of a lifecycle hook, the result is either __________ or __________.

A

ABANDON or CONTINUE

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

If you suspend ____________, Auto Scaling launches the instances but does not add them to the target group.

A

AddToLoadBalancer

25
Q

If you application performs operations or workflows that take a long time to complete, what service can the Elastic Beanstalk environment do for you?

A

Manages an SQS queue and running a daemon process on each instance.

26
Q

A ________________ configuration file can be used to deploy a set of Docker containers as an Elastic Beanstalk application.

A

Dockerrun.aws.json

27
Q

One of your instances in your Autoscaling group health check returns the status of Impaired to Auto Scaling. What will Auto Scaling do in this case?

A

Terminate the launch the new instance

28
Q

Cloudformation _________ allow you to preview how proposed changes to a stack might impact your running resources.

A

Change sets

29
Q

A ____________ is a container for an IAM role that you can use to pass role information to an EC2 instance when the instance starts.

A

Instance Profile

30
Q

With Elastic Beanstalk, ______________ have many environments, environments have many _____________.

A

Applications have many environments, environments have many deployments.

31
Q

Which EBS volumes are best for NoSQL Cluster deployments?

A

io1 -> Provisioned IOPS SSD

32
Q

A ________ queue is where other (source) queues can send messages that for some reason could not be successfully processed.

A

Dead Letter Queue

33
Q

AWS ________ does not directly support AWS OpsWorks for monitoring your stacks.

A

Config

34
Q

AWS DynamoDB ________ tables provide a fully managed solution for deploying a multi-region, multi-master database.

A

Global tables

35
Q

To determine whether a log file was modified, deleted, or unchanged after CloudTrail delivered it, you can use CloudTrail _______________ Validation.

A

Log File Integrity Validation.

36
Q

By default, your Elastic Beanstalk environment uses ________ deployments if you created with the console or EB CLI, or ___________ deployments if you created with a different client (API, SDK, AWS CLI)

A

rolling; all at once

37
Q

If an EC2 instance has failed a health check, what will the ELB do?

A

The ELB stops sending traffic to the instance that failed the health check.

38
Q

You need what to build a multi-container Docker platform using Elastic Beanstalk?

A

Prebuilt images stored in a public or private online image repository.

39
Q

What two deployment types are available with the CodeDeploy service?

A

In-place deployment

Blue/Green Deployment

40
Q

Instances that are on the ________ state in an Autoscaling Group are still part of the Autoscaling Group, but they do not actively receive traffic.

A

standby state

41
Q

Which caching engine does Opswork have built in support for?

A

Memcache - but you can customize your stack to use ElastiCache Redis if needed.

42
Q

Which two environment types are available in the Elastic Beanstalk environment?

A

Single instance

Load balancing, Autoscaling

43
Q

You are planning on use AWS Code Deploy in your AWS Environment. Which of the features of AWS Code Deploy can be used to specify scripts to be run on each instance at various stages of the deployment process?

A

AppSpec file (Application specification file)

44
Q

Where can you use intrinsic functions in a CloudFormation template?

A

Resource Properties
Outputs
Metadata Attributes
Update Policy Attributes

45
Q

What 4 commands are available for OpsWorks stacks?

A
  1. Update custom cookbooks
  2. Execute Recipes
  3. Setup
  4. Configure
46
Q

Which CLI command is used to spin up new EC2 instances?

A

aws ec2 run-instances

47
Q

You can only use _______ load balancers with OpsWorks stacks.

A

Classic

48
Q

In OpsWorks, each load balancer can only handle ______ layer(s).

A

one

49
Q

You can use the ______ Command from the Amazon EC2 console to configure instances without having to login to each instance.

A

Run Command

50
Q

In CloudFormation, for sensitive parameters values such as passwords, you can set the _______ property to true to ensure the password is not visible when anybody tries to describe the stack.

A

NoEcho

51
Q

What CLI command can be used to describe CloudFormation stack resources?

A

aws cloudformation list-stack-resources

52
Q

Elastic Load Balancer logs get produced but the service at what two intervals?

A

5 minutes and 60 minutes

53
Q

What is the amount of time that Opswork stacks service waits for a response from an underlying instance before deeming it as a failed instance?

A

5 minutes

54
Q

What is the BEST way to automation the creation of EBS snapshots?

A

Using Cloudwatch Events to trigger snapshots of EBS Volumes.

55
Q

There is no ______________ resource for CloudFormation.

A

AWS:EC2::Container

56
Q

Opsworks works with Chef recipes and not _________ containers.

A

Docker

57
Q

The __________ Elastic Beanstalk CLI command can be used to create an application in a specified environment.

A

eb create

58
Q

The _________ resource is used in CloudFormation to create a nested stack.

A

AWS::CloudFormation::Stack

59
Q

Where in the cloudformation template would you ideally pass user data?

A

The properties section of the ECS instance in the resource section.