10 IAC DevOps Flashcards
Describe the Service Catalog in cloud services.
The Service Catalog is a managed collection of products, such as CloudFormation stacks, that can be provisioned on demand.
Define OpsWorks and its purpose.
OpsWorks is a managed configuration management service that uses Chef and Puppet, ideal for customers transitioning from on-premises environments who are already using these tools.
How are Stacks and Layers related in OpsWorks?
Stacks are containers of resources, while Layers represent specific functions within a stack, such as load balancing or databases.
What are Recipes and Cookbooks in OpsWorks?
Recipes and Cookbooks are applied to layers to run scripts and install applications. Cookbooks can be stored in GitHub.
Explain the concept of Lifecycle events in OpsWorks.
Lifecycle events are hooks that run on layers, such as ‘Setup’ and ‘Deploy’, to manage the lifecycle of resources.
How can the availability of instances be configured in OpsWorks?
Instances can be configured to run 24x7, based on a schedule, or when required due to load.
Define CloudFormation Templates and their function.
CloudFormation Templates define logical resources that are transformed into physical resources by CloudFormation.
What role do Parameters play in CloudFormation Templates?
Parameters influence logical resources and are defined in the template, allowing for configuration with defaults and validation.
Describe the difference between Template Parameters and Pseudoparameters.
Template Parameters are directly set by the user, while Pseudoparameters are automatically provided by CloudFormation, such as AWS::Region and AWS::StackId.
How do Intrinsic Functions enhance CloudFormation Templates?
Intrinsic Functions allow templates to be dynamic, enabling operations like referencing parameters, retrieving properties, and performing string manipulations.
Explain the purpose of the Ref intrinsic function in CloudFormation.
The Ref function points towards parameters and logical resources based on their logical name, allowing for dynamic referencing.
What is the function of Fn::GetAtt in CloudFormation?
Fn::GetAtt retrieves properties from other resources defined in the template.
Describe the use of Fn::Join and Fn::Split in CloudFormation.
Fn::Join and Fn::Split are intrinsic functions that perform string operations, allowing for manipulation of string values within templates.
How does Fn::Select work in CloudFormation?
Fn::Select retrieves an item from a list based on its index, commonly used with Fn::GetAZs.
(Removed)
Conditional functions, such as Fn::If and Fn::And, are used to conditionally provision resources based on evaluated conditions.
Explain the purpose of Mappings in CloudFormation.
Mappings allow for information lookup using key-value pairs, enabling dynamic configuration based on predefined values.
What is the role of Outputs in CloudFormation?
Outputs allow stacks to return values that can be referenced in other stacks and viewed within the Console.
How are Conditions evaluated in CloudFormation?
Conditions are evaluated as true or false based on intrinsic functions before the Resources section is evaluated, influencing resource creation.
Describe the function of DependsOn in CloudFormation orchestration.
DependsOn defines dependencies between resources, overriding CloudFormation’s default behavior of updating resources in parallel.
Describe the role of a CreationPolicy in AWS CloudFormation.
A CreationPolicy is applied to a specific resource in AWS CloudFormation, ensuring that the resource is only marked as CREATE_COMPLETE if a specified number of success signals are received within a timeout period. If the signals are not received, the resource is marked as CREATE_FAILED.
How does a WaitCondition function in AWS CloudFormation?
A WaitCondition is a CloudFormation resource that blocks the stack until a specific number of WaitHandles are satisfied. Each WaitHandle generates a pre-signed URL to update its state.
Define Nested Stacks in AWS CloudFormation.
Nested Stacks are a logical grouping of stacks where the root stack creates other stacks. They allow for template reuse and enable the parent stack to pass parameters down to child stacks.
Explain the purpose of Cross-Stack References in AWS CloudFormation.
Cross-Stack References allow stacks to use exported outputs from other stacks, with the requirement that the export identifier must be unique per account per region. The Fn::ImportValue function is used to retrieve these exported outputs.
How should one decide between using nested stacks and cross-stack references?
Nested stacks should be used when resources have a similar lifecycle and for template reuse, while cross-stack references are better for sharing resources across multiple projects, such as a shared VPC.
What are StackSets in AWS CloudFormation?
StackSets are used to deploy CloudFormation stacks across multiple accounts and regions, containing stack instances that point to stacks created by CloudFormation.
Describe the parameters that control behavior in StackSets.
Key parameters in StackSets include Concurrent accounts (number of target accounts acted on simultaneously), Failure tolerance (percentage of stack operations that can fail before stopping), Region concurrency (whether to apply changes one region at a time or all at once), and Retain stacks (to keep stacks even when the stack instance is deleted).
(Removed)
If an EC2 instance references a subnet that has not been created, the instance will not be created until the subnet is available.