Question 190

An operational design is incomplete until it can identify buckets and objects that contain potentially regulated data and attribute reads or deletes of sensitive bucket objects to a principal. Which two-part implementation fills both gaps?

  1. Use Amazon Macie sensitive-data findings for S3 exposure investigations; create an organization CloudTrail trail to a separately secured S3 logging bucket
  2. Use IAM Access Analyzer unused-access analysis for stale privileges; enable CloudTrail data events for selected S3 object operations
  3. Use Amazon Macie sensitive-data findings for S3 exposure investigations; use AWS Config conformance packs for grouped compliance evaluation
  4. Use IAM credential reports and access-key last-used data for periodic access review; use CloudFormation drift detection to spot out-of-band stack edits
  5. Use Amazon Macie sensitive-data findings for S3 exposure investigations; enable CloudTrail data events for selected S3 object operations

Explanation

Correct Answer

E:

For the requirement to identify buckets and objects that contain potentially regulated data, Macie analyzes supported S3 objects and reports sensitive-data discovery findings. For the requirement to attribute reads or deletes of sensitive bucket objects to a principal, CloudTrail data event selectors record eligible object-level activity beyond management events. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

A:

Combining a suitable first control with this second one misses the secondary acceptance criterion; an organization trail delivers supported account activity events centrally for member accounts; it helps retain management API events from all AWS Organizations member accounts rather than attribute reads or deletes of sensitive bucket objects to a principal.

B:

Unused access findings help identify unused IAM roles or unused permissions for least-privilege review; that is intended to find roles or permissions that have not been used within the configured scope, not to identify buckets and objects that contain potentially regulated data. The second half can meet the requirement to attribute reads or deletes of sensitive bucket objects to a principal, but the first is still missing.

C:

Conformance packs package AWS Config rules and supported remediation actions for consistent evaluation; that alternative supports the ability to evaluate a collection of resource configuration controls against a standard, but it is not the requested second outcome (attribute reads or deletes of sensitive bucket objects to a principal). Even though the first half addresses identify buckets and objects that contain potentially regulated data, this pair is incomplete.

D:

The pair changes the problem instead of completing it. One option addresses identify aging IAM user credentials that require rotation or removal; the other addresses identify resource properties that no longer match the approved template. The release, however, needs to identify buckets and objects that contain potentially regulated data as well as attribute reads or deletes of sensitive bucket objects to a principal.

Question 191

After a configuration change, the production support team sees this issue: A release evidence object was deleted by a privileged operator before its retention date. What best restores the ability to prevent modification or deletion of archived release artifacts for a mandated period?

  1. Apply S3 Object Lock retention when required by evidence policy
  2. Configure an ECR lifecycle policy to expire unwanted image versions
  3. Sign and verify release artifacts through a controlled integrity process
  4. Enable ECR image tag immutability for release repositories

Explanation

Correct Answer

A:

To prevent modification or deletion of archived release artifacts for a mandated period, the architecture relies on this AWS behavior: S3 Object Lock protects eligible versioned objects under governance or compliance retention modes. Retention must be tamper-resistant rather than merely a lifecycle policy.

Incorrect Answers

B:

ECR lifecycle rules automate image expiration according to matching criteria. This can help teams remove unneeded old images without deleting current release references, but the reported workflow needs to prevent modification or deletion of archived release artifacts for a mandated period. It does not perform that required function.

C:

That service solves a different operating problem: the need to detect tampering between build completion and production deployment; its behavior is that cryptographic signatures and trusted verification bind an approved artifact to its signing provenance; the requested outcome remains prevent modification or deletion of archived release artifacts for a mandated period.

D:

The choice is useful when engineers need to prevent existing release tags from silently being overwritten: ECR tag immutability prevents image tags from being overwritten in repositories configured for it. It would not establish the control needed to prevent modification or deletion of archived release artifacts for a mandated period.

Question 192

An operations runbook has 2 acceptance criteria: (1) adjust container capacity as aggregate task load grows; (2) recover an eligible impaired instance when a system-status check indicates host failure. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Use a CloudWatch metric filter and alarm for unusual log events
  2. Attach automatic AWS Config remediation to an SSM Automation document
  3. Use an AWS Config managed rule to detect a specific resource misconfiguration
  4. Use a CloudWatch alarm action for supported EC2 automatic recovery
  5. Use Route 53 calculated health checks for composite regional availability
  6. Use a CloudWatch alarm for ECS CPU or memory utilization with service scaling

Explanation

Correct Answers

D:

This covers the specific result 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. The target instance and alarm must meet EC2 recovery requirements.

F:

The corresponding obligation is to adjust container capacity as aggregate task load grows. Application Auto Scaling policies can use CloudWatch service metrics to scale ECS task replicas; that behavior is the reason this action belongs in the selected answer set.

