Question 160

The production support team proposes this implementation: Use a CloudWatch metric filter and alarm for unusual log events. Its intended result is to raise an incident when a known error token appears repeatedly in application logs. Which implementation consideration is most specific to that choice?

  1. The system must evaluate resource configuration against a known rule
  2. The filter pattern must match the incoming event shape
  3. Recipients need subscriptions independent of the monitored resource
  4. Alarm thresholds must correspond to the associated scaling-policy behavior
  5. The target instance and alarm must meet EC2 recovery requirements

Explanation

Correct Answer

B:

The requested behavior is to raise an incident when a known error token appears repeatedly in application logs, and the filter pattern must match the incoming event shape. The underlying AWS behavior is that a metric filter emits values from matching logs that a CloudWatch alarm can evaluate.

Incorrect Answers

A:

This condition governs the different mechanism used to identify noncompliant resources without depending on log-string alerts; config rules assess supported resource settings and publish compliant or noncompliant evaluations; for the selected control, the relevant boundary is instead that the filter pattern must match the incoming event shape.

C:

The proposed condition makes sense in an implementation designed to notify multiple responder endpoints when a service metric breaches its threshold. It concerns CloudWatch alarms can publish state-change notifications to SNS topics and subscribed endpoints, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: alarm thresholds must correspond to the associated scaling-policy behavior; the corresponding goal is to adjust worker fleet capacity when a workload metric crosses a defined level, not the selected architecture's goal to raise an incident when a known error token appears repeatedly in application logs.

E:

This condition governs the different mechanism used to recover an eligible impaired instance when a system-status check indicates host failure. Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures; for the selected control, the relevant boundary is instead that the filter pattern must match the incoming event shape.

Question 161

The production plan uses this approach: Attach an SSM Automation remediation action to an AWS Config rule. The goal is to remediate eligible noncompliant resources using a controlled runbook. Which prerequisite or limitation should receive focused review?

  1. Findings should reflect resource configuration rather than instance command status
  2. Remediation must invoke a scoped automation role and handle failed attempts
  3. Parallelism must be controlled and failures handled per workflow item
  4. Inventory collection must run on nodes with the required managed-node configuration

Explanation

Correct Answer

B:

Remediation must invoke a scoped automation role and handle failed attempts. Without this, choosing the named service is not enough to produce the promised outcome; config remediation configurations can invoke Systems Manager Automation documents for matching findings.

Incorrect Answers

A:

Config rules evaluate supported resource configurations against policy and report compliance outcomes; its own dependency is that findings should reflect resource configuration rather than instance command status. Those details concern the separate objective of being able to detect resources that diverge from a defined account-level configuration policy, rather than to the named control required to remediate eligible noncompliant resources using a controlled runbook.

C:

This proposed constraint belongs to a separate objective: parallelism must be controlled and failures handled per workflow item. The corresponding goal is to run a repeatable remediation step against multiple independent work items, not the selected architecture's goal to remediate eligible noncompliant resources using a controlled runbook.

D:

This condition governs the different mechanism used to report installed applications and instance configuration across the managed fleet; Systems Manager Inventory collects supported software and configuration metadata for fleet reporting; for the selected control, the relevant boundary is instead that remediation must invoke a scoped automation role and handle failed attempts.

Question 162

The architecture record specifies: Use backup-and-restore DR for a workload with a generous recovery target. To support the goal to minimize steady-state disaster recovery costs where hours of recovery are acceptable, which consideration should the engineer validate?

  1. Regional disaster recovery should not be triggered when native Multi-AZ failover is adequate
  2. Both Regions must be able to serve production traffic and reconcile state correctly
  3. Recovery can tolerate restoring backups and provisioning infrastructure after a disaster
  4. The plan needs continuous replication and orchestrated recovery launches where supported

Explanation

Correct Answer

C:

Recovery can tolerate restoring backups and provisioning infrastructure after a disaster. That is the governing deployment boundary for the selected control: backup-and-restore recreates infrastructure and data only when needed, trading longer RTO for lower cost. If the boundary is missed, the design can fail to minimize steady-state disaster recovery costs where hours of recovery are acceptable.

Incorrect Answers

A:

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.

B:

This proposed constraint belongs to a separate objective: both Regions must be able to serve production traffic and reconcile state correctly; the corresponding goal is to minimize regional failover downtime for workloads designed to accept distributed traffic, not the selected architecture's goal to minimize steady-state disaster recovery costs where hours of recovery are acceptable.

D:

Elastic Disaster Recovery continuously replicates supported source-server data for recovery launches into AWS; its own dependency is that the plan needs continuous replication and orchestrated recovery launches where supported; those details concern the separate objective of being able to reduce recovery time for supported server workloads using block-level replication, rather than to the named control required to minimize steady-state disaster recovery costs where hours of recovery are acceptable.

Question 163

A production change is expected to execute controlled install and validation scripts during an EC2 deployment. The same change must also replace an entire instance release without modifying the current live fleet. Which paired implementation meets both acceptance criteria?

  1. Use an appspec.yml to define CodeDeploy instance hooks; use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group
  2. Attach validation hooks to a Lambda CodeDeploy deployment; use CodeDeploy blue/green deployment with a replacement EC2 Auto Scaling group
  3. Use an appspec.yml to define CodeDeploy instance hooks; set appropriate ECS deployment minimum healthy percent and maximum percent
  4. Enable provisioned concurrency on the Lambda alias or published version; install and run the CodeDeploy agent on target EC2 instances

Explanation

Correct Answer

A:

An AppSpec file maps application files and lifecycle event hooks for EC2 deployments. This handles the first acceptance condition, subject to the boundary that hook scripts must run at the expected deployment lifecycle events. The remaining condition is handled separately: CodeDeploy blue/green can provision replacement EC2 instances and reroute traffic after health checks, with the old environment should remain ready during a traffic switch.

Incorrect Answers

B:

Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks; that is intended to run pre-traffic or post-traffic checks before accepting an alias cutover, not to execute controlled install and validation scripts during an EC2 deployment. The second half can meet the requirement to replace an entire instance release without modifying the current live fleet, but the first is still missing.

C:

ECS deployment percentages bound the numbers of running and pending tasks during a rolling update; that alternative supports the ability to control the capacity margin during rolling task replacement, but it is not the requested second outcome (replace an entire instance release without modifying the current live fleet). Even though the first half addresses execute controlled install and validation scripts during an EC2 deployment, this pair is incomplete.

D:

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 make instances eligible to receive CodeDeploy lifecycle instructions. The release, however, needs to execute controlled install and validation scripts during an EC2 deployment as well as replace an entire instance release without modifying the current live fleet.

Question 164

A release design adopts this mechanism: Use an S3 bucket policy that denies insecure transport for organization logs. Which implementation detail is most relevant to its proposed use to prevent log upload and retrieval over unencrypted transport?

  1. Delivery roles and destinations must be scoped and protected centrally
  2. Role trust and target permissions must both be explicitly configured
  3. Central reporting should aggregate source data without changing each source configuration
  4. The control must operate at the resource boundary for all requesting principals
  5. Security monitoring policy should be managed from the security administration model
  6. The process must create member accounts under the organization's management structure

Explanation

Correct Answer

D:

The implementation has to honor the exact constraint: the control must operate at the resource boundary for all requesting principals; a bucket policy can deny requests when the aws:SecureTransport context indicates an insecure connection.

Incorrect Answers

A:

This condition governs the different mechanism used to collect network flow metadata from selected workload VPCs for audit analysis. VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations; for the selected control, the relevant boundary is instead that the control must operate at the resource boundary for all requesting principals.

B:

STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session; its own dependency is that role trust and target permissions must both be explicitly configured; those details concern the separate objective of being able to let central automation perform scoped tasks in governed member accounts, rather than to the named control required to prevent log upload and retrieval over unencrypted transport.

C:

The proposed condition makes sense in an implementation designed to view resource compliance and configuration state from a central operations account. It concerns a configuration aggregator consolidates supported AWS Config configuration and compliance data, whereas this question tests the prerequisite of the named control.

E:

This condition governs the different mechanism used to standardize security finding aggregation and enabled standards across accounts. Security Hub central configuration can apply supported policies across an organization hierarchy; for the selected control, the relevant boundary is instead that the control must operate at the resource boundary for all requesting principals.

F:

Organizations supports asynchronous member account creation through its account APIs. Its own dependency is that the process must create member accounts under the organization's management structure; those details concern the separate objective of being able to automate account creation and consolidate billing within an organization, rather than to the named control required to prevent log upload and retrieval over unencrypted transport.

Question 165

An automated check detects: A rolling ECS release cannot start new tasks because desired capacity and surge limits conflict. Which remediation directly supports the requirement to control the capacity margin during rolling task replacement?

  1. Configure ECS service deployment circuit breaker and rollback
  2. Run a post-deploy smoke test against an ALB health-checked endpoint
  3. Set appropriate ECS deployment minimum healthy percent and maximum percent
  4. Set termination wait time for a CodeDeploy ECS blue/green deployment

Explanation

Correct Answer

C:

ECS deployment percentages bound the numbers of running and pending tasks during a rolling update; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the release must preserve enough healthy tasks while permitting replacements.

Incorrect Answers

A:

The ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment; this is a reasonable option when the requirement is to automatically restore an earlier task deployment after a rolling deployment cannot stabilize, but it operates at a different workflow boundary from the stated need to control the capacity margin during rolling task replacement.

B:

Choosing this would aim to validate that a new service release responds correctly before ending the deployment instead of control the capacity margin during rolling task replacement. A smoke test targets live application behavior after rollout and can trigger deployment failure handling; it cannot replace the mechanism specified by the incident evidence.

D:

CodeDeploy blue/green termination settings control how long the original ECS task set remains after success; this can help teams retain the old ECS task set temporarily for rollback after traffic rerouting, but the reported workflow needs to control the capacity margin during rolling task replacement. It does not perform that required function.

Question 166

The next AWS platform release needs to apply additional DDoS protection and response capabilities to critical endpoints while also being able to automate TLS certificate provisioning for an AWS-managed load balancer. Which pairing best supports that release?

  1. Use an AWS WAF rate-based rule for abusive clients; use multi-Region KMS keys where the supported encryption workflow needs related keys
  2. Use subnet network ACL rules for stateless subnet-edge filtering; request an ACM-issued public certificate for a supported HTTPS endpoint
  3. Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources; request an ACM-issued public certificate for a supported HTTPS endpoint
  4. Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources; use an S3 gateway VPC endpoint and appropriate bucket policy constraints

Explanation

Correct Answer

C:

Shield Advanced offers enhanced detection, response capabilities, and protections for supported resources; AWS Certificate Manager provisions and renews eligible certificates for integrated AWS services. The first control satisfies the need to apply additional DDoS protection and response capabilities to critical endpoints; the second addresses the need to automate TLS certificate provisioning for an AWS-managed load balancer. The service owner is prepared to enable a paid advanced protection subscription; the ALB should use a managed public certificate with a valid domain validation path.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses limit repeated HTTP requests from sources that exceed an approved threshold; the other addresses manage related KMS key material for supported multi-Region cryptographic operations. The release, however, needs to apply additional DDoS protection and response capabilities to critical endpoints as well as automate TLS certificate provisioning for an AWS-managed load balancer.

B:

Network ACLs are stateless ordered rules applied to traffic entering and leaving subnets. That is intended to apply explicit allow and deny network rules at a subnet boundary, not to apply additional DDoS protection and response capabilities to critical endpoints; the second half can meet the requirement to automate TLS certificate provisioning for an AWS-managed load balancer, but the first is still missing.

D:

Combining a suitable first control with this second one misses the secondary acceptance criterion; S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets; it helps allow private subnet workloads to reach S3 without NAT for supported traffic rather than automate TLS certificate provisioning for an AWS-managed load balancer.

Question 167

The architecture record specifies: Inspect X-Ray traces for downstream service latency. To support the goal to find which dependency slows a distributed API request, which consideration should the engineer validate?

  1. Cluster capacity, taints, and resource requests must be reviewed before restarting pods
  2. A correlated request trace should reveal slow downstream segments
  3. Capacity metrics must be compared against throttling and request patterns
  4. The target port, route, response code, and health thresholds need verification

Explanation

Correct Answer

B:

A correlated request trace should reveal slow downstream segments. That is the governing deployment boundary for the selected control: x-Ray traces expose service dependencies and timing across instrumented operations. If the boundary is missed, the design can fail to find which dependency slows a distributed API request.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: cluster capacity, taints, and resource requests must be reviewed before restarting pods. The corresponding goal is to diagnose Kubernetes scheduling constraints rather than application code failure, not the selected architecture's goal to find which dependency slows a distributed API request.

C:

DynamoDB metrics identify throttled reads and writes and provisioned or consumed capacity behavior; its own dependency is that capacity metrics must be compared against throttling and request patterns. Those details concern the separate objective of being able to determine whether database request limits cause application retry storms, rather than to the named control required to find which dependency slows a distributed API request.

D:

The proposed condition makes sense in an implementation designed to diagnose why valid backend instances receive no load balancer traffic. It concerns ALB target-group status reason codes and health settings show why endpoints fail checks, whereas this question tests the prerequisite of the named control.

Question 168

A service owner needs to require a human release decision after staging tests and before production changes and restore a known successful release when a new stage execution fails. Which paired controls deliver the requested behavior across both workstreams?

  1. Add an explicit manual approval action before the production deploy stage; configure a cross-Region artifact store for the target action Region
  2. Add an explicit manual approval action before the production deploy stage; configure stage-level failure handling to stop and roll back supported pipeline executions
  3. Connect a CodePipeline source action to an approved Git provider through CodeConnections; configure stage-level failure handling to stop and roll back supported pipeline executions
  4. Restrict build credentials to a CodeBuild service role with least privilege; use a CodePipeline execution mode suited to parallel release frequency

Explanation

Correct Answer

B:

The first outcome depends on the behavior that a CodePipeline manual approval action pauses stage progression until approval, rejection, or timeout. Separately, CodePipeline supports stage failure actions including rollback for eligible pipeline types and stages. Together these meet the two requested outcomes, with the operational limits that the approver must see contextual information and approve the pending pipeline execution and rollback must use supported pipeline stage behavior and prior successful executions.

Incorrect Answers

A:

The first half is appropriate: A CodePipeline manual approval action pauses stage progression until approval, rejection, or timeout. However, cross-Region CodePipeline actions need an artifact store in each relevant action Region; that serves a different objective (run a deployment action in a different AWS Region from its pipeline) and leaves the explicit need to restore a known successful release when a new stage execution fails unmet.

C:

This combination solves only the latter acceptance test. The substituted first control supports start pipeline executions from commits on the approved application branch: the source connection supplies authorized repository events and revisions to a pipeline source action. It does not implement require a human release decision after staging tests and before production changes.

D:

Neither control directly supplies both requested behaviors. CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; pipeline execution modes determine whether newer runs supersede, queue behind, or coexist with active executions. Those mechanisms address different objectives. The specified capabilities are to require a human release decision after staging tests and before production changes and to restore a known successful release when a new stage execution fails.

Question 169

A technical change review names the selected control as follows: Use a resource-based policy on an S3 bucket for a cross-account principal. To authorize a designated external role to access a narrow set of objects, which constraint must be addressed for this design?

  1. The assumed session must not gain permissions beyond the base role
  2. Runtime application privileges should be isolated from ECS agent execution privileges
  3. Trust and permission policies must explicitly govern the destination role
  4. Cross-account access must be permitted by the relevant resource authorization model

Explanation

Correct Answer

D:

Cross-account access must be permitted by the relevant resource authorization model. That is the governing deployment boundary for the selected control: an S3 bucket policy can grant a specified external principal access to selected object ARNs. If the boundary is missed, the design can fail to authorize a designated external role to access a narrow set of objects.

Incorrect Answers

A:

STS session policies intersect with the role's permissions to further restrict an assumed-role session; its own dependency is that the assumed session must not gain permissions beyond the base role. Those details concern the separate objective of being able to further limit temporary role credentials to the resources needed by one execution, rather than to the named control required to authorize a designated external role to access a narrow set of objects.

B:

The proposed condition makes sense in an implementation designed to authorize container business logic to read only its specific AWS resources; it concerns ECS task roles grant permissions to containers; execution roles support image pulls, logs, and task startup, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: trust and permission policies must explicitly govern the destination role; the corresponding goal is to avoid distributing durable access keys for central administration in member accounts, not the selected architecture's goal to authorize a designated external role to access a narrow set of objects.

Question 170

An incident record says: The production package differs from the artifact that passed staging although the Git commit is unchanged. To restore the capability to promote the exact tested package between environments rather than rebuilding source independently, which change addresses the root cause?

  1. Enable CodeBuild report groups for automated test results
  2. Use an immutable artifact identifier when promoting a release
  3. Use a CodePipeline approval stage with a designated SNS notification
  4. Define build phases and commands in the CodeBuild buildspec

Explanation

Correct Answer

B:

To promote the exact tested package between environments rather than rebuilding source independently, the architecture relies on this AWS behavior: promoting a fixed artifact identity prevents environment-specific rebuilds from silently changing the delivered bytes. Release provenance must refer to a single versioned artifact or image digest.

Incorrect Answers

A:

The choice is useful when engineers need to publish structured test reports that reviewers can inspect after a CI run: CodeBuild report groups ingest supported test and code-coverage files generated during a build. It would not establish the control needed to promote the exact tested package between environments rather than rebuilding source independently.

C:

Choosing this would aim to notify release owners that production is awaiting an approval action instead of promote the exact tested package between environments rather than rebuilding source independently; the manual approval action can publish an approval notification to an SNS topic for human review; it cannot replace the mechanism specified by the incident evidence.

D:

Although a buildspec documents lifecycle phases, shell commands, outputs, and optional reports for CodeBuild, the scenario does not ask for run ordered install, pre-build, build, and post-build commands as part of CI. It requires the ability to promote the exact tested package between environments rather than rebuilding source independently, which is a separate responsibility.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests