Easy ReviewDOP-C02
Configuration Management and IaC13

Configuration management

Choose AWS tools for infrastructure provisioning, server configuration, application settings, and compliance.

Este conteúdo de estudo ainda não foi traduzido, então aparece em inglês. Ajude a traduzir

CloudFormation provisions resources; State Manager maintains server settings; AppConfig deploys runtime configuration; AWS Config records and evaluates resource configurations.

Provisioning tool selection

Infrastructure as codeInfrastructure as code describes and provisions infrastructure from versioned definitions. describes resources in files so deployments can be repeated. CloudFormation manages a stackA stack is a collection of AWS resources managed together from a CloudFormation template., a collection of resources created from a template. CDK and SAM provide different ways to author that infrastructure.

How it works

  1. Choose the authoring format. CDK uses programming languages and reusable constructsA construct is a reusable code component that defines cloud infrastructure.; SAM uses shorthand for serverless resources; CloudFormation accepts direct templates.
  2. Package reusable definitions as modules or child templates called nested stacks. Offer approved products through Service Catalog portfoliosA portfolio groups Service Catalog products and controls which users may access them., which group products and control user access.
  3. Create a change setA change set previews the effects of proposed CloudFormation stack changes before execution., a preview of proposed stack changes. Review it, then execute it to apply the update.
  4. Use StackSets when the same template must create stacks across accounts and Regions. Use State Manager afterward to maintain settings inside managed servers.
Need Tool or feature
Programming-language infrastructure and reusable components CDK constructs
Serverless templates and local testing SAM and SAM CLI, which also supports CDK apps
Reusable resource configurations within templates CloudFormation modules
Approved versions, access, and launch constraints for users Service Catalog
Related child templates managed through a parent Nested stacks
Share outputs within one account and Region Export and Fn::ImportValue
Read outputs across accounts or Regions Fn::GetStackOutput, a reference resolved during create or update
Wait for configuration success during creation CreationPolicy on supported resources
Control Auto Scaling rolling replacement UpdatePolicy
Custom provisioning logic Custom resource
Transform template content Macro
Inspect and reject configurations before provisioning Hook configured to fail
Protect resources during stack updates Stack policy

Exam cues

  • If the question says deploy one baseline to many accounts and Regions, think StackSets, because it creates stacks from the same template across targets.
  • If the question says users may launch only approved product versions, think Service Catalog, because portfolios, permissions, and constraints govern self-service provisioning.
  • If the question says patch a Linux machine image, think AWS-UpdateLinuxAmi, because this Automation runbookA runbook defines actions that Systems Manager Automation performs. updates an AMI, an image used to launch instances.

Remember

  • Change sets apply changes only when executed.
  • Imported exports prevent changing the exported value or deleting its stack until imports are removed.
  • Fn::GetStackOutput does not automatically update a consumer when the source output changes.
  • DriftDrift is a difference between actual resource settings and their expected template settings. means actual resource settings differ from template expectations. Detection covers supported properties explicitly set in templates or parameters.

Trap: A stack policy protects resources during stack updates. A Hook configured to fail can reject provisioning. Select the control for the operation being tested.

CDK definitions become managed resources
12CDKCloudFormationEC2 resources
  1. CDK synthesizes a CloudFormation template.

  2. CloudFormation provisions the resources as a stack.

Da documentação da AWS (23)
  • CloudFormation provisions resources described in a template and manages them together as a stack.
  • AWS CDK defines infrastructure in supported programming languages and synthesizes CloudFormation templates for deployment.
  • A CDK construct is a reusable component that defines cloud infrastructure.
  • AWS SAM extends CloudFormation with shorthand serverless resource definitions.
  • SAM CLI supports local testing of serverless applications, including CDK applications.
  • CloudFormation modules package reusable resource configurations and support versioning.
  • Service Catalog administrators organize products into portfolios and grant end users access to approved product versions.
  • Service Catalog constraints control product deployment choices and launch permissions.
  • Nested stacks group child stacks under a parent so resources can be managed from one stack.
  • Export and Fn::ImportValue share stack outputs only within the same account and Region.
  • An exported output cannot be changed, or its exporting stack deleted, while another stack imports it.
  • Fn::GetStackOutput supports cross-account and cross-Region output references resolved at create or update time without automatically updating consumers later.
  • StackSets deploy stacks from one template across selected accounts and Regions.
  • A CloudFormation change set previews proposed stack changes and applies them only when executed.
  • Drift detection compares supported resource properties with values explicitly defined in the template or parameters.
  • CreationPolicy waits for resource success signals or a timeout during creation of supported resources.
  • UpdatePolicy controls supported resource updates, including Auto Scaling rolling replacement.
  • Custom resources run custom provisioning logic during stack create, applicable update, and delete operations.
  • A CloudFormation macro transforms template content before resources are provisioned.
  • CloudFormation Hooks inspect configurations before provisioning and can fail the operation or warn and allow it.
  • A stack policy protects selected resources against updates during stack update operations.
  • State Manager associations maintain desired configurations on targeted managed nodes.
  • The AWS-UpdateLinuxAmi Automation runbook updates an AMI with Linux packages and Amazon software.

Desired state, flags, and compliance

Configuration management keeps operational settings consistent as systems change. Separate the resource definition, the settings inside servers, the application settings, and the compliance record so each change uses the right control.

How it works

  1. For managed servers, create a State Manager associationAn association connects a desired configuration with its targets and execution schedule.: a desired configuration linked to targets and an execution schedule. Matching new nodes receive it, and associations report compliance.
  2. For application behavior, use AppConfig feature flagsA feature flag is an application setting that controls whether behavior is enabled., settings that enable or disable behavior, or free-form configuration. Validators check the data before a deployment strategy releases it gradually.
  3. Configure CloudWatch alarms and permissions for AppConfig rollback. The AppConfig Agent polls for updates and keeps a local cached copy for the application.
  4. For resource compliance, let AWS Config record configuration history and evaluate rules. Attach Systems Manager Automation documentsA runbook defines actions that Systems Manager Automation performs., called runbooks, for remediationRemediation performs actions to repair a resource that violates a configuration rule., meaning actions that repair noncompliance.
Requirement Fit
Maintain server settings, including Chef, Ansible, or PowerShell DSC configurations State Manager
Start maintenance tasks during a chosen period Maintenance Windows
Gradually change application flags with validation and alarm rollback AppConfig
Record resource settings, relationships, and rule results AWS Config
Store named settings, including KMS-encrypted SecureStringSecureString is a Parameter Store value encrypted using AWS KMS. values Parameter Store
Rotate credentials and replicate secrets across Regions Secrets Manager

Exam cues

  • If the question says automatically configure new Auto Scaling instances, think State Manager with tag targets, because matching managed nodes receive the association.
  • If the question says release a flag gradually and reverse on alarms, think AppConfig, because its deployment workflow provides rollout and rollback controls.
  • If the question says investigate past resource settings and repair violations, think AWS Config with Automation remediation, because recording, evaluation, and repair are separate parts of that workflow.
  • If the question says restrict maximum permissions across member accounts, think service control policies, because they set permission limits without granting access.

Remember

  • A maintenance window controls task start times. An action already running can finish after the window ends.
  • Parameter Store applies updates on the next read; it has no automatic gradual rollout or rollback.
  • Secrets Manager can propagate rotated primary secret values to Region replicas.
  • Proactive AWS Config evaluation assesses proposed properties but does not block deployment or remediate them.

Trap: AWS Config can evaluate a proposed resource before deployment. Evaluation alone does not prevent creation. Use a CloudFormation Hook configured to fail when provisioning must be rejected.

Evaluate resource settings, then repair violations
12AWS ConfigAutomationAWS resource
  1. A rule identifies noncompliance and invokes its configured remediation.

  2. The Automation document performs the remediation actions.

Da documentação da AWS (20)
  • A State Manager association defines a desired configuration, targets, and a schedule for applying it.
  • State Manager automatically applies an association to new managed nodes that match its tag or all-node targets.
  • State Manager associations report compliance with their required state.
  • State Manager integrates with Chef recipes, Ansible playbooks, and PowerShell Desired State Configuration.
  • Maintenance Windows start tasks within a specified time window; already started actions can finish after the window ends.
  • AppConfig changes application behavior with feature flags and free-form configuration without redeploying application code.
  • AppConfig validators check configuration syntax and semantics before deployment.
  • AppConfig deployment strategies roll out configuration changes over a defined period.
  • AppConfig can roll back a deployment when its configured CloudWatch alarm enters ALARM, with the necessary permissions.
  • AppConfig Agent caches configuration locally and polls the AppConfig data plane for updates.
  • AWS Config records resource configuration history and relationships.
  • AWS Config rules evaluate resource configuration against desired settings and report noncompliance.
  • AWS Config remediation uses Systems Manager Automation documents for noncompliant resources.
  • AWS Config proactive evaluation can assess resource properties before deployment but does not prevent deployment or remediate noncompliant resources.
  • CloudFormation Hooks can prevent provisioning when configured to fail on noncompliance.
  • Service control policies limit maximum permissions in member accounts without granting permissions.
  • Parameter Store holds named configuration values; SecureString encrypts values using AWS KMS.
  • Parameter Store updates take effect on the next read without gradual rollout or automatic rollback.
  • Secrets Manager supports automatic rotation, including managed rotation and Lambda-based rotation.
  • Secrets Manager can replicate encrypted secrets across Regions and propagates rotated primary values to replicas.

Flashcards

toque para virar
Resposta

·

Todos os 13 flashcards em lista

Which AWS infrastructure tools fit programming-language reuse, serverless shorthand, and direct templates?

CDK for code and constructs; SAM for serverless shorthand; CloudFormation for direct templates. CDK and SAM deploy through CloudFormation.

How do AWS CDK and AWS SAM relate to CloudFormation deployments?

CDK synthesizes CloudFormation templates. SAM extends template syntax for serverless resources. CloudFormation manages the resulting stacks.

A team must provision EC2 infrastructure and keep its operating-system settings consistent afterward. Which AWS tools fit?

CloudFormation for provisioning, followed by State Manager associations for desired configuration.

Developers need reusable infrastructure components, while operators need approved self-service products. Which AWS tools fit?

CDK constructs or CloudFormation modules for authoring reuse; Service Catalog products and portfolios for governed self-service.

A company must deploy the same CloudFormation baseline in many accounts and Regions. Which feature fits?

StackSets. It manages stacks from one template across the selected accounts and Regions.

A CloudFormation consumer needs an output from a stack in another Region. Can Fn::ImportValue supply it?

No. Use Fn::GetStackOutput for cross-Region references, and explicitly update consumers when the producer changes.

A team wants CloudFormation to reject resource configurations before provisioning. Which extension fits?

A CloudFormation Hook configured to fail the operation. A macro transforms templates, and a custom resource implements provisioning logic.

Which AWS tools maintain server settings, deploy feature flags, and evaluate resource compliance?

State Manager maintains server configuration. AppConfig deploys application settings and flags. AWS Config records resource configurations and evaluates rules.

An Auto Scaling group adds EC2 instances that must receive standard OS settings and report compliance. Which AWS feature fits?

State Manager associations targeting matching tags or all nodes. New matching managed nodes receive the configuration.

A team must gradually enable an application feature and undo the change if error alarms fire. Which AWS tool fits?

AppConfig with a deployment strategy and configured CloudWatch alarms. Validators check the configuration before deployment.

A team enables AWS Config proactive evaluation. Does this automatically block noncompliant resources from deployment?

No. Proactive evaluation reports results. Use an enforcement control such as a CloudFormation Hook configured to fail for provisioning prevention.

An AWS Config rule finds a resource noncompliant. Which mechanism can perform the repair?

A Systems Manager Automation document associated with the rule as a remediation action.

An application reads a new Parameter Store value and fails. Does Parameter Store automatically roll it back?

No. Parameter Store updates take effect on the next read. AppConfig provides a managed gradual rollout and alarm-based rollback workflow.

Você concluiu todos os tópicos da DOP-C02!

Seu badge ficou dourado. Próximo passo: agendar a prova na AWS. Depois de passar, adicione-se ao Quem passou.

Compartilhar

Conte que você concluiu esta certificação

Concluí todos os tópicos da AWS Certified DevOps Engineer - Professional (DOP-C02) no Easy Review. Venha estudar também!