Incorrect Answers

A:

A metric filter emits values from matching logs that a CloudWatch alarm can evaluate. That would be appropriate to raise an incident when a known error token appears repeatedly in application logs, but this is a different objective from the numbered obligations in the stem.

B:

This mechanism supports the ability to correct an eligible configuration violation soon after detection: config automatic remediation can invoke Systems Manager Automation for noncompliant resources. It would not satisfy a different obligation just by appearing in the same workflow.

C:

It supports a separate administrative task, namely to identify noncompliant resources without depending on log-string alerts. Config rules assess supported resource settings and publish compliant or noncompliant evaluations; the prompt's required outcomes are not achieved by substituting this control.

E:

Calculated Route 53 health checks can evaluate a configured number of healthy child checks. That would be appropriate to reflect the combined state of several application dependencies in DNS failover decisions, but this is a different objective from the numbered obligations in the stem.

Question 193

The architecture record specifies: Use a customer managed KMS key and grant the target deployment role decrypt permission. To support the goal to make encrypted CodePipeline artifacts usable by an authorized cross-account action, which consideration should the engineer validate?

  1. The shared artifact store must remain encrypted while permitting only designated consumers
  2. Artifact storage must be available in every Region where pipeline actions require it
  3. The target account must retain control over the deployment role permissions
  4. Production permissions must be assumed only by the designated production action

Explanation

Correct Answer

A:

The requested behavior is to make encrypted CodePipeline artifacts usable by an authorized cross-account action, and the shared artifact store must remain encrypted while permitting only designated consumers. The underlying AWS behavior is that a customer managed key with suitable key policy and IAM permission supports cross-account decrypt access.

Incorrect Answers

B:

The proposed condition makes sense in an implementation designed to run a deployment action in a different AWS Region from its pipeline; it concerns cross-Region CodePipeline actions need an artifact store in each relevant action Region, whereas this question tests the prerequisite of the named control.

C:

This proposed constraint belongs to a separate objective: the target account must retain control over the deployment role permissions; the corresponding goal is to deploy an artifact from the delivery account into a separately governed workload account, not the selected architecture's goal to make encrypted CodePipeline artifacts usable by an authorized cross-account action.

D:

This condition governs the different mechanism used to isolate permissions between staging and production delivery; role separation allows each pipeline action to run under the permissions approved for its target environment; for the selected control, the relevant boundary is instead that the shared artifact store must remain encrypted while permitting only designated consumers.

Question 194

During root-cause analysis, the team identifies the following: A new build passes functional checks but violates the service latency objective under normal load. To fail a release when latency regresses even though all APIs still return successful status codes, what should be configured?

  1. Publish code coverage in CodeBuild reports without treating it as proof of behavior
  2. Separate performance threshold checks from functional correctness tests
  3. Use AWS IAM policy evaluation tests for deployment-role assumptions
  4. Run controlled load tests in a dedicated performance environment

Explanation

Correct Answer

B:

Performance testing assesses response-time and throughput targets distinct from pass or fail functionality; in this case the control is appropriate because it supports fail a release when latency regresses even though all APIs still return successful status codes. The gate must compare measurements against a specific performance baseline.

Incorrect Answers

A:

The choice is useful when engineers need to track executed source coverage while retaining assertions-based acceptance gates: coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct. It would not establish the control needed to fail a release when latency regresses even though all APIs still return successful status codes.

C:

Choosing this would aim to verify the release role cannot perform actions outside its approved scope instead of fail a release when latency regresses even though all APIs still return successful status codes. IAM policy simulation and access analysis can help test whether planned principal actions are allowed; it cannot replace the mechanism specified by the incident evidence.

D:

Although dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load, the scenario does not ask for measure throughput and latency under expected concurrency without degrading production. It requires the ability to fail a release when latency regresses even though all APIs still return successful status codes, which is a separate responsibility.

Question 195

A release design adopts this mechanism: Enable S3 versioning and implement recovery for deleted object versions. Which implementation detail is most relevant to its proposed use to recover an overwritten or deleted application object from an earlier version?

  1. Object change history needs to be retained according to the bucket retention model
  2. Retention enforcement must be harder to bypass than ordinary IAM permissions
  3. The recovery environment must reproduce network, IAM, and compute configuration deterministically
  4. Testing should be scheduled and generate measurable restore evidence
  5. Recovery can tolerate restoring backups and provisioning infrastructure after a disaster

Explanation

Correct Answer

A:

The implementation has to honor the exact constraint: object change history needs to be retained according to the bucket retention model; S3 versioning preserves prior object versions so authorized users can restore selected versions.

Incorrect Answers

B:

This condition governs the different mechanism used to protect retained backup recovery points from early deletion; backup Vault Lock enforces supported WORM retention protections according to its configured mode; for the selected control, the relevant boundary is instead that object change history needs to be retained according to the bucket retention model.

C:

Versioned IaC and images allow consistent restoration of application infrastructure. Its own dependency is that the recovery environment must reproduce network, IAM, and compute configuration deterministically; those details concern the separate objective of being able to recreate known-good application capacity from immutable infrastructure definitions, rather than to the named control required to recover an overwritten or deleted application object from an earlier version.

D:

The proposed condition makes sense in an implementation designed to periodically verify recoverability rather than assuming a backup job is sufficient; it concerns AWS Backup restore testing automates recovery-point selection and supported restore testing workflows, whereas this question tests the prerequisite of the named control.

E:

This proposed constraint belongs to a separate objective: recovery can tolerate restoring backups and provisioning infrastructure after a disaster. The corresponding goal is to minimize steady-state disaster recovery costs where hours of recovery are acceptable, not the selected architecture's goal to recover an overwritten or deleted application object from an earlier version.

Question 196

During root-cause analysis, the team identifies the following: Long-lived job roles retain unnecessary broad permissions after service migrations. To find roles or permissions that have not been used within the configured scope, what should be configured?

  1. Use IAM credential reports and access-key last-used data for periodic access review
  2. Use IAM Access Analyzer unused-access analysis for stale privileges
  3. Use Security Hub automation rules for finding-state prioritization
  4. Use IAM Access Analyzer external access findings for resource policies
  5. Use Amazon Detective for investigation of related security activity

Explanation

Correct Answer

B:

Unused access findings help identify unused IAM roles or unused permissions for least-privilege review; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: review should use recorded access evidence and defined analysis scope.

Incorrect Answers

A:

Choosing this would aim to identify aging IAM user credentials that require rotation or removal instead of find roles or permissions that have not been used within the configured scope. IAM credential reports and access-key usage metadata support audits of IAM user authentication materials; it cannot replace the mechanism specified by the incident evidence.

C:

Security Hub automation rules can update selected finding fields when findings match configured criteria; this can help teams normalize and triage recurring findings according to defined central criteria, but the reported workflow needs to find roles or permissions that have not been used within the configured scope. It does not perform that required function.

D:

That service solves a different operating problem: the need to identify resource-based policies granting access outside the expected trust zone. Its behavior is that IAM Access Analyzer can flag supported resources whose policies allow external access. The requested outcome remains find roles or permissions that have not been used within the configured scope.

E:

The choice is useful when engineers need to explore linked entity behaviors around a suspicious IAM principal: detective assists security investigations by correlating supported activity and entity relationships. It would not establish the control needed to find roles or permissions that have not been used within the configured scope.

Question 197

A delivery review exposes two requirements in the same release: make instances eligible to receive CodeDeploy lifecycle instructions; in addition, execute controlled install and validation scripts during an EC2 deployment. Which paired set of AWS controls meets both requirements?

  1. Enable provisioned concurrency on the Lambda alias or published version; configure ECS service deployment circuit breaker and rollback
  2. Install and run the CodeDeploy agent on target EC2 instances; choose CodeDeploy in-place deployment with minimum healthy hosts
  3. Run a post-deploy smoke test against an ALB health-checked endpoint; use an appspec.yml to define CodeDeploy instance hooks
  4. Install and run the CodeDeploy agent on target EC2 instances; use an appspec.yml to define CodeDeploy instance hooks

Explanation

Correct Answer

D:

The CodeDeploy agent polls for work and runs lifecycle instructions on managed EC2 or on-premises hosts; an AppSpec file maps application files and lifecycle event hooks for EC2 deployments. The first control satisfies the need to make instances eligible to receive CodeDeploy lifecycle instructions; the second addresses the need to execute controlled install and validation scripts during an EC2 deployment. Instances require network access and a functioning local agent to apply revisions; hook scripts must run at the expected deployment lifecycle events.

Incorrect Answers

A:

These are legitimate AWS controls for different outcomes: provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases, whereas the ECS deployment circuit breaker can mark rolling deployments failed and roll back to a prior completed deployment. The problem instead requires the ability to make instances eligible to receive CodeDeploy lifecycle instructions and to execute controlled install and validation scripts during an EC2 deployment.

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; CodeDeploy EC2 in-place configurations control host update concurrency using healthy-host thresholds; it helps update an existing EC2 fleet in batches while preserving required available capacity rather than execute controlled install and validation scripts during an EC2 deployment.

C:

A smoke test targets live application behavior after rollout and can trigger deployment failure handling; that is intended to validate that a new service release responds correctly before ending the deployment, not to make instances eligible to receive CodeDeploy lifecycle instructions; the second half can meet the requirement to execute controlled install and validation scripts during an EC2 deployment, but the first is still missing.

Question 198

The production plan uses this approach: Use a multi-AZ EC2 Auto Scaling group behind a target group. The goal is to replace failed web hosts and distribute capacity across Availability Zones. Which prerequisite or limitation should receive focused review?

  1. Replacement capacity should be launched automatically in remaining healthy zones
  2. Clients should mount EFS through a mount target reachable from their zone
  3. The replication group must be configured for failover and multi-AZ placement
  4. Replication may be asynchronous and failover requires appropriate application orchestration

Explanation

Correct Answer

A:

Replacement capacity should be launched automatically in remaining healthy zones. Without this, choosing the named service is not enough to produce the promised outcome; EC2 Auto Scaling manages desired instances across configured subnets and uses health checks for replacement.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: clients should mount EFS through a mount target reachable from their zone; the corresponding goal is to allow Linux application instances in multiple zones to access a common managed file system, not the selected architecture's goal to replace failed web hosts and distribute capacity across Availability Zones.

C:

This condition governs the different mechanism used to improve availability of supported Redis or Valkey cache workloads; supported ElastiCache replication groups use replicas and automatic failover to recover from primary loss; for the selected control, the relevant boundary is instead that replacement capacity should be launched automatically in remaining healthy zones.

D:

Cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions; its own dependency is that replication may be asynchronous and failover requires appropriate application orchestration; those details concern the separate objective of being able to provide off-Region read capacity and a possible promotion-based recovery option, rather than to the named control required to replace failed web hosts and distribute capacity across Availability Zones.

Question 199

A technical change review names the selected control as follows: Require MFA for privileged human sign-in and sensitive actions. To add possession-based verification to administrator authentication, which constraint must be addressed for this design?

  1. The database and client must support IAM authentication and TLS requirements
  2. The build project role should authorize only required artifact and deployment operations
  3. The customer role should verify an agreed external identifier supplied by the trusted provider
  4. Human credentials need additional authentication safeguards beyond a static password

Explanation

Correct Answer

D:

Human credentials need additional authentication safeguards beyond a static password. Without this, choosing the named service is not enough to produce the promised outcome; MFA adds a second factor and can be required through identity provider settings or IAM policy conditions.

Incorrect Answers

A:

This proposed constraint belongs to a separate objective: the database and client must support IAM authentication and TLS requirements. The corresponding goal is to reduce reliance on stored passwords for supported database connections, not the selected architecture's goal to add possession-based verification to administrator authentication.

B:

This condition governs the different mechanism used to prevent CI workers from embedding persistent AWS keys in build scripts; CodeBuild obtains temporary service-role credentials to call authorized AWS APIs during builds; for the selected control, the relevant boundary is instead that human credentials need additional authentication safeguards beyond a static password.

C:

The sts:ExternalId condition helps a provider distinguish authorized cross-account assume-role requests; its own dependency is that the customer role should verify an agreed external identifier supplied by the trusted provider; those details concern the separate objective of being able to reduce confused-deputy risk when a SaaS vendor assumes customer roles, rather than to the named control required to add possession-based verification to administrator authentication.

Question 200

The architecture record specifies: Use an immutable artifact identifier when promoting a release. To support the goal to promote the exact tested package between environments rather than rebuilding source independently, which consideration should the engineer validate?

  1. Release provenance must refer to a single versioned artifact or image digest
  2. Artifact storage must be available in every Region where pipeline actions require it
  3. Infrastructure deployments must be reproducible from version control
  4. The grant must be limited to the pipeline artifact location rather than every bucket

Explanation

Correct Answer

A:

Release provenance must refer to a single versioned artifact or image digest. That is the governing deployment boundary for the selected control: promoting a fixed artifact identity prevents environment-specific rebuilds from silently changing the delivered bytes. If the boundary is missed, the design can fail to promote the exact tested package between environments rather than rebuilding source independently.

Incorrect Answers

B:

Cross-Region CodePipeline actions need an artifact store in each relevant action Region. Its own dependency is that artifact storage must be available in every Region where pipeline actions require it; those details concern the separate objective of being able to run a deployment action in a different AWS Region from its pipeline, rather than to the named control required to promote the exact tested package between environments rather than rebuilding source independently.

C:

The proposed condition makes sense in an implementation designed to automate build and deployment of CDK infrastructure changes with reviewable application source; it concerns CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments, whereas this question tests the prerequisite of the named control; the specified requirement instead is to promote the exact tested package between environments rather than rebuilding source independently.

D:

This proposed constraint belongs to a separate objective: the grant must be limited to the pipeline artifact location rather than every bucket. The corresponding goal is to permit a cross-account deployment action to retrieve the intended pipeline artifact objects, not the selected architecture's goal to promote the exact tested package between environments rather than rebuilding source independently.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests