Question 260

The architecture record specifies: Use AWS Config conformance packs for grouped compliance evaluation. To support the goal to evaluate a collection of resource configuration controls against a standard, which consideration should the engineer validate?

  1. The comparison should focus on supported declared CloudFormation properties
  2. Rules should be bundled with any supported remediation definitions as a deployable unit
  3. The report should focus on IAM users and key use rather than role session credentials
  4. The process should adjust supported finding properties based on matching conditions

Explanation

Correct Answer

B:

The requested behavior is to evaluate a collection of resource configuration controls against a standard, and rules should be bundled with any supported remediation definitions as a deployable unit. The underlying AWS behavior is that conformance packs package AWS Config rules and supported remediation actions for consistent evaluation.

Incorrect Answers

A:

This condition governs the different mechanism used to identify resource properties that no longer match the approved template. Drift detection checks supported stack resource configuration against the declared IaC state. For the selected control, the relevant boundary is instead that rules should be bundled with any supported remediation definitions as a deployable unit.

C:

The proposed condition makes sense in an implementation designed to identify aging IAM user credentials that require rotation or removal; it concerns IAM credential reports and access-key usage metadata support audits of IAM user authentication materials, whereas this question tests the prerequisite of the named control.

D:

This proposed constraint belongs to a separate objective: the process should adjust supported finding properties based on matching conditions. The corresponding goal is to normalize and triage recurring findings according to defined central criteria, not the selected architecture's goal to evaluate a collection of resource configuration controls against a standard.

Question 261

An engineer is addressing a two-part observability requirement: query structured error events across log groups during incidents, without losing the ability to control at-rest log encryption under an explicitly governed encryption key. Which set of actions is suitable?

  1. Use CloudWatch Logs Insights for interactive log analysis; deliver S3 server access logs or application exports through lifecycle-managed buckets
  2. Enable CloudTrail log file integrity validation for audit log chains; associate a customer managed KMS key with a CloudWatch Logs log group
  3. Use CloudWatch Logs Insights for interactive log analysis; associate a customer managed KMS key with a CloudWatch Logs log group
  4. Publish PutMetricData custom metrics with stable dimensions; associate a customer managed KMS key with a CloudWatch Logs log group
  5. Use CloudWatch Logs Insights for interactive log analysis; use CloudWatch agent StatsD or collectd integrations for supported workloads
  6. Publish application logs in structured JSON with stable correlation identifiers; configure HTTPS or TLS for log delivery clients

Explanation

Correct Answer

C:

CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. This handles the first acceptance condition, subject to the boundary that the response must support a query language over centrally stored log events. The remaining condition is handled separately: CloudWatch Logs supports customer-managed KMS key association for eligible log groups, with the log service principal and key policy need the required encrypt and decrypt permissions.

Incorrect Answers

A:

The first half is appropriate: CloudWatch Logs Insights runs interactive queries over selected CloudWatch log groups. However, S3 lifecycle rules transition or expire suitable log objects based on approved retention requirements; that serves a different objective (retain bulk historical logs at lower long-term storage cost) and leaves the explicit need to control at-rest log encryption under an explicitly governed encryption key unmet.

B:

The second implementation is relevant; the problem is the first. CloudTrail log file integrity validation delivers digest files that can verify delivered logs. It can help detect tampering with delivered CloudTrail log files, whereas the stated first requirement is to query structured error events across log groups during incidents.

D:

CloudWatch custom metrics accept namespace, metric name, dimensions, values, and timestamps for aggregation; that is intended to track a domain-specific success count broken down by deployed service, not to query structured error events across log groups during incidents. The second half can meet the requirement to control at-rest log encryption under an explicitly governed encryption key, but the first is still missing.

E:

The unified CloudWatch agent supports collection from compatible metrics protocols and export to CloudWatch; that alternative supports the ability to bridge existing application metric protocols into CloudWatch, but it is not the requested second outcome (control at-rest log encryption under an explicitly governed encryption key). Even though the first half addresses query structured error events across log groups during incidents, this pair is incomplete.

F:

The pair changes the problem instead of completing it. One option addresses correlate requests across independent container services in a central log search; the other addresses protect sensitive telemetry while it travels from producers to ingestion endpoints. The release, however, needs to query structured error events across log groups during incidents as well as control at-rest log encryption under an explicitly governed encryption key.

Question 262

A technical change review names the selected control as follows: Run SQL queries against existing CloudTrail Lake event data stores. To query retained CloudTrail events without first building a custom S3 query pipeline, which constraint must be addressed for this design?

  1. Data store settings should match retention and ingestion requirements
  2. Responders need graph-style relationships rather than an additional blocking firewall rule
  3. Content discovery should determine whether supported S3 objects contain sensitive information
  4. The comparison should focus on supported declared CloudFormation properties

Explanation

Correct Answer

A:

Data store settings should match retention and ingestion requirements. Without this, choosing the named service is not enough to produce the promised outcome. CloudTrail Lake ingests supported events into queryable event data stores.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: responders need graph-style relationships rather than an additional blocking firewall rule; the corresponding goal is to explore linked entity behaviors around a suspicious IAM principal, not the selected architecture's goal to query retained CloudTrail events without first building a custom S3 query pipeline.

C:

This condition governs the different mechanism used to identify buckets and objects that contain potentially regulated data; Macie analyzes supported S3 objects and reports sensitive-data discovery findings; for the selected control, the relevant boundary is instead that data store settings should match retention and ingestion requirements.

D:

Drift detection checks supported stack resource configuration against the declared IaC state. Its own dependency is that the comparison should focus on supported declared CloudFormation properties. Those details concern the separate objective of being able to identify resource properties that no longer match the approved template, rather than to the named control required to query retained CloudTrail events without first building a custom S3 query pipeline.

Question 263

A new AWS operations standard requires the ability to publish structured test reports that reviewers can inspect after a CI run and run ordered install, pre-build, build, and post-build commands as part of CI in the same operating environment. Which proposed pair delivers both?

  1. Enable CodeBuild local caching for reusable build dependencies; use a deployment action with a production-account IAM role
  2. Enable CodeBuild report groups for automated test results; define build phases and commands in the CodeBuild buildspec
  3. Resolve runtime secrets from Secrets Manager during the build; define build phases and commands in the CodeBuild buildspec
  4. Enable CodeBuild report groups for automated test results; restrict build credentials to a CodeBuild service role with least privilege

Explanation

Correct Answer

B:

CodeBuild report groups ingest supported test and code-coverage files generated during a build; a buildspec documents lifecycle phases, shell commands, outputs, and optional reports for CodeBuild. The first control satisfies the need to publish structured test reports that reviewers can inspect after a CI run; the second addresses the need to run ordered install, pre-build, build, and post-build commands as part of CI. Results must remain associated with their build executions; commands and artifact declarations must be versioned with the source repository.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: local caches can reuse permitted source or dependency data on a build host, subject to environment and cache limitations, whereas role separation allows each pipeline action to run under the permissions approved for its target environment. The problem instead requires the ability to publish structured test reports that reviewers can inspect after a CI run and to run ordered install, pre-build, build, and post-build commands as part of CI.

C:

Secrets Manager stores secret values and supports managed rotation integrations; runtime retrieval avoids committing values; that is intended to supply a rotating database credential to CI jobs without placing the secret in source control, not to publish structured test reports that reviewers can inspect after a CI run. The second half can meet the requirement to run ordered install, pre-build, build, and post-build commands as part of CI, but the first is still missing.

D:

CodeBuild runs under its assigned IAM service role, which needs access to referenced buckets, logs, and relevant keys; that alternative supports the ability to let automated builds read only the required inputs and publish expected outputs, but it is not the requested second outcome (run ordered install, pre-build, build, and post-build commands as part of CI). Even though the first half addresses publish structured test reports that reviewers can inspect after a CI run, this pair is incomplete.

Question 264

The current plan covers only one side of the incident-response operating model. It needs to accept operational events from multiple workload accounts into a central responder account as well as reprocess a historical event period after a corrected incident workflow is deployed. Which paired changes complete the design?

  1. Use an SQS FIFO queue when processing order per message group matters; use AWS Health events through EventBridge for account-impact notifications
  2. Use an EventBridge organization event bus with cross-account permissions; use an EventBridge rule matching a specific CloudTrail API event pattern
  3. Use an EventBridge organization event bus with cross-account permissions; use EventBridge archive and replay for selected critical events
  4. Use an EventBridge organization event bus with cross-account permissions; use Kinesis Data Streams for ordered partition-based event processing
  5. Use SQS visibility timeouts aligned to consumer processing; use EventBridge archive and replay for selected critical events

