Soru

Zorluk: OrtaAutomating Deployment and Configuration Management

A company manages its multi-account environment using AWS Organizations. A central DevOps account contains an AWS CodePipeline pipeline that deploys application infrastructure to multiple production target accounts using AWS CloudFormation StackSets. The pipeline stores its build artifacts in an Amazon S3 bucket within the DevOps account. During a deployment, target accounts are unable to retrieve artifacts from the S3 bucket. Additionally, security audits reveal that local administrators in target accounts are manually modifying security groups, causing configuration drift and subsequent deployment failures.

Which of the following actions should the Solutions Architect take to resolve the artifact access issue and automatically remediate the configuration drift? (Select TWO.)

  1. Configure an AWS Key Management Service (AWS KMS) Customer Managed Key to encrypt the S3 artifact bucket, and update the key policy to allow the deployment roles in the target accounts to decrypt artifacts.Cevap
  2. Deploy an AWS Config rule across all target accounts using AWS Organizations conformance packs to monitor security group configurations, and associate an AWS Systems Manager (SSM) Automation runbook to automatically revert unauthorized changes.Cevap
  3. C
    Enable default encryption on the S3 artifact bucket using the AWS-managed KMS key (aws/s3), and attach a bucket policy that grants cross-account read access to the target account IAM roles.
  4. D
    Attach a Service Control Policy (SCP) to the target accounts' Organization Unit (OU) that explicitly grants read permissions for the DevOps S3 bucket to bypass local IAM policy checks in the target accounts.
  5. E
    Configure the CloudFormation StackSet deployment parameters with the IgnoreDrift flag enabled to automatically overwrite manual modifications in target accounts without triggering rollbacks.

Cevap

Configure an AWS KMS Customer Managed Key to encrypt the S3 bucket and allow cross-account decrypt operations, and use AWS Config rules with AWS Systems Manager Automation to detect and revert security group modifications.
The correct options involve configuring a Customer Managed Key (CMK) in KMS to encrypt the S3 bucket and updating the key policy to allow cross-account access, and deploying an AWS Config rule using AWS Organizations conformance packs with an SSM Automation runbook for drift remediation. This ensures target account roles can access artifacts securely and any manual modifications are automatically reverted to maintain compliance.

Adım Adım Çözüm

1
Address the cross-account S3 artifact decryption constraint.
Create a Customer Managed Key (CMK) in KMS, associate it with the S3 bucket, and grant key decrypt permissions to the target accounts' roles.
AWS-managed keys cannot be shared cross-account, so a CMK is required for target accounts to access DevOps S3 artifacts.
2
Implement a configuration compliance framework.
Use AWS Config conformance packs deployed organization-wide to monitor security group modifications.
AWS Config provides continuous monitoring of resource configurations across the AWS Organization.
3
Automate remediation of configuration drift.
Configure AWS Systems Manager (SSM) Automation as a remediation target for the AWS Config rule.
SSM Automation can execute predefined or custom runbooks to automatically revert unauthorized changes, remediating drift.

Anahtar Kavram

Automating drift remediation and managing cross-account resource encryption in multi-account CI/CD pipelines.
Bu soruyu puanla