Question 1040

A cross-team infrastructure plan specifies 2 measurable outcomes: (1) release feature flags independently from application code with automatic rollback on alarms; (2) enforce consistent tagging and validation across an application's CDK construct tree. Which TWO solutions address them? Choose TWO.

  1. Use AWS CloudFormation Change Sets before updating a stack
  2. Deploy dynamic configuration using AWS AppConfig gradual rollout
  3. Use CloudFormation stack policies to protect critical resources from updates
  4. Use CloudFormation DeletionPolicy Retain on a stateful resource
  5. Use a nested CloudFormation stack for a reusable infrastructure component
  6. Use CDK Aspects to apply organization-wide checks or tags to constructs

Explanation

Correct Answers

B:

The corresponding obligation is to release feature flags independently from application code with automatic rollback on alarms. AppConfig deployment strategies gradually distribute hosted or sourced configuration and can roll back on alarms; that behavior is the reason this action belongs in the selected answer set.

F:

The corresponding obligation is to 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; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

A change set previews how CloudFormation intends to modify or replace resources before execution; that would be appropriate to inspect the proposed resource replacements and updates before executing infrastructure changes, but this is a different objective from the numbered obligations in the stem; the specified requirement instead is to release feature flags independently from application code with automatic rollback on alarms.

C:

It supports a separate administrative task, namely to block unintended replacement or deletion of protected resources during stack updates. A stack policy can deny update actions on selected logical resources unless appropriately overridden; the prompt's required outcomes are not achieved by substituting this control.

D:

The Retain policy keeps a supported resource after CloudFormation removes its stack ownership. If the requirement were to prevent a persistent data resource from being removed when its stack is deleted, that would matter. The requested outcomes are separate from the one this option addresses.

E:

Nested stacks allow a parent stack to reference reusable child templates through stack resources; that would be appropriate to compose a large deployment from smaller lifecycle-managed CloudFormation templates, but this is a different objective from the numbered obligations in the stem.

Question 1041

The architecture record specifies: Use scheduled scaling for recurring predictable demand. To support the goal to preprovision EC2 capacity before a known daily traffic increase, which consideration should the engineer validate?

  1. The metric should correlate with per-instance capacity and stable control behavior
  2. Capacity must be ready shortly before the recurring workload starts
  3. Compute scale-out must track container placement demand
  4. Rate and burst limits must be enforced at the API entry point

Explanation

Correct Answer

B:

Capacity must be ready shortly before the recurring workload starts. Without this, choosing the named service is not enough to produce the promised outcome. Scheduled actions change Auto Scaling desired or min and max capacity at specified times.

Incorrect Answers

A:

Target tracking policies adjust desired capacity around a configured metric target. Its own dependency is that the metric should correlate with per-instance capacity and stable control behavior. Those details concern the separate objective of being able to automatically change fleet capacity to maintain a target utilization level, rather than to the named control required to preprovision EC2 capacity before a known daily traffic increase.

C:

This proposed constraint belongs to a separate objective: compute scale-out must track container placement demand; the corresponding goal is to coordinate ECS service task placement with managed EC2 capacity, not the selected architecture's goal to preprovision EC2 capacity before a known daily traffic increase.

D:

This condition governs the different mechanism used to protect Lambda and downstream systems from excessive caller traffic; API Gateway throttling controls supported request rates and can return 429 responses when limits are exceeded; for the selected control, the relevant boundary is instead that capacity must be ready shortly before the recurring workload starts.

Question 1042

Before approving an automated rollout, the reliability team must maintain replicated core data while minimizing always-on application compute cost and recreate known-good application capacity from immutable infrastructure definitions. Which combination covers the two distinct controls?

  1. Implement a pilot-light DR architecture in a secondary Region; implement warm standby with reduced running capacity in a secondary Region
  2. Implement a pilot-light DR architecture in a secondary Region; maintain tested IaC and AMI releases in the disaster recovery Region
  3. Use SSM Automation to execute approved disaster recovery cutover steps; maintain tested IaC and AMI releases in the disaster recovery Region
  4. Use AWS Backup restore testing plans for supported resources; enable AWS Backup Vault Lock in an appropriate mode
  5. Implement a pilot-light DR architecture in a secondary Region; use backup-and-restore DR for a workload with a generous recovery target

Explanation

Correct Answer

B:

Pilot light maintains minimal core components ready and brings up remaining tiers during recovery; this handles the first acceptance condition, subject to the boundary that recovery automation must launch additional application capacity after failover. The remaining condition is handled separately: versioned IaC and images allow consistent restoration of application infrastructure, with the recovery environment must reproduce network, IAM, and compute configuration deterministically.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; warm standby keeps a smaller but operational workload in the recovery Region; it helps meet a short recovery objective while keeping DR spend below a full duplicate production stack rather than recreate known-good application capacity from immutable infrastructure definitions.

C:

The second implementation is relevant; the problem is the first. Automation runbooks sequence service API operations so recovery steps can be repeated and audited; it can help coordinate repeatable dependency-sensitive recovery actions with recorded outcomes, whereas the stated first requirement is to maintain replicated core data while minimizing always-on application compute cost.

D:

The pair changes the problem instead of completing it. One option addresses periodically verify recoverability rather than assuming a backup job is sufficient; the other addresses protect retained backup recovery points from early deletion. The release, however, needs to maintain replicated core data while minimizing always-on application compute cost as well as recreate known-good application capacity from immutable infrastructure definitions.

E:

The first half is appropriate: Pilot light maintains minimal core components ready and brings up remaining tiers during recovery. However, backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost; that serves a different objective (minimize steady-state disaster recovery costs where hours of recovery are acceptable) and leaves the explicit need to recreate known-good application capacity from immutable infrastructure definitions unmet.

Question 1043

An automated check detects: Employees hold separate long-lived IAM user passwords for every member account. Which remediation directly supports the requirement to provide centrally managed access to many AWS accounts for federated employees?

  1. Use an IAM policy condition on aws:SourceVpce for eligible AWS service requests
  2. Assign AWS IAM Identity Center permission sets to workforce groups
  3. Use an IAM role with STS temporary credentials for cross-account operations
  4. Require MFA for privileged human sign-in and sensitive actions
  5. Apply an IAM permissions boundary to delegated role creation

Explanation

Correct Answer

B:

IAM Identity Center provisions account roles through permission-set assignments to users and groups; it enables the necessary capability to provide centrally managed access to many AWS accounts for federated employees rather than only providing an adjacent operational control. Access assignments should be revoked centrally when an employee changes teams.

Incorrect Answers

A:

Although the source VPC endpoint condition can constrain eligible requests to a designated private endpoint path, the scenario does not ask for deny access to a sensitive resource unless requests use an approved VPC endpoint; it requires the ability to provide centrally managed access to many AWS accounts for federated employees, which is a separate responsibility.

C:

That service solves a different operating problem: the need to avoid distributing durable access keys for central administration in member accounts; its behavior is that STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; the requested outcome remains provide centrally managed access to many AWS accounts for federated employees.

D:

The choice is useful when engineers need to add possession-based verification to administrator authentication: MFA adds a second factor and can be required through identity provider settings or IAM policy conditions. It would not establish the control needed to provide centrally managed access to many AWS accounts for federated employees.

E:

Permissions boundaries constrain the effective identity permissions of a user or role without granting access; this is a reasonable option when the requirement is to allow a development platform team to create roles without granting unlimited privileges, but it operates at a different workflow boundary from the stated need to provide centrally managed access to many AWS accounts for federated employees.

Question 1044

The reliability team's change record lists two distinct deliverables: cap parallel invocations before a sensitive backend is saturated and adapt provisioned throughput targets to changing demand. Which combination covers both deliverables?

  1. Use Lambda reserved concurrency to protect a downstream dependency; use DynamoDB auto scaling for provisioned read and write capacity
  2. Use SQS backlog per worker as a target tracking metric; use DynamoDB auto scaling for provisioned read and write capacity
  3. Use scheduled scaling for recurring predictable demand; use API Gateway throttling to bound request rates to a serverless backend
  4. Use Lambda reserved concurrency to protect a downstream dependency; use SQS to buffer bursts between request intake and worker processing

Explanation

Correct Answer

A:

Reserved concurrency caps simultaneously executing Lambda instances for the configured function; DynamoDB Application Auto Scaling can change provisioned read or write capacity based on utilization targets. The first control satisfies the need to cap parallel invocations before a sensitive backend is saturated; the second addresses the need to adapt provisioned throughput targets to changing demand. Concurrency must be constrained at the function boundary; the solution must adjust RCU and WCU settings rather than compute nodes.

Incorrect Answers

B:

The second implementation is relevant; the problem is the first. Backlog per instance estimates the pressure on worker capacity for queue-driven scaling. It can help scale message-processing workers with the backlog relative to active capacity, whereas the stated first requirement is to cap parallel invocations before a sensitive backend is saturated.

C:

The pair changes the problem instead of completing it. One option addresses preprovision EC2 capacity before a known daily traffic increase; the other addresses protect Lambda and downstream systems from excessive caller traffic. The release, however, needs to cap parallel invocations before a sensitive backend is saturated as well as adapt provisioned throughput targets to changing demand.

D:

The first half is appropriate: Reserved concurrency caps simultaneously executing Lambda instances for the configured function. However, SQS queues hold pending work and let consumers process it asynchronously with retry semantics; that serves a different objective (decouple transient producer spikes from a bounded worker fleet) and leaves the explicit need to adapt provisioned throughput targets to changing demand unmet.

Question 1045

A release design adopts this mechanism: Run regular failover game days and measure actual RTO and RPO. Which implementation detail is most relevant to its proposed use to validate recovery performance against business-approved thresholds?

  1. Both Regions must be able to serve production traffic and reconcile state correctly
  2. Regional disaster recovery should not be triggered when native Multi-AZ failover is adequate
  3. Success must be measured from observed restoration and data loss rather than architecture diagrams
  4. Object change history needs to be retained according to the bucket retention model

Explanation

Correct Answer

C:

The implementation has to honor the exact constraint: success must be measured from observed restoration and data loss rather than architecture diagrams; controlled recovery tests expose dependencies, manual delays, and replication gaps before incidents.

Incorrect Answers

A:

Active-active systems keep multiple regional stacks serving requests, reducing activation time at the cost of complexity; its own dependency is that both Regions must be able to serve production traffic and reconcile state correctly; those details concern the separate objective of being able to minimize regional failover downtime for workloads designed to accept distributed traffic, rather than to the named control required to validate recovery performance against business-approved thresholds.

B:

The proposed condition makes sense in an implementation designed to restore database service availability without promoting a cross-Region read replica; it concerns RDS Multi-AZ can fail over to a maintained standby in another zone using the managed DB endpoint, whereas this question tests the prerequisite of the named control; the specified requirement instead is to validate recovery performance against business-approved thresholds.

D:

This condition governs the different mechanism used to recover an overwritten or deleted application object from an earlier version; S3 versioning preserves prior object versions so authorized users can restore selected versions; for the selected control, the relevant boundary is instead that success must be measured from observed restoration and data loss rather than architecture diagrams.

Question 1046

The architecture record specifies: Use CloudWatch agent StatsD or collectd integrations for supported workloads. To support the goal to bridge existing application metric protocols into CloudWatch, which consideration should the engineer validate?

  1. The observation should focus on newly ingested log events in real time
  2. The response must support a query language over centrally stored log events
  3. The collector must listen for the existing protocol and publish metric data with proper permissions
  4. Dimensions must be controlled to avoid excessive custom metric cardinality and cost

Explanation

Correct Answer

C:

The collector must listen for the existing protocol and publish metric data with proper permissions; that is the governing deployment boundary for the selected control: the unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch. If the boundary is missed, the design can fail to bridge existing application metric protocols into CloudWatch.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to watch incoming application events while reproducing a production issue. It concerns live Tail streams recently ingested matching log events from supported log groups, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: the response must support a query language over centrally stored log events; the corresponding goal is to query structured error events across log groups during incidents, not the selected architecture's goal to bridge existing application metric protocols into CloudWatch.

D:

CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation; its own dependency is that dimensions must be controlled to avoid excessive custom metric cardinality and cost. Those details concern the separate objective of being able to track a domain-specific success count broken down by deployed service, rather than to the named control required to bridge existing application metric protocols into CloudWatch.

Question 1047

After a configuration change, the platform engineering team sees this issue: Engineers manually download raw log files and grep them on laptops. What best restores the ability to query structured error events across log groups during incidents?

  1. Configure CloudWatch Logs cross-account subscription delivery through supported destination policies
  2. Use CloudWatch Logs Insights for interactive log analysis
  3. Deliver S3 server access logs or application exports through lifecycle-managed buckets
  4. Configure CloudWatch metric filters for structured application log events

Explanation

Correct Answer

B:

CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. It restores the ability to query structured error events across log groups during incidents, provided the implementation also observes that the response must support a query language over centrally stored log events.

Incorrect Answers

A:

CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; this is a reasonable option when the requirement is to centralize matching account log streams into a designated log-processing account, but it operates at a different workflow boundary from the stated need to query structured error events across log groups during incidents.

C:

Although S3 lifecycle rules transition or expire suitable log objects based on approved retention requirements, the scenario does not ask for retain bulk historical logs at lower long-term storage cost. It requires the ability to query structured error events across log groups during incidents, which is a separate responsibility.

D:

Metric filters evaluate incoming CloudWatch Logs records and emit metrics for matching patterns; this can help teams count specific error patterns without changing application metric instrumentation, but the reported workflow needs to query structured error events across log groups during incidents. It does not perform that required function.

Question 1048

The infrastructure automation group selects this control: Use EventBridge Pipes to filter and enrich events from a supported source. What associated scope or dependency matters most when using it to connect a managed stream or queue to a target with transformation and optional enrichment?

  1. The managed route must support the source, filtering, and target integration
  2. Account health events need event-driven notification and contextual routing
  3. The receiving bus policy must explicitly permit approved source-account principals
  4. Message attributes or supported bodies should drive routing to subscribers

Explanation

Correct Answer

A:

The managed route must support the source, filtering, and target integration. That is the governing deployment boundary for the selected control: EventBridge Pipes connects supported sources to targets with optional filter and enrichment steps. If the boundary is missed, the design can fail to connect a managed stream or queue to a target with transformation and optional enrichment.

Incorrect Answers

B:

Supported AWS Health events appear on EventBridge and can trigger notification or workflows. Its own dependency is that account health events need event-driven notification and contextual routing; those details concern the separate objective of being able to initiate targeted response to an AWS-managed service event affecting the account, rather than to the named control required to connect a managed stream or queue to a target with transformation and optional enrichment.

C:

The proposed condition makes sense in an implementation designed to accept operational events from multiple workload accounts into a central responder account; it concerns EventBridge event bus resource policies control cross-account event ingestion and routing, whereas this question tests the prerequisite of the named control; the specified requirement instead is to connect a managed stream or queue to a target with transformation and optional enrichment.

D:

This proposed constraint belongs to a separate objective: message attributes or supported bodies should drive routing to subscribers; the corresponding goal is to send only security-relevant messages to the security response queue, not the selected architecture's goal to connect a managed stream or queue to a target with transformation and optional enrichment.

Question 1049

The production plan uses this approach: Use AWS Config resource timelines to inspect configuration history. The goal is to find when an infrastructure resource drifted from its previous configuration. Which prerequisite or limitation should receive focused review?

  1. The investigation needs configuration snapshots rather than only API audit events
  2. The notification should depend on a logical combination of existing alarm states
  3. The analysis should avoid downloading every object to a workstation
  4. The check must exercise actual HTTP or browser behavior on a defined schedule

Explanation

Correct Answer

A:

The requested behavior is to find when an infrastructure resource drifted from its previous configuration, and the investigation needs configuration snapshots rather than only API audit events. The underlying AWS behavior is that AWS Config configuration history tracks supported resource state changes over time.

Incorrect Answers

B:

The proposed condition makes sense in an implementation designed to page operators only when multiple correlated alarms indicate a real incident; it concerns composite alarms evaluate the Boolean state of underlying alarms before transitioning, whereas this question tests the prerequisite of the named control; the specified requirement instead is to find when an infrastructure resource drifted from its previous configuration.

C:

This proposed constraint belongs to a separate objective: the analysis should avoid downloading every object to a workstation; the corresponding goal is to investigate historical audit events across a large retained log archive, not the selected architecture's goal to find when an infrastructure resource drifted from its previous configuration.

D:

This condition governs the different mechanism used to detect external failures in a multi-step website journey before users report them; synthetics canaries execute scripts and publish availability and step-level results; for the selected control, the relevant boundary is instead that the investigation needs configuration snapshots rather than only API audit events.

Question 1050

A release design adopts this mechanism: Enable CloudTrail data events for selected S3 object operations. Which implementation detail is most relevant to its proposed use to attribute reads or deletes of sensitive bucket objects to a principal?

  1. Rules should be bundled with any supported remediation definitions as a deployable unit
  2. Audit log retention must be governed by an account separate from routine workload admins
  3. Responders need graph-style relationships rather than an additional blocking firewall rule
  4. Event selection must include the specific bucket data-plane API activity

Explanation

Correct Answer

D:

The requested behavior is to attribute reads or deletes of sensitive bucket objects to a principal, and event selection must include the specific bucket data-plane API activity. The underlying AWS behavior is that CloudTrail data event selectors record eligible object-level activity beyond management events.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to evaluate a collection of resource configuration controls against a standard. It concerns conformance packs package AWS Config rules and supported remediation actions for consistent evaluation, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: audit log retention must be governed by an account separate from routine workload admins; the corresponding goal is to retain management API events from all AWS Organizations member accounts, not the selected architecture's goal to attribute reads or deletes of sensitive bucket objects to a principal.

C:

This condition governs the different mechanism used to explore linked entity behaviors around a suspicious IAM principal. Detective assists security investigations by correlating supported activity and entity relationships; for the selected control, the relevant boundary is instead that event selection must include the specific bucket data-plane API activity.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests