Question 940

A production change is expected to package a standardized multi-resource infrastructure pattern into application code. The same change must also compose a large deployment from smaller lifecycle-managed CloudFormation templates. Which paired implementation meets both acceptance criteria?

  1. Define an AWS CDK construct for a reusable platform pattern; use Systems Manager Parameter Store hierarchical paths for application settings
  2. Define an AWS CDK construct for a reusable platform pattern; use AWS CloudFormation Change Sets before updating a stack
  3. Define an AWS CDK construct for a reusable platform pattern; use a nested CloudFormation stack for a reusable infrastructure component
  4. Use CDK Aspects to apply organization-wide checks or tags to constructs; use a nested CloudFormation stack for a reusable infrastructure component
  5. Use CloudFormation resource import for supported existing resources; use CloudFormation dynamic references for protected parameter values

Explanation

Correct Answer

C:

For the requirement to package a standardized multi-resource infrastructure pattern into application code, CDK constructs encapsulate infrastructure resources and synthesize AWS CloudFormation definitions. For the requirement to compose a large deployment from smaller lifecycle-managed CloudFormation templates, nested stacks allow a parent stack to reference reusable child templates through stack resources. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; parameter Store names can use hierarchies and IAM permissions for managed configuration lookup; it helps organize nonsecret configuration keys by environment and application namespace rather than compose a large deployment from smaller lifecycle-managed CloudFormation templates.

B:

The first half is appropriate: CDK constructs encapsulate infrastructure resources and synthesize AWS CloudFormation definitions. However, a change set previews how CloudFormation intends to modify or replace resources before execution; that serves a different objective (inspect the proposed resource replacements and updates before executing infrastructure changes) and leaves the explicit need to compose a large deployment from smaller lifecycle-managed CloudFormation templates unmet.

D:

This combination solves only the latter acceptance test. The substituted first control supports enforce consistent tagging and validation across an application's CDK construct tree: CDK Aspects visit construct nodes to apply checks or modifications throughout a CDK application. It does not implement package a standardized multi-resource infrastructure pattern into application code.

E:

Neither control directly supplies both requested behaviors. Resource import associates supported existing resources with logical resources in a stack template; dynamic references let CloudFormation retrieve supported values from SSM Parameter Store or Secrets Manager. Those mechanisms address different objectives. The specified capabilities are to package a standardized multi-resource infrastructure pattern into application code and to compose a large deployment from smaller lifecycle-managed CloudFormation templates.

Question 941

The service maintenance group proposes this implementation: Install and configure the unified CloudWatch agent on EC2. Its intended result is to publish guest memory and disk-usage metrics not available from default EC2 metrics. Which implementation consideration is most specific to that choice?

  1. The pipeline needs streaming delivery of filtered log events
  2. Retention periods should vary by data classification and compliance obligations
  3. Dimensions must be controlled to avoid excessive custom metric cardinality and cost
  4. A least-privilege instance role must authorize the agent to publish custom telemetry
  5. The log event pattern is consistent enough to extract a metric value

Explanation

Correct Answer

D:

A least-privilege instance role must authorize the agent to publish custom telemetry. That is the governing deployment boundary for the selected control: the CloudWatch agent collects supported host metrics and logs beyond the standard EC2 metric set. If the boundary is missed, the design can fail to publish guest memory and disk-usage metrics not available from default EC2 metrics.

Incorrect Answers

A:

Subscription filters route new matching CloudWatch Logs events to supported streaming or processing destinations; its own dependency is that the pipeline needs streaming delivery of filtered log events; those details concern the separate objective of being able to process matching log records as they arrive instead of polling stored logs, rather than to the named control required to publish guest memory and disk-usage metrics not available from default EC2 metrics.

B:

The proposed condition makes sense in an implementation designed to expire routine log events after the approved operating retention period; it concerns log-group retention settings automatically expire data beyond the configured retention interval, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: dimensions must be controlled to avoid excessive custom metric cardinality and cost; the corresponding goal is to track a domain-specific success count broken down by deployed service, not the selected architecture's goal to publish guest memory and disk-usage metrics not available from default EC2 metrics.

E:

Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; its own dependency is that the log event pattern is consistent enough to extract a metric value; those details concern the separate objective of being able to count specific error patterns without changing application metric instrumentation, rather than to the named control required to publish guest memory and disk-usage metrics not available from default EC2 metrics.

Question 942

During root-cause analysis, the team identifies the following: The team cannot provision common stacks into new AWS Organizations member accounts consistently. To deploy a common baseline across organization accounts and selected Regions, what should be configured?

  1. Use CloudFormation cross-stack exports and imports for shared output values
  2. Use CloudFormation resource import for supported existing resources
  3. Use CloudFormation rollback triggers wired to CloudWatch alarms
  4. Use CloudFormation StackSets with service-managed permissions

Explanation

Correct Answer

D:

Service-managed StackSets use AWS Organizations integration to provision stack instances across eligible accounts; in this case the control is appropriate because it supports deploy a common baseline across organization accounts and selected Regions. AWS Organizations integration should avoid manually creating cross-account IAM roles.

Incorrect Answers

A:

CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region; this can help teams reference a networking stack's output from an application stack in the same Region, but the reported workflow needs to deploy a common baseline across organization accounts and selected Regions. It does not perform that required function.

B:

That service solves a different operating problem: the need to bring an already-created resource under stack management without rebuilding it. Its behavior is that resource import associates supported existing resources with logical resources in a stack template. The requested outcome remains deploy a common baseline across organization accounts and selected Regions.

C:

The choice is useful when engineers need to roll back a stack update when a monitored service alarm fires during its monitoring period: rollback triggers monitor configured CloudWatch alarms and can initiate rollback when a trigger alarms. It would not establish the control needed to deploy a common baseline across organization accounts and selected Regions.

Question 943

The next AWS platform release needs to establish managed governance expectations when onboarding accounts while also being able to create new workload accounts with standardized landing-zone controls. Which pairing best supports that release?

  1. Configure Security Hub organization integration and central settings policies; use an S3 bucket policy that denies insecure transport for organization logs
  2. Use Control Tower landing-zone controls for preventive and detective governance; use AWS Control Tower Account Factory to provision governed accounts
  3. Use centralized VPC Flow Logs delivery to an approved log destination; use AWS Control Tower Account Factory to provision governed accounts
  4. Use Control Tower landing-zone controls for preventive and detective governance; enable AWS Config aggregators across organization accounts and Regions

Explanation

Correct Answer

B:

Control Tower controls can enforce or detect supported rules across enrolled organizational units; account Factory provisions accounts under a landing-zone structure using configured account baselines. The first control satisfies the need to establish managed governance expectations when onboarding accounts; the second addresses the need to create new workload accounts with standardized landing-zone controls. Controls should be applied through the landing-zone governance system; provisioning must follow the organization's Control Tower governance model.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses standardize security finding aggregation and enabled standards across accounts; the other addresses prevent log upload and retrieval over unencrypted transport. The release, however, needs to establish managed governance expectations when onboarding accounts as well as create new workload accounts with standardized landing-zone controls.

C:

The second implementation is relevant; the problem is the first. VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations; it can help collect network flow metadata from selected workload VPCs for audit analysis, whereas the stated first requirement is to establish managed governance expectations when onboarding accounts.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; a configuration aggregator consolidates supported AWS Config configuration and compliance data; it helps view resource compliance and configuration state from a central operations account rather than create new workload accounts with standardized landing-zone controls.

Question 944

The delivery engineering group cannot close its release review until both of these are possible: trigger a deployment workflow when a matching AWS service event occurs; automate build and deployment of CDK infrastructure changes with reviewable application source. Which implementation pair satisfies the review?

  1. Configure an EventBridge rule for an event-driven pipeline execution; use an AWS CDK pipeline with dedicated synth and deployment steps
  2. Restrict build credentials to a CodeBuild service role with least privilege; use an AWS CDK pipeline with dedicated synth and deployment steps
  3. Configure an EventBridge rule for an event-driven pipeline execution; grant the target-account role access through the S3 artifact bucket policy
  4. Configure a cross-Region artifact store for the target action Region; add an explicit manual approval action before the production deploy stage

Explanation

Correct Answer

A:

EventBridge event patterns select the desired events and route them to a supported automation target; CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments. The first control satisfies the need to trigger a deployment workflow when a matching AWS service event occurs; the second addresses the need to automate build and deployment of CDK infrastructure changes with reviewable application source. Only the matching event type should start the automation without polling; infrastructure deployments must be reproducible from version control.

Incorrect Answers

B:

This combination solves only the latter acceptance test. The substituted first control supports let automated builds read only the required inputs and publish expected outputs: CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys. It does not implement trigger a deployment workflow when a matching AWS service event occurs.

C:

The first half is appropriate: EventBridge event patterns select the desired events and route them to a supported automation target. However, a resource-based bucket policy can authorize the trusted destination principal to read specific artifact objects; that serves a different objective (permit a cross-account deployment action to retrieve the intended pipeline artifact objects) and leaves the explicit need to automate build and deployment of CDK infrastructure changes with reviewable application source unmet.

D:

These are legitimate AWS controls for different outcomes: cross-Region CodePipeline actions need an artifact store in each relevant action Region, whereas a CodePipeline manual approval action pauses stage progression until approval, rejection, or timeout. The problem instead requires the ability to trigger a deployment workflow when a matching AWS service event occurs and to automate build and deployment of CDK infrastructure changes with reviewable application source.

Question 945

After a configuration change, the cloud operations group sees this issue: Administrators manually patch a base AMI and cannot reproduce a consistent fleet image. What best restores the ability to automate repeatable golden-image builds with validation tests?

  1. Use EC2 Image Builder pipelines to produce hardened AMIs
  2. Export a CodeBuild artifact using buildspec artifact paths
  3. Use an EC2 Image Builder container recipe to generate a hardened container image
  4. Use EC2 Image Builder distribution settings for target Regions and accounts

Explanation

Correct Answer

A:

Image Builder creates, customizes, tests, and distributes repeatable machine images from recipes; in this case the control is appropriate because it supports automate repeatable golden-image builds with validation tests. Published instance images must undergo defined components and tests.

Incorrect Answers

B:

Choosing this would aim to include compiled outputs rather than the entire source tree in a pipeline artifact instead of automate repeatable golden-image builds with validation tests; the buildspec artifacts section chooses files to package and publish as build outputs; it cannot replace the mechanism specified by the incident evidence.

C:

Although image Builder supports container recipes and workflows to build and test image outputs, the scenario does not ask for automate container base-image patching and validation for approved images. It requires the ability to automate repeatable golden-image builds with validation tests, which is a separate responsibility.

D:

Image Builder distribution configurations control supported AMI copies and sharing after creation; this can help teams publish a validated AMI to workloads outside its build account, but the reported workflow needs to automate repeatable golden-image builds with validation tests. It does not perform that required function.

Question 946

An incident record says: Deployers change the function code directly and cannot cleanly revert an individual release. To restore the capability to release immutable Lambda code while keeping callers on a stable function reference, which change addresses the root cause?

  1. Enable provisioned concurrency on the Lambda alias or published version
  2. Use a weighted Lambda alias for gradual traffic migration
  3. Use an ECS deployment with a new immutable task definition revision
  4. Publish a Lambda version and route clients through an alias
  5. Use CodeDeploy Lambda canary deployment with an alias

Explanation

Correct Answer

D:

A published Lambda version snapshots code and configuration; an alias can reference the selected version; it enables the necessary capability to release immutable Lambda code while keeping callers on a stable function reference rather than only providing an adjacent operational control. Clients must invoke a stable alias while versions remain immutable.

Incorrect Answers

A:

Choosing this would aim to reduce cold-start latency for a predictable high-priority request path instead of release immutable Lambda code while keeping callers on a stable function reference; provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases; it cannot replace the mechanism specified by the incident evidence.

B:

Although a Lambda alias can distribute invocations between its primary and additional published version, the scenario does not ask for split invocation traffic between two published Lambda versions without changing callers. It requires the ability to release immutable Lambda code while keeping callers on a stable function reference, which is a separate responsibility.

C:

An ECS service update selects a task definition revision and schedules replacement tasks to converge to it; this can help teams roll out a changed container image while retaining the previous task definition, but the reported workflow needs to release immutable Lambda code while keeping callers on a stable function reference. It does not perform that required function.

E:

The choice is useful when engineers need to expose a small percentage of Lambda invocations to a new version before full promotion: CodeDeploy can update Lambda alias traffic weights using canary configurations. It would not establish the control needed to release immutable Lambda code while keeping callers on a stable function reference.

Question 947

The application owner reports the following failure: The recovery design is documented but no one has tested what happens when an instance fails. Which action directly restores the requirement to validate that a multi-AZ application survives a deliberately introduced infrastructure fault?

  1. Use CodeBuild batch builds for a supported test matrix
  2. Use canary synthetic checks against a published test endpoint
  3. Separate performance threshold checks from functional correctness tests
  4. Use contract tests to validate interface compatibility between independently deployed services
  5. Use AWS Fault Injection Service in a controlled resilience test

Explanation

Correct Answer

E:

To validate that a multi-AZ application survives a deliberately introduced infrastructure fault, the architecture relies on this AWS behavior: fault Injection Service can inject supported disruptions so teams can measure actual resilience behavior. Experiments need explicit stop conditions and safety controls to limit blast radius.

Incorrect Answers

A:

Although batch builds support coordinated multiple build configurations and associated aggregate status, the scenario does not ask for run compatible test variations in parallel and consolidate their outcomes; it requires the ability to validate that a multi-AZ application survives a deliberately introduced infrastructure fault, which is a separate responsibility.

B:

CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements; this can help teams exercise a critical HTTP journey regularly with externally visible outcomes, but the reported workflow needs to validate that a multi-AZ application survives a deliberately introduced infrastructure fault. It does not perform that required function.

C:

That service solves a different operating problem: the need to fail a release when latency regresses even though all APIs still return successful status codes. Its behavior is that performance testing assesses response-time and throughput targets distinct from pass or fail functionality. The requested outcome remains validate that a multi-AZ application survives a deliberately introduced infrastructure fault.

D:

The choice is useful when engineers need to detect incompatible API schema changes without requiring full production rollout: contract tests assert expected interface behavior, revealing breaking integration changes before both services ship. It would not establish the control needed to validate that a multi-AZ application survives a deliberately introduced infrastructure fault.

Question 948

A release design adopts this mechanism: Use a CodePipeline test action after deployment to staging. Which implementation detail is most relevant to its proposed use to fail a promotion flow based on smoke-test results for the deployed service?

  1. The test stage must consume the staged endpoint and block the next stage if it fails
  2. Authorization checks must include explicit denied or ungranted actions
  3. Later deployment stages must not run after a failing quality gate
  4. Release acceptance criteria need a blocking quality gate on a live candidate

Explanation

Correct Answer

A:

The test stage must consume the staged endpoint and block the next stage if it fails. That is the governing deployment boundary for the selected control: a pipeline test action turns post-deployment health verification into an enforceable promotion gate. If the boundary is missed, the design can fail to fail a promotion flow based on smoke-test results for the deployed service.

Incorrect Answers

B:

IAM policy simulation and access analysis can help test whether planned principal actions are allowed; its own dependency is that authorization checks must include explicit denied or ungranted actions; those details concern the separate objective of being able to verify the release role cannot perform actions outside its approved scope, rather than to the named control required to fail a promotion flow based on smoke-test results for the deployed service.

C:

The proposed condition makes sense in an implementation designed to stop a pipeline build action when the test runner detects a regression. It concerns CodeBuild determines command success from process exit status unless buildspec failure handling overrides it, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: release acceptance criteria need a blocking quality gate on a live candidate; the corresponding goal is to verify business workflows on a deployed candidate before production promotion, not the selected architecture's goal to fail a promotion flow based on smoke-test results for the deployed service.

Question 949

An infrastructure proposal must demonstrate two capabilities: run pre-traffic or post-traffic checks before accepting an alias cutover and split invocation traffic between two published Lambda versions without changing callers. Which combination supplies the appropriate controls?

  1. Enable provisioned concurrency on the Lambda alias or published version; use an ECS deployment with a new immutable task definition revision
  2. Attach validation hooks to a Lambda CodeDeploy deployment; publish a Lambda version and route clients through an alias
  3. Attach validation hooks to a Lambda CodeDeploy deployment; use a weighted Lambda alias for gradual traffic migration
  4. Attach CodeDeploy deployment alarms for automatic stop or rollback; use a weighted Lambda alias for gradual traffic migration

Explanation

Correct Answer

C:

Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks; this handles the first acceptance condition, subject to the boundary that a failed validation hook must stop or fail the deployment workflow. The remaining condition is handled separately: a Lambda alias can distribute invocations between its primary and additional published version, with the invoking application must retain a stable endpoint throughout the migration.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses reduce cold-start latency for a predictable high-priority request path; the other addresses roll out a changed container image while retaining the previous task definition. The release, however, needs to run pre-traffic or post-traffic checks before accepting an alias cutover as well as split invocation traffic between two published Lambda versions without changing callers.

B:

The first half is appropriate: Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks. However, a published Lambda version snapshots code and configuration; an alias can reference the selected version; that serves a different objective (release immutable Lambda code while keeping callers on a stable function reference) and leaves the explicit need to split invocation traffic between two published Lambda versions without changing callers unmet.

D:

This combination solves only the latter acceptance test. The substituted first control supports halt an EC2 release when service health violates a CloudWatch alarm: CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria. It does not implement run pre-traffic or post-traffic checks before accepting an alias cutover.

Question 950

A new AWS operations standard requires the ability to scan and install operating-system updates according to approved patch classifications and combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook in the same operating environment. Which proposed pair delivers both?

  1. Use Systems Manager Patch Manager and patch baselines; use Systems Manager Session Manager for audited interactive access
  2. Use Systems Manager Patch Manager and patch baselines; use Systems Manager Automation runbooks for multi-step operational remediation
  3. Use State Manager to enforce a recurring configuration association; use an SQS dead-letter queue for repeatedly failing asynchronous work
  4. Use EventBridge Scheduler for per-task scheduled API invocations; use Systems Manager Automation runbooks for multi-step operational remediation

Explanation

Correct Answer

B:

Patch Manager applies selected baselines to supported managed nodes for scan or install operations; this handles the first acceptance condition, subject to the boundary that approved and rejected patch criteria should be managed centrally. The remaining condition is handled separately: automation runbooks execute structured steps and AWS service operations with defined permissions, with the workflow needs controlled execution steps and an assumable automation role.

Incorrect Answers

A:

Session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; that alternative supports the ability to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs, but it is not the requested second outcome (combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook). Even though the first half addresses scan and install operating-system updates according to approved patch classifications, this pair is incomplete.

C:

Neither control directly supplies both requested behaviors. State Manager associations run specified documents against targets according to defined schedules; SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue. Those mechanisms address different objectives. The specified capabilities are to scan and install operating-system updates according to approved patch classifications and to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook.

D:

The second implementation is relevant; the problem is the first. EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; it can help invoke a service API at a one-time or recurring schedule without hosting a cron instance, whereas the stated first requirement is to scan and install operating-system updates according to approved patch classifications.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests