Question 270

An AWS design review will approve a solution only if it meets these criteria: (1) collect recurring operational issues with linked resource context and status; (2) scan and install operating-system updates according to approved patch classifications; (3) publish an internal agent package and distribute it to managed nodes. Select the THREE needed changes. Choose THREE.

  1. Use Systems Manager Distributor for controlled software-package deployment
  2. Attach an SSM Automation remediation action to an AWS Config rule
  3. Use Systems Manager OpsCenter OpsItems for operational work tracking
  4. Use Systems Manager Automation runbooks for multi-step operational remediation
  5. Use Systems Manager Patch Manager and patch baselines
  6. Use Systems Manager Session Manager for audited interactive access

Explanation

Correct Answers

A:

Distributor manages software packages that can be installed or updated through Systems Manager workflows; among the listed outcomes, it addresses publish an internal agent package and distribute it to managed nodes, rather than merely contributing a related signal or support step.

C:

OpsCenter OpsItems group investigation context and operational metadata for issue management. This fulfills the stated requirement to collect recurring operational issues with linked resource context and status. The operational limitation is that each issue needs a durable operational record with ownership and resource references.

E:

Patch Manager applies selected baselines to supported managed nodes for scan or install operations; among the listed outcomes, it addresses scan and install operating-system updates according to approved patch classifications, rather than merely contributing a related signal or support step.

Incorrect Answers

B:

Config remediation configurations can invoke Systems Manager Automation documents for matching findings; if the requirement were to remediate eligible noncompliant resources using a controlled runbook, that would matter. The requested outcomes are separate from the one this option addresses.

D:

This mechanism supports the ability to combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook: automation runbooks execute structured steps and AWS service operations with defined permissions. It would not satisfy a different obligation just by appearing in the same workflow.

F:

Session Manager provides managed interactive sessions through Systems Manager connectivity and IAM controls; if the requirement were to troubleshoot managed EC2 hosts without opening SSH ports or distributing key pairs, that would matter. The requested outcomes are separate from the one this option addresses.

Question 271

A production ticket contains this symptom: A cleanup Lambda requires a dedicated server solely to track scheduled invocations. The desired behavior is to invoke a service API at a one-time or recurring schedule without hosting a cron instance. What should be fixed?

  1. Use a Step Functions Map state for bounded parallel processing
  2. Use AWS Config custom or managed rules for compliance evaluation
  3. Use EventBridge Scheduler for per-task scheduled API invocations
  4. Use an SQS dead-letter queue for repeatedly failing asynchronous work

Explanation

Correct Answer

C:

EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; it restores the ability to invoke a service API at a one-time or recurring schedule without hosting a cron instance, provided the implementation also observes that retries and dead-letter delivery need managed scheduling controls.

Incorrect Answers

A:

That service solves a different operating problem: the need to run a repeatable remediation step against multiple independent work items. Its behavior is that map states can apply a defined workflow to collections with configurable concurrency. The requested outcome remains invoke a service API at a one-time or recurring schedule without hosting a cron instance.

B:

The choice is useful when engineers need to detect resources that diverge from a defined account-level configuration policy: config rules evaluate supported resource configurations against policy and report compliance outcomes. It would not establish the control needed to invoke a service API at a one-time or recurring schedule without hosting a cron instance.

D:

Choosing this would aim to isolate messages that exceed the permitted receive-attempt count instead of invoke a service API at a one-time or recurring schedule without hosting a cron instance. SQS redrive policies move repeatedly unsuccessfully processed messages to a designated dead-letter queue; it cannot replace the mechanism specified by the incident evidence.

Question 272

The release manager reports the following failure: The original task set disappears immediately after cutover and rollback needs a new deployment. Which action directly restores the requirement to retain the old ECS task set temporarily for rollback after traffic rerouting?

  1. Set termination wait time for a CodeDeploy ECS blue/green deployment
  2. Use immutable AMI replacement through an Auto Scaling instance refresh
  3. Use CodeDeploy ECS blue/green with two target groups
  4. Run a post-deploy smoke test against an ALB health-checked endpoint
  5. Set appropriate ECS deployment minimum healthy percent and maximum percent

Explanation

Correct Answer

A:

CodeDeploy blue/green termination settings control how long the original ECS task set remains after success; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the rollback window must preserve the old environment for the approved interval.

Incorrect Answers

B:

Auto Scaling instance refresh replaces instances according to an updated launch template and health controls; this is a reasonable option when the requirement is to replace outdated instances with a tested image instead of mutating running systems, but it operates at a different workflow boundary from the stated need to retain the old ECS task set temporarily for rollback after traffic rerouting.

C:

Choosing this would aim to shift load balancer traffic from the old ECS task set to the new task set instead of retain the old ECS task set temporarily for rollback after traffic rerouting. CodeDeploy blue/green ECS deployments use replacement task sets and load balancer target groups for traffic shifts; it cannot replace the mechanism specified by the incident evidence.

D:

Although a smoke test targets live application behavior after rollout and can trigger deployment failure handling, the scenario does not ask for validate that a new service release responds correctly before ending the deployment. It requires the ability to retain the old ECS task set temporarily for rollback after traffic rerouting, which is a separate responsibility.

E:

ECS deployment percentages bound the numbers of running and pending tasks during a rolling update; this can help teams control the capacity margin during rolling task replacement, but the reported workflow needs to retain the old ECS task set temporarily for rollback after traffic rerouting. It does not perform that required function.

Question 273

The production plan uses this approach: Configure CloudWatch Logs subscription filters to stream events to an eligible destination. The goal is to process matching log records as they arrive instead of polling stored logs. Which prerequisite or limitation should receive focused review?

  1. The response must support a query language over centrally stored log events
  2. The pipeline needs streaming delivery of filtered log events
  3. The aggregator needs authorized sources and configuration recording in source accounts
  4. Storage classes and retention controls should fit audit-access frequency
  5. Metric export should be managed and near-real-time without custom scraping loops

Explanation

Correct Answer

B:

The pipeline needs streaming delivery of filtered log events. Without this, choosing the named service is not enough to produce the promised outcome; subscription filters route new matching CloudWatch Logs events to supported streaming or processing destinations.

Incorrect Answers

A:

CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. Its own dependency is that the response must support a query language over centrally stored log events; those details concern the separate objective of being able to query structured error events across log groups during incidents, rather than to the named control required to process matching log records as they arrive instead of polling stored logs.

C:

This proposed constraint belongs to a separate objective: the aggregator needs authorized sources and configuration recording in source accounts; the corresponding goal is to centralize supported configuration and compliance summaries from accounts and Regions, not the selected architecture's goal to process matching log records as they arrive instead of polling stored logs.

D:

This condition governs the different mechanism used to retain bulk historical logs at lower long-term storage cost; S3 lifecycle rules transition or expire suitable log objects based on approved retention requirements; for the selected control, the relevant boundary is instead that the pipeline needs streaming delivery of filtered log events.

E:

CloudWatch metric streams continuously send metric data to supported delivery services. Its own dependency is that metric export should be managed and near-real-time without custom scraping loops. Those details concern the separate objective of being able to continuously export supported metrics to an external observability platform, rather than to the named control required to process matching log records as they arrive instead of polling stored logs.

Question 274

For the current AWS workload, operators need to address the following together: (1) expire routine log events after the approved operating retention period; (2) control at-rest log encryption under an explicitly governed encryption key. Which TWO actions complete the plan? Choose TWO.

  1. Create CloudWatch metric streams to Amazon Data Firehose
  2. Configure CloudWatch Logs retention per application log group
  3. Enable CloudTrail log file integrity validation for audit log chains
  4. Configure CloudTrail data events for selected sensitive S3 buckets
  5. Associate a customer managed KMS key with a CloudWatch Logs log group

Explanation

Correct Answers

B:

This covers the specific result to expire routine log events after the approved operating retention period: log-group retention settings automatically expire data beyond the configured retention interval. Retention periods should vary by data classification and compliance obligations.

E:

CloudWatch Logs supports customer-managed KMS key association for eligible log groups. Among the listed outcomes, it addresses control at-rest log encryption under an explicitly governed encryption key, rather than merely contributing a related signal or support step.

Incorrect Answers

A:

It supports a separate administrative task, namely to continuously export supported metrics to an external observability platform. CloudWatch metric streams continuously send metric data to supported delivery services. The prompt's required outcomes are not achieved by substituting this control.

C:

CloudTrail log file integrity validation delivers digest files that can verify delivered logs. That would be appropriate to detect tampering with delivered CloudTrail log files, but this is a different objective from the numbered obligations in the stem.

D:

This mechanism supports the ability to record relevant object-level API activity rather than only account management events: CloudTrail data events capture selected data-plane operations, such as S3 object API calls; it would not satisfy a different obligation just by appearing in the same workflow.

Question 275

A service owner needs to prevent all affected principals in a production OU from performing prohibited service actions and authorize a designated external role to access a narrow set of objects. Which paired controls deliver the requested behavior across both workstreams?

  1. Enable Secrets Manager rotation with a supported rotation strategy; use a resource-based policy on an S3 bucket for a cross-account principal
  2. Use an Organizations service control policy as an account-wide permission guardrail; use a resource-based policy on an S3 bucket for a cross-account principal
  3. Use an Organizations service control policy as an account-wide permission guardrail; use an IAM role with STS temporary credentials for cross-account operations
  4. Use session policies when assuming a role for a narrowly scoped job; use IAM Identity Center with an external identity provider federation

Explanation

Correct Answer

B:

SCPs set maximum available permissions for member-account principals but do not themselves allow actions; an S3 bucket policy can grant a specified external principal access to selected object ARNs. The first control satisfies the need to prevent all affected principals in a production OU from performing prohibited service actions; the second addresses the need to authorize a designated external role to access a narrow set of objects. The cap must apply independently from member account IAM role grants; cross-account access must be permitted by the relevant resource authorization model.

Incorrect Answers

A:

The second implementation is relevant; the problem is the first. Secrets Manager rotation workflows update stored credentials and, with integration, the underlying service credential; it can help rotate an application database password without manual quarterly updates, whereas the stated first requirement is to prevent all affected principals in a production OU from performing prohibited service actions.

C:

The first half is appropriate: SCPs set maximum available permissions for member-account principals but do not themselves allow actions. However, STS AssumeRole issues expiring credentials for a trusted role rather than persistent user secrets; that serves a different objective (avoid distributing durable access keys for central administration in member accounts) and leaves the explicit need to authorize a designated external role to access a narrow set of objects unmet.

D:

These are legitimate AWS controls for different outcomes: STS session policies intersect with the role's permissions to further restrict an assumed-role session, whereas IAM Identity Center integrates with supported identity providers for federated workforce access. The problem instead requires the ability to prevent all affected principals in a production OU from performing prohibited service actions and to authorize a designated external role to access a narrow set of objects.

Question 276

An engineer will implement the following change: Use CloudWatch alarms on DynamoDB throttled requests. Which operational boundary most directly applies to the intended outcome to detect insufficient or overloaded request capacity before clients fail broadly?

  1. The system must evaluate resource configuration against a known rule
  2. The alarm should use service-reported throttling data rather than EC2 CPU
  3. Alarm thresholds must correspond to the associated scaling-policy behavior
  4. Health checks should use an endpoint and thresholds suited to the backend

Explanation

Correct Answer

B:

The requested behavior is to detect insufficient or overloaded request capacity before clients fail broadly, and the alarm should use service-reported throttling data rather than EC2 CPU. The underlying AWS behavior is that DynamoDB CloudWatch metrics expose throttled requests and relevant read or write capacity behavior.

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 alarm should use service-reported throttling data rather than EC2 CPU.

C:

The proposed condition makes sense in an implementation designed to adjust worker fleet capacity when a workload metric crosses a defined level. It concerns step or simple scaling policies can be driven by CloudWatch alarm transitions, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: health checks should use an endpoint and thresholds suited to the backend. The corresponding goal is to exclude backend nodes that cannot serve required application requests, not the selected architecture's goal to detect insufficient or overloaded request capacity before clients fail broadly.

Question 277

The platform engineering group cannot close its release review until both of these are possible: cap the number of concurrent handlers acting on a sensitive downstream API; prevent repeated event delivery from causing duplicate infrastructure changes. Which implementation pair satisfies the review?

  1. Use Lambda reserved concurrency to limit simultaneous remediation functions; use EventBridge Scheduler for per-task scheduled API invocations
  2. Use a Step Functions Map state for bounded parallel processing; use conditional writes or deduplication keys to make a remediation handler idempotent
  3. Use Lambda reserved concurrency to limit simultaneous remediation functions; use conditional writes or deduplication keys to make a remediation handler idempotent
  4. Use AWS Config custom or managed rules for compliance evaluation; use Systems Manager Automation runbooks for multi-step operational remediation

Explanation

Correct Answer

C:

Reserved concurrency sets a function-level limit and allocation of simultaneous Lambda executions; this handles the first acceptance condition, subject to the boundary that automation must bound concurrency even when incoming event volume spikes. The remaining condition is handled separately: idempotency controls make repeated executions converge on the same intended side effect, with the response must remain safe under at-least-once delivery semantics.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; EventBridge Scheduler manages time-based invocation schedules with supported targets and retry policies; it helps invoke a service API at a one-time or recurring schedule without hosting a cron instance rather than prevent repeated event delivery from causing duplicate infrastructure changes.

B:

Map states can apply a defined workflow to collections with configurable concurrency. That is intended to run a repeatable remediation step against multiple independent work items, not to cap the number of concurrent handlers acting on a sensitive downstream API. The second half can meet the requirement to prevent repeated event delivery from causing duplicate infrastructure changes, but the first is still missing.

D:

The pair changes the problem instead of completing it. One option addresses detect resources that diverge from a defined account-level configuration policy; the other addresses combine approvals, API actions, branching, and rollback-aware tasks in a repeatable runbook. The release, however, needs to cap the number of concurrent handlers acting on a sensitive downstream API as well as prevent repeated event delivery from causing duplicate infrastructure changes.

Question 278

A production ticket contains this symptom: A third-party metrics store receives stale snapshots from a periodic polling script. The desired behavior is to continuously export supported metrics to an external observability platform. What should be fixed?

  1. Create CloudWatch metric streams to Amazon Data Firehose
  2. Publish PutMetricData custom metrics with stable dimensions
  3. Configure CloudWatch Logs cross-account subscription delivery through supported destination policies
  4. Use CloudWatch agent StatsD or collectd integrations for supported workloads

Explanation

Correct Answer

A:

CloudWatch metric streams continuously send metric data to supported delivery services. It restores the ability to continuously export supported metrics to an external observability platform, provided the implementation also observes that metric export should be managed and near-real-time without custom scraping loops.

Incorrect Answers

B:

CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation; this is a reasonable option when the requirement is to track a domain-specific success count broken down by deployed service, but it operates at a different workflow boundary from the stated need to continuously export supported metrics to an external observability platform.

C:

Choosing this would aim to centralize matching account log streams into a designated log-processing account instead of continuously export supported metrics to an external observability platform. CloudWatch Logs destinations and resource policies authorize supported cross-account subscription flows; it cannot replace the mechanism specified by the incident evidence.

D:

Although the unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch, the scenario does not ask for bridge existing application metric protocols into CloudWatch; it requires the ability to continuously export supported metrics to an external observability platform, which is a separate responsibility.

Question 279

A release design adopts this mechanism: Assign AWS IAM Identity Center permission sets to workforce groups. Which implementation detail is most relevant to its proposed use to provide centrally managed access to many AWS accounts for federated employees?

  1. The maximum permissions of created roles must be bounded independently of identity policy allows
  2. The customer role should verify an agreed external identifier supplied by the trusted provider
  3. Access assignments should be revoked centrally when an employee changes teams
  4. The condition must apply to supported request paths and account for AWS service-to-service exceptions
  5. The build project role should authorize only required artifact and deployment operations

Explanation

Correct Answer

C:

The requested behavior is to provide centrally managed access to many AWS accounts for federated employees, and access assignments should be revoked centrally when an employee changes teams. The underlying AWS behavior is that IAM Identity Center provisions account roles through permission-set assignments to users and groups.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the maximum permissions of created roles must be bounded independently of identity policy allows; the corresponding goal is to allow a development platform team to create roles without granting unlimited privileges, not the selected architecture's goal to provide centrally managed access to many AWS accounts for federated employees.

B:

This condition governs the different mechanism used to reduce confused-deputy risk when a SaaS vendor assumes customer roles. The sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests; for the selected control, the relevant boundary is instead that access assignments should be revoked centrally when an employee changes teams.

D:

The proposed condition makes sense in an implementation designed to deny access to a sensitive resource unless requests use an approved VPC endpoint; it concerns the source VPC endpoint condition can constrain eligible requests to a designated private endpoint path, whereas this question tests the prerequisite of the named control.

E:

This proposed constraint belongs to a separate objective: the build project role should authorize only required artifact and deployment operations. The corresponding goal is to prevent CI workers from embedding persistent AWS keys in build scripts, not the selected architecture's goal to provide centrally managed access to many AWS accounts for federated employees.

Question 280

Investigators observe: A new image builds successfully despite containing a blocked library vulnerability. Engineers still need to reject packages containing prohibited vulnerable dependencies before production. Which corrective action is most appropriate?

  1. Separate performance threshold checks from functional correctness tests
  2. Run dependency and container image scanning before artifact promotion
  3. Execute integration tests against an isolated ephemeral test stack
  4. Run controlled load tests in a dedicated performance environment

Explanation

Correct Answer

B:

To reject packages containing prohibited vulnerable dependencies before production, the architecture relies on this AWS behavior: an automated scanning gate blocks releases when risk findings breach the defined security policy. Security scanning must evaluate the built artifact or dependency manifest prior to deployment.

Incorrect Answers

A:

Choosing this would aim to fail a release when latency regresses even though all APIs still return successful status codes instead of reject packages containing prohibited vulnerable dependencies before production. Performance testing assesses response-time and throughput targets distinct from pass or fail functionality; it cannot replace the mechanism specified by the incident evidence.

C:

An integration environment exercises actual API and infrastructure interactions that unit mocks do not cover; this can help teams validate service-to-service interactions against real deployed dependencies before approval, but the reported workflow needs to reject packages containing prohibited vulnerable dependencies before production. It does not perform that required function.

D:

That service solves a different operating problem: the need to measure throughput and latency under expected concurrency without degrading production. Its behavior is that dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load. The requested outcome remains reject packages containing prohibited vulnerable dependencies before production.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests