DevOps Professional Exam Flashcards
If you do not specify a deletion policy on a CloudFormation stack, what is the default policy?
Delete
Name the 4 parts of a CFN structure?
Parameters
Mappings
Resources
Outputs
What do you pass in the “Parameters” section of a CFN object?
Password information, IP’s, names, etc
What do you pass in the “Resources” section of a CFN object?
Where a resource is configured and specified.
What do you pass in the “Outputs” section of a CFN object?
This displays the result of the CFN stack creation.
What two things CANNOT be changed in an Opsworks Stack without building it?
VPC & Region
Opsworks autohealing is enabled at the _______ level NOT the _______ level.
layer; stack
Opsworks autohealing is enabled at the _______ level NOT the _______ level.
layer; stack
What is the difference between DependsOn and (Creation Policies, Wait Conditions/Wait Condition Handlers)
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.
What is the difference between Creation Policies and Wait Conditions/Wait Condition Handlers?
Creation Policies are only for EC2 and Autoscaling Groups.
What are the 5 Opsworks Lifecycle Events?
Setup Configure Deploy Undeploy Shutdown
Why does the “SETUP” event occur in the Opsworks Lifecycle Events?
Occurs when an instance has finished booting
Why does the “CONFIGURE” event occur in the Opsworks Lifecycle Events?
- When an instance enters or leaves online
- Associate or Disassociate EIP
- Attach or detach a load balancer to layer
Why does the “DEPLOY” event occur in the Opsworks Lifecycle Events?
Occurs when you run the deploy command on an instance OR when your application is loaded on an OpsWorks stack.
Why does the “UNDEPLOY” event occur in the Opsworks Lifecycle Events?
Occurs when you delete an application or run undeploy
Why does the “SHUTDOWN” event occur in the Opsworks Lifecycle Events?
Runs when an instance is shutdown, but before the instance is terminated. Allows cleanup.
How many OPSworks stacks can an RDS instance be associated with?
1
An OPSworks stack clone operation (does/doesn’t) copy an existing RDS instance.
doesn’t
_________ allows you to install custom cookbooks from multiple repositories. Feature enables with Chef ______.
Berkshelf; 11.10
What are the 4 steps of the CodePipeline release process
Source
Build
Staging
Production
Instances can be in a Wait state for a finite period of time. The default amount of time is _______.
1 Hour
Max time instance can be in Wait state is ___ hours or _____ the heartbeat timeout, whichever is smaller.
48; 100x
At the conclusion of a lifecycle hook, the result is either __________ or __________.
ABANDON or CONTINUE
If you suspend ____________, Auto Scaling launches the instances but does not add them to the target group.
AddToLoadBalancer
If you application performs operations or workflows that take a long time to complete, what service can the Elastic Beanstalk environment do for you?
Manages an SQS queue and running a daemon process on each instance.
A ________________ configuration file can be used to deploy a set of Docker containers as an Elastic Beanstalk application.
Dockerrun.aws.json
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?
Terminate the launch the new instance
Cloudformation _________ allow you to preview how proposed changes to a stack might impact your running resources.
Change sets
A ____________ is a container for an IAM role that you can use to pass role information to an EC2 instance when the instance starts.
Instance Profile
With Elastic Beanstalk, ______________ have many environments, environments have many _____________.
Applications have many environments, environments have many deployments.
Which EBS volumes are best for NoSQL Cluster deployments?
io1 -> Provisioned IOPS SSD
A ________ queue is where other (source) queues can send messages that for some reason could not be successfully processed.
Dead Letter Queue
AWS ________ does not directly support AWS OpsWorks for monitoring your stacks.
Config
AWS DynamoDB ________ tables provide a fully managed solution for deploying a multi-region, multi-master database.
Global tables
To determine whether a log file was modified, deleted, or unchanged after CloudTrail delivered it, you can use CloudTrail _______________ Validation.
Log File Integrity Validation.
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)
rolling; all at once
If an EC2 instance has failed a health check, what will the ELB do?
The ELB stops sending traffic to the instance that failed the health check.
You need what to build a multi-container Docker platform using Elastic Beanstalk?
Prebuilt images stored in a public or private online image repository.
What two deployment types are available with the CodeDeploy service?
In-place deployment
Blue/Green Deployment
Instances that are on the ________ state in an Autoscaling Group are still part of the Autoscaling Group, but they do not actively receive traffic.
standby state
Which caching engine does Opswork have built in support for?
Memcache - but you can customize your stack to use ElastiCache Redis if needed.
Which two environment types are available in the Elastic Beanstalk environment?
Single instance
Load balancing, Autoscaling
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?
AppSpec file (Application specification file)
Where can you use intrinsic functions in a CloudFormation template?
Resource Properties
Outputs
Metadata Attributes
Update Policy Attributes
What 4 commands are available for OpsWorks stacks?
- Update custom cookbooks
- Execute Recipes
- Setup
- Configure
Which CLI command is used to spin up new EC2 instances?
aws ec2 run-instances
You can only use _______ load balancers with OpsWorks stacks.
Classic
In OpsWorks, each load balancer can only handle ______ layer(s).
one
You can use the ______ Command from the Amazon EC2 console to configure instances without having to login to each instance.
Run Command
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.
NoEcho
What CLI command can be used to describe CloudFormation stack resources?
aws cloudformation list-stack-resources
Elastic Load Balancer logs get produced but the service at what two intervals?
5 minutes and 60 minutes
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?
5 minutes
What is the BEST way to automation the creation of EBS snapshots?
Using Cloudwatch Events to trigger snapshots of EBS Volumes.
There is no ______________ resource for CloudFormation.
AWS:EC2::Container
Opsworks works with Chef recipes and not _________ containers.
Docker
The __________ Elastic Beanstalk CLI command can be used to create an application in a specified environment.
eb create
The _________ resource is used in CloudFormation to create a nested stack.
AWS::CloudFormation::Stack
Where in the cloudformation template would you ideally pass user data?
The properties section of the ECS instance in the resource section.