Explanation

Correct Answer

C:

For the requirement to accept operational events from multiple workload accounts into a central responder account, EventBridge event bus resource policies control cross-account event ingestion and routing; for the requirement to reprocess a historical event period after a corrected incident workflow is deployed, EventBridge archives can retain selected events for later replay to an event bus; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Neither control directly supplies both requested behaviors. SQS FIFO queues preserve order within message groups with managed deduplication semantics; supported AWS Health events appear on EventBridge and can trigger notification or workflows. Those mechanisms address different objectives. The specified capabilities are to accept operational events from multiple workload accounts into a central responder account and to reprocess a historical event period after a corrected incident workflow is deployed.

B:

EventBridge matches supported API activity events and invokes selected event targets. That alternative supports the ability to start an incident workflow after a restricted AWS configuration API call, but it is not the requested second outcome (reprocess a historical event period after a corrected incident workflow is deployed). Even though the first half addresses accept operational events from multiple workload accounts into a central responder account, this pair is incomplete.

D:

The first half is appropriate: EventBridge event bus resource policies control cross-account event ingestion and routing. However, Kinesis Data Streams partitions records by key and retains them for consumers to read over time; that serves a different objective (ingest a high-volume event stream with multiple independently scaled consumers) and leaves the explicit need to reprocess a historical event period after a corrected incident workflow is deployed unmet.

E:

The second implementation is relevant; the problem is the first. SQS visibility timeouts temporarily hide received messages until deletion or timeout expiration; it can help prevent a valid long-running worker task from being processed concurrently, whereas the stated first requirement is to accept operational events from multiple workload accounts into a central responder account.

Question 265

The cloud operations group selects this control: Publish a Lambda version and route clients through an alias. What associated scope or dependency matters most when using it to release immutable Lambda code while keeping callers on a stable function reference?

  1. Capacity must be prepared for the immutable version behind the release alias
  2. Rollback must be linked to an explicit monitored deployment failure condition
  3. Auto Scaling must pause transition while initialization work runs
  4. Clients must invoke a stable alias while versions remain immutable
  5. The invoking application must retain a stable endpoint throughout the migration
  6. A failed validation hook must stop or fail the deployment workflow

Explanation

Correct Answer

D:

Clients must invoke a stable alias while versions remain immutable. That is the governing deployment boundary for the selected control: a published Lambda version snapshots code and configuration; an alias can reference the selected version. If the boundary is missed, the design can fail to release immutable Lambda code while keeping callers on a stable function reference.

Incorrect Answers

A:

Provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases; its own dependency is that capacity must be prepared for the immutable version behind the release alias. Those details concern the separate objective of being able to reduce cold-start latency for a predictable high-priority request path, rather than to the named control required to release immutable Lambda code while keeping callers on a stable function reference.

B:

The proposed condition makes sense in an implementation designed to halt an EC2 release when service health violates a CloudWatch alarm; it concerns CodeDeploy can monitor CloudWatch alarms and stop or roll back deployments based on configured criteria, whereas this question tests the prerequisite of the named control; the specified requirement instead is to release immutable Lambda code while keeping callers on a stable function reference.

C:

This proposed constraint belongs to a separate objective: auto Scaling must pause transition while initialization work runs; the corresponding goal is to delay load balancer registration until a new EC2 instance is correctly configured, not the selected architecture's goal to release immutable Lambda code while keeping callers on a stable function reference.

E:

A Lambda alias can distribute invocations between its primary and additional published version; its own dependency is that the invoking application must retain a stable endpoint throughout the migration. Those details concern the separate objective of being able to split invocation traffic between two published Lambda versions without changing callers, rather than to the named control required to release immutable Lambda code while keeping callers on a stable function reference.

F:

The proposed condition makes sense in an implementation designed to run pre-traffic or post-traffic checks before accepting an alias cutover; it concerns Lambda deployment lifecycle hooks invoke designated validation functions for pre- and post-traffic checks, whereas this question tests the prerequisite of the named control.

Question 266

The next AWS platform release needs to recover an eligible impaired instance when a system-status check indicates host failure while also being able to adjust worker fleet capacity when a workload metric crosses a defined level. Which pairing best supports that release?

  1. Use CloudWatch Contributor Insights for supported high-cardinality usage analysis; use EventBridge input transformation before notifying an operations target
  2. Use a CloudWatch alarm action for supported EC2 automatic recovery; use CloudWatch alarm actions to invoke supported Auto Scaling policies
  3. Use a CloudWatch alarm action for supported EC2 automatic recovery; use EventBridge rules to route AWS Health account events to response automation
  4. Use CloudWatch alarms on DynamoDB throttled requests; use CloudWatch alarm actions to invoke supported Auto Scaling policies
  5. Use a CloudWatch alarm action for supported EC2 automatic recovery; use a CloudWatch metric filter and alarm for unusual log events

Explanation

Correct Answer

B:

Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures; this handles the first acceptance condition, subject to the boundary that the target instance and alarm must meet EC2 recovery requirements; the remaining condition is handled separately: step or simple scaling policies can be driven by CloudWatch alarm transitions, with alarm thresholds must correspond to the associated scaling-policy behavior.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: contributor Insights rules analyze supported log or metric inputs to identify top contributing entities, whereas EventBridge input transformers construct custom target payloads from matched event fields. The problem instead requires the ability to recover an eligible impaired instance when a system-status check indicates host failure and to adjust worker fleet capacity when a workload metric crosses a defined level.

C:

The first half is appropriate: Supported CloudWatch alarm actions can request EC2 instance recovery for qualifying status-check failures. However, EventBridge receives supported AWS Health events and routes matching events to configured targets; that serves a different objective (notify the operations account when an AWS service issue affects the workload) and leaves the explicit need to adjust worker fleet capacity when a workload metric crosses a defined level unmet.

D:

The second implementation is relevant; the problem is the first. DynamoDB CloudWatch metrics expose throttled requests and relevant read or write capacity behavior; it can help detect insufficient or overloaded request capacity before clients fail broadly, whereas the stated first requirement is to recover an eligible impaired instance when a system-status check indicates host failure.

E:

Combining a suitable first control with this second one misses the secondary acceptance criterion; a metric filter emits values from matching logs that a CloudWatch alarm can evaluate; it helps raise an incident when a known error token appears repeatedly in application logs rather than adjust worker fleet capacity when a workload metric crosses a defined level.

Question 267

During root-cause analysis, the team identifies the following: A subnet-level control must reject a known CIDR while preserving separately managed instance groups. To apply explicit allow and deny network rules at a subnet boundary, what should be configured?

  1. Deploy AWS Network Firewall for stateful VPC traffic inspection
  2. Use subnet network ACL rules for stateless subnet-edge filtering
  3. Use security group rules for stateful instance or ENI traffic control
  4. Enable GuardDuty across organization accounts to detect suspicious activity
  5. Use AWS WAF managed rules on the web-facing ALB
  6. Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources

Explanation

Correct Answer

B:

Network ACLs are stateless ordered rules applied to traffic entering and leaving subnets. It restores the ability to apply explicit allow and deny network rules at a subnet boundary, provided the implementation also observes that return traffic requires matching stateless rules for ephemeral ports where applicable.

Incorrect Answers

A:

Network Firewall inspects routed VPC traffic using stateless and stateful rule groups. This is a reasonable option when the requirement is to enforce centralized network-layer filtering across selected VPC traffic paths, but it operates at a different workflow boundary from the stated need to apply explicit allow and deny network rules at a subnet boundary.

C:

Although security groups apply stateful allow rules to supported network interfaces and resources, the scenario does not ask for restrict inbound application ports while permitting corresponding return traffic; it requires the ability to apply explicit allow and deny network rules at a subnet boundary, which is a separate responsibility.

D:

GuardDuty analyzes supported telemetry and uses threat detection to generate security findings; this can help teams surface suspicious credentials and network behavior without building a custom detector, but the reported workflow needs to apply explicit allow and deny network rules at a subnet boundary. It does not perform that required function.

E:

That service solves a different operating problem: the need to filter common malicious HTTP request patterns before they reach the application. Its behavior is that AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic. The requested outcome remains apply explicit allow and deny network rules at a subnet boundary.

F:

The choice is useful when engineers need to apply additional DDoS protection and response capabilities to critical endpoints: shield Advanced offers enhanced detection, response capabilities, and protections for supported resources. It would not establish the control needed to apply explicit allow and deny network rules at a subnet boundary.

Question 268

The delivery engineering team reports the following failure: Pending tasks accumulate because the ECS cluster has insufficient EC2 compute for scheduling. Which action directly restores the requirement to coordinate ECS service task placement with managed EC2 capacity?

  1. Configure Kubernetes Horizontal Pod Autoscaler with relevant metrics
  2. Use Lambda reserved concurrency to protect a downstream dependency
  3. Use an ECS capacity provider strategy for EC2 cluster capacity
  4. Run stateless burst workloads on AWS Fargate
  5. Enable ECS Service Auto Scaling for task count
  6. Configure Karpenter or a supported EKS node autoscaler for unschedulable pods

Explanation

Correct Answer

C:

ECS capacity providers can couple task placement and managed scaling of EC2 Auto Scaling capacity; in this case the control is appropriate because it supports coordinate ECS service task placement with managed EC2 capacity. Compute scale-out must track container placement demand.

Incorrect Answers

A:

Choosing this would aim to scale pod replicas for demand without changing each pod's compute limits instead of coordinate ECS service task placement with managed EC2 capacity. HPA adjusts the replica count of supported Kubernetes workloads from configured metrics; it cannot replace the mechanism specified by the incident evidence.

B:

Although reserved concurrency caps simultaneously executing Lambda instances for the configured function, the scenario does not ask for cap parallel invocations before a sensitive backend is saturated. It requires the ability to coordinate ECS service task placement with managed EC2 capacity, which is a separate responsibility.

D:

That service solves a different operating problem: the need to launch containers without managing EC2 hosts for short-lived jobs. Its behavior is that fargate provides managed compute capacity for compatible ECS tasks and EKS pods. The requested outcome remains coordinate ECS service task placement with managed EC2 capacity.

E:

The choice is useful when engineers need to adjust running service task capacity based on a CloudWatch target metric: application Auto Scaling can control ECS service desired count from target tracking or step policies. It would not establish the control needed to coordinate ECS service task placement with managed EC2 capacity.

F:

Node autoscalers provision or adjust worker capacity in response to pending pods and cluster constraints; this is a reasonable option when the requirement is to add cluster nodes when pods cannot schedule due to insufficient capacity, but it operates at a different workflow boundary from the stated need to coordinate ECS service task placement with managed EC2 capacity.

Question 269

An automated check detects: Public dependency fetches are inconsistent and bypass central package controls. Which remediation directly supports the requirement to cache vetted public-package dependencies through the organization's package repository?

  1. Use CodeArtifact upstream repositories for approved external packages
  2. Store deployment bundles in an encrypted versioned S3 artifact bucket
  3. Enable ECR scan-on-push or enhanced scanning according to policy
  4. Publish versioned language dependencies to AWS CodeArtifact
  5. Push container images to a private Amazon ECR repository

Explanation

Correct Answer

A:

CodeArtifact upstream relationships can retrieve dependency versions while concentrating package access management; it enables the necessary capability to cache vetted public-package dependencies through the organization's package repository rather than only providing an adjacent operational control. Builds should resolve dependencies through the same curated repository endpoint.

Incorrect Answers

B:

S3 versioning preserves object versions; bucket encryption and scoped policies protect deployment bundles; this can help teams retain retrievable, auditable application bundles for instance deployments, but the reported workflow needs to cache vetted public-package dependencies through the organization's package repository. It does not perform that required function.

C:

That service solves a different operating problem: the need to surface vulnerable container packages before images are approved; its behavior is that ECR scanning integrates container vulnerability findings with repository images and security workflows; the requested outcome remains cache vetted public-package dependencies through the organization's package repository.

D:

The choice is useful when engineers need to centrally share approved Maven or npm packages across build projects: CodeArtifact hosts versioned package repositories with upstream connections and permission policies; it would not establish the control needed to cache vetted public-package dependencies through the organization's package repository.

E:

Amazon ECR stores container image manifests and layers in repositories that can enforce permissions; this is a reasonable option when the requirement is to store deployable OCI images with private access for ECS workloads, but it operates at a different workflow boundary from the stated need to cache vetted public-package dependencies through the organization's package repository.

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.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests