Question 970

The production support team proposes this implementation: Use AWS KMS envelope encryption for sensitive application objects. Its intended result is to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary. Which implementation consideration is most specific to that choice?

  1. Layer 7 inspection should apply at a supported web application entry point
  2. Detection should inspect eligible S3 object content and report discovered data categories
  3. The design should keep plaintext data keys controlled and protect their encrypted form
  4. Key replication, key policy, and regional resource configuration still require explicit management

Explanation

Correct Answer

C:

The design should keep plaintext data keys controlled and protect their encrypted form. That is the governing deployment boundary for the selected control: envelope encryption uses a data key for bulk data and KMS to protect or generate that key. If the boundary is missed, the design can fail to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to filter common malicious HTTP request patterns before they reach the application. It concerns AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: detection should inspect eligible S3 object content and report discovered data categories. The corresponding goal is to identify S3 objects that potentially contain sensitive information, not the selected architecture's goal to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary.

D:

Multi-Region KMS keys allow related keys in selected Regions but do not make every AWS service resource global; its own dependency is that key replication, key policy, and regional resource configuration still require explicit management; those details concern the separate objective of being able to manage related KMS key material for supported multi-Region cryptographic operations, rather than to the named control required to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary.

Question 971

The architecture record specifies: Attach an Organizations SCP to a production OU. To support the goal to set a maximum permission boundary for member-account principals, which consideration should the engineer validate?

  1. The restriction must apply above individual IAM identity policy grants
  2. The process must create member accounts under the organization's management structure
  3. Supported security administration should be separated from the management account
  4. Data protection governance must be applied through supported organization policy mechanisms

Explanation

Correct Answer

A:

The implementation has to honor the exact constraint: the restriction must apply above individual IAM identity policy grants; service control policies limit the maximum permissions of affected account principals but do not grant rights.

Incorrect Answers

B:

This condition governs the different mechanism used to automate account creation and consolidate billing within an organization; organizations supports asynchronous member account creation through its account APIs; for the selected control, the relevant boundary is instead that the restriction must apply above individual IAM identity policy grants.

C:

Delegated administration allows a registered member account to manage eligible service functions organization-wide; its own dependency is that supported security administration should be separated from the management account; those details concern the separate objective of being able to let a security account administer a supported service for organization members, rather than to the named control required to set a maximum permission boundary for member-account principals.

D:

The proposed condition makes sense in an implementation designed to distribute common backup policy requirements to eligible member accounts; it concerns organizations backup policies help coordinate AWS Backup plans and selections across member accounts, whereas this question tests the prerequisite of the named control.

Question 972

An operations runbook has 2 acceptance criteria: (1) stop a pipeline build action when the test runner detects a regression; (2) verify the release role cannot perform actions outside its approved scope. Which TWO AWS actions satisfy these requirements? Choose TWO.

  1. Run dependency and container image scanning before artifact promotion
  2. Return a nonzero exit code when a blocking automated test fails
  3. Use AWS IAM policy evaluation tests for deployment-role assumptions
  4. Run unit tests in the first CodeBuild stage before packaging
  5. Run controlled load tests in a dedicated performance environment

Explanation

Correct Answers

B:

The corresponding obligation is to stop a pipeline build action when the test runner detects a regression. CodeBuild determines command success from process exit status unless buildspec failure handling overrides it; that behavior is the reason this action belongs in the selected answer set.

C:

IAM policy simulation and access analysis can help test whether planned principal actions are allowed; among the listed outcomes, it addresses verify the release role cannot perform actions outside its approved scope, rather than merely contributing a related signal or support step.

Incorrect Answers

A:

An automated scanning gate blocks releases when risk findings breach the defined security policy; that would be appropriate to reject packages containing prohibited vulnerable dependencies before production, but this is a different objective from the numbered obligations in the stem.

D:

Unit tests in an early build action reduce feedback latency and stop faulty revisions before expensive stages; if the requirement were to reject code-level regressions rapidly before creating production artifacts, that would matter. The requested outcomes are separate from the one this option addresses.

E:

Dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load; that would be appropriate to measure throughput and latency under expected concurrency without degrading production, but this is a different objective from the numbered obligations in the stem.

Question 973

An engineer will implement the following change: Apply S3 Block Public Access at the account or bucket scope. Which operational boundary most directly applies to the intended outcome to prevent accidental public grants on sensitive S3 buckets?

  1. Layer 7 inspection should apply at a supported web application entry point
  2. The account must prevent public access through ACL and policy paths where configured
  3. The design should keep plaintext data keys controlled and protect their encrypted form
  4. The service owner is prepared to enable a paid advanced protection subscription

Explanation

Correct Answer

B:

The account must prevent public access through ACL and policy paths where configured. Without this, choosing the named service is not enough to produce the promised outcome; S3 Block Public Access settings override relevant public permissions for supported access paths.

Incorrect Answers

A:

AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic; its own dependency is that layer 7 inspection should apply at a supported web application entry point. Those details concern the separate objective of being able to filter common malicious HTTP request patterns before they reach the application, rather than to the named control required to prevent accidental public grants on sensitive S3 buckets.

C:

This proposed constraint belongs to a separate objective: the design should keep plaintext data keys controlled and protect their encrypted form; the corresponding goal is to encrypt bulk data using data keys protected by an AWS managed cryptographic boundary, not the selected architecture's goal to prevent accidental public grants on sensitive S3 buckets.

D:

This condition governs the different mechanism used to apply additional DDoS protection and response capabilities to critical endpoints. Shield Advanced offers enhanced detection, response capabilities, and protections for supported resources; for the selected control, the relevant boundary is instead that the account must prevent public access through ACL and policy paths where configured.

Question 974

A technical change review names the selected control as follows: Use Systems Manager Patch Manager and patch baselines. To scan and install operating-system updates according to approved patch classifications, which constraint must be addressed for this design?

  1. Inventory collection must run on nodes with the required managed-node configuration
  2. Each issue needs a durable operational record with ownership and resource references
  3. Targets need SSM connectivity and permissions rather than inbound administrative ports
  4. Approved and rejected patch criteria should be managed centrally
  5. Agent distribution must use managed package versions and installation commands

Explanation

Correct Answer

D:

The requested behavior is to scan and install operating-system updates according to approved patch classifications, and approved and rejected patch criteria should be managed centrally. The underlying AWS behavior is that patch Manager applies selected baselines to supported managed nodes for scan or install operations.

Incorrect Answers

A:

The proposed condition makes sense in an implementation designed to report installed applications and instance configuration across the managed fleet; it concerns Systems Manager Inventory collects supported software and configuration metadata for fleet reporting, whereas this question tests the prerequisite of the named control.

B:

This proposed constraint belongs to a separate objective: each issue needs a durable operational record with ownership and resource references. The corresponding goal is to collect recurring operational issues with linked resource context and status, not the selected architecture's goal to scan and install operating-system updates according to approved patch classifications.

C:

This condition governs the different mechanism used to run a one-time script against a tagged fleet without SSH access; run Command dispatches supported command documents to selected managed nodes and records execution results; for the selected control, the relevant boundary is instead that approved and rejected patch criteria should be managed centrally.

E:

The proposed condition makes sense in an implementation designed to publish an internal agent package and distribute it to managed nodes; it concerns distributor manages software packages that can be installed or updated through Systems Manager workflows, whereas this question tests the prerequisite of the named control; the specified requirement instead is to scan and install operating-system updates according to approved patch classifications.

Question 975

During root-cause analysis, the team identifies the following: An operator deletes rows and the only manual snapshot predates hours of transactions. To restore a supported relational database to a selected time before an accidental modification, what should be configured?

  1. Enable S3 versioning and implement recovery for deleted object versions
  2. Use RDS automated backups for point-in-time recovery within retention
  3. Use Route 53 health-checked failover records for a pretested recovery endpoint
  4. Copy supported AWS Backup recovery points to another Region

Explanation

Correct Answer

B:

To restore a supported relational database to a selected time before an accidental modification, the architecture relies on this AWS behavior: RDS automated backups support point-in-time restore using retained backup data and transaction logs. Recovery needs transaction-log-aware restore within the configured backup retention.

Incorrect Answers

A:

S3 versioning preserves prior object versions so authorized users can restore selected versions; this is a reasonable option when the requirement is to recover an overwritten or deleted application object from an earlier version, but it operates at a different workflow boundary from the stated need to restore a supported relational database to a selected time before an accidental modification.

C:

Although failover routing can resolve the standby record based on health state, subject to client caching, the scenario does not ask for automate DNS-level cutover after the primary regional endpoint fails. It requires the ability to restore a supported relational database to a selected time before an accidental modification, which is a separate responsibility.

D:

AWS Backup copy rules replicate supported recovery points to destination vaults in other Regions; this can help teams preserve recoverable backups outside the source Region, but the reported workflow needs to restore a supported relational database to a selected time before an accidental modification. It does not perform that required function.

Question 976

A production change is expected to apply a narrow automated containment action after an unsafe resource change event. The same change must also run a documented multi-step configuration repair after a matching event. Which paired implementation meets both acceptance criteria?

  1. Use Systems Manager Run Command with tag-based targets for an emergency fix; use an SSM Automation role with a permissions boundary or narrow IAM policy
  2. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource; use CodeDeploy CloudWatch-alarm integration for automatic deployment rollback
  3. Apply CloudFormation drift remediation through a reviewed template update; trigger SSM Automation from EventBridge for a specific incident event
  4. Configure an EventBridge-triggered Lambda to quarantine a newly exposed resource; trigger SSM Automation from EventBridge for a specific incident event

Explanation

Correct Answer

D:

EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches; this handles the first acceptance condition, subject to the boundary that the handler must verify event identity and use least-privilege remediation permissions. The remaining condition is handled separately: an EventBridge rule can start Systems Manager Automation documents as supported targets, with the event rule should invoke a scoped runbook instead of an unmanaged shell script.

Incorrect Answers

A:

The pair changes the problem instead of completing it. One option addresses apply a one-off configuration command to all affected managed instances; the other addresses limit the changes an automated incident runbook can make. The release, however, needs to apply a narrow automated containment action after an unsafe resource change event as well as run a documented multi-step configuration repair after a matching event.

B:

The first half is appropriate: EventBridge invokes a Lambda target whose code can apply scoped AWS API changes when a rule matches. However, CodeDeploy can stop and roll back eligible deployments when configured CloudWatch alarms enter ALARM; that serves a different objective (reverse a release that triggers the defined customer error alarm) and leaves the explicit need to run a documented multi-step configuration repair after a matching event unmet.

C:

The second implementation is relevant; the problem is the first. A reviewed stack update can bring supported drifted resources back toward declared template state; it can help restore a resource's intended IaC state after manual infrastructure changes, whereas the stated first requirement is to apply a narrow automated containment action after an unsafe resource change event.

Question 977

During root-cause analysis, the team identifies the following: A sudden import request burst overloads synchronous backend processors. To decouple transient producer spikes from a bounded worker fleet, what should be configured?

  1. Use ElastiCache for repeated hot-key application lookups
  2. Use SQS backlog per worker as a target tracking metric
  3. Configure RDS storage autoscaling with a maximum threshold
  4. Use SQS to buffer bursts between request intake and worker processing

Explanation

Correct Answer

D:

SQS queues hold pending work and let consumers process it asynchronously with retry semantics. In this case the control is appropriate because it supports decouple transient producer spikes from a bounded worker fleet. Messages must remain durable while consumers scale at a sustainable rate.

Incorrect Answers

A:

Although an in-memory cache serves hot keys without a round trip to the primary database for every read, the scenario does not ask for reduce database read pressure for frequently requested reusable data. It requires the ability to decouple transient producer spikes from a bounded worker fleet, which is a separate responsibility.

B:

Backlog per instance estimates the pressure on worker capacity for queue-driven scaling. This can help teams scale message-processing workers with the backlog relative to active capacity, but the reported workflow needs to decouple transient producer spikes from a bounded worker fleet. It does not perform that required function.

C:

That service solves a different operating problem: the need to grow database storage as data expands without frequent manual storage modifications. Its behavior is that RDS storage autoscaling grows allocated storage under supported conditions up to its configured maximum. The requested outcome remains decouple transient producer spikes from a bounded worker fleet.

Question 978

A team is designing a reusable security pattern. It must filter common malicious HTTP request patterns before they reach the application; it must also limit repeated HTTP requests from sources that exceed an approved threshold. Which paired configuration is appropriate?

  1. Use AWS WAF managed rules on the web-facing ALB; deploy AWS Network Firewall for stateful VPC traffic inspection
  2. Use AWS Config rule evaluations with automatic remediation for policy violations; use an S3 gateway VPC endpoint and appropriate bucket policy constraints
  3. Use AWS WAF managed rules on the web-facing ALB; use an AWS WAF rate-based rule for abusive clients
  4. Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources; use an AWS WAF rate-based rule for abusive clients
  5. Use AWS WAF managed rules on the web-facing ALB; use customer managed KMS keys with explicitly scoped key policies
  6. Enable Amazon Inspector EC2 and ECR scanning where supported; use an AWS WAF rate-based rule for abusive clients

Explanation

Correct Answer

C:

AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic; WAF rate-based rules track request rates for defined aggregation keys and act on matching excess traffic. The first control satisfies the need to filter common malicious HTTP request patterns before they reach the application; the second addresses the need to limit repeated HTTP requests from sources that exceed an approved threshold. Layer 7 inspection should apply at a supported web application entry point; controls must count matching web requests over a configured evaluation interval.

Incorrect Answers

A:

The first half is appropriate: AWS WAF web ACLs evaluate HTTP requests against configured rules and can block matching traffic. However, network Firewall inspects routed VPC traffic using stateless and stateful rule groups; that serves a different objective (enforce centralized network-layer filtering across selected VPC traffic paths) and leaves the explicit need to limit repeated HTTP requests from sources that exceed an approved threshold unmet.

B:

These are legitimate AWS controls for different outcomes: AWS Config rules evaluate configurations and can integrate with Systems Manager remediation, whereas S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets. The problem instead requires the ability to filter common malicious HTTP request patterns before they reach the application and to limit repeated HTTP requests from sources that exceed an approved threshold.

D:

Shield Advanced offers enhanced detection, response capabilities, and protections for supported resources; that is intended to apply additional DDoS protection and response capabilities to critical endpoints, not to filter common malicious HTTP request patterns before they reach the application. The second half can meet the requirement to limit repeated HTTP requests from sources that exceed an approved threshold, but the first is still missing.

E:

KMS key policies and grants determine who can use a protected customer managed key. That alternative supports the ability to separate encryption key management from broad object storage administration, but it is not the requested second outcome (limit repeated HTTP requests from sources that exceed an approved threshold). Even though the first half addresses filter common malicious HTTP request patterns before they reach the application, this pair is incomplete.

F:

This combination solves only the latter acceptance test. The substituted first control supports identify vulnerable software packages in running compute and container images: inspector continuously assesses supported compute workloads and container images for vulnerabilities. It does not implement filter common malicious HTTP request patterns before they reach the application.

Question 979

An incident record says: A service ENI allows a broad ingress port range that violates the environment baseline. To restore the capability to restrict inbound application ports while permitting corresponding return traffic, which change addresses the root cause?

  1. Deploy AWS Network Firewall for stateful VPC traffic inspection
  2. Use security group rules for stateful instance or ENI traffic control
  3. Use an S3 gateway VPC endpoint and appropriate bucket policy constraints
  4. Use AWS Shield Advanced for enhanced DDoS protection of eligible public resources
  5. Use Amazon Macie for sensitive-data discovery in S3

Explanation

Correct Answer

B:

Security groups apply stateful allow rules to supported network interfaces and resources. In this case the control is appropriate because it supports restrict inbound application ports while permitting corresponding return traffic. The rule should attach to the workload network interface boundary.

Incorrect Answers

A:

That service solves a different operating problem: the need to enforce centralized network-layer filtering across selected VPC traffic paths. Its behavior is that network Firewall inspects routed VPC traffic using stateless and stateful rule groups. The requested outcome remains restrict inbound application ports while permitting corresponding return traffic.

C:

S3 gateway endpoints use VPC route entries to access S3 privately from eligible subnets. This is a reasonable option when the requirement is to allow private subnet workloads to reach S3 without NAT for supported traffic, but it operates at a different workflow boundary from the stated need to restrict inbound application ports while permitting corresponding return traffic.

D:

Choosing this would aim to apply additional DDoS protection and response capabilities to critical endpoints instead of restrict inbound application ports while permitting corresponding return traffic; shield Advanced offers enhanced detection, response capabilities, and protections for supported resources; it cannot replace the mechanism specified by the incident evidence.

E:

Although Macie uses automated discovery and classification to identify sensitive data in supported S3 objects, the scenario does not ask for identify S3 objects that potentially contain sensitive information. It requires the ability to restrict inbound application ports while permitting corresponding return traffic, which is a separate responsibility.

Question 980

A production change is expected to update an existing EC2 fleet in batches while preserving required available capacity. The same change must also execute controlled install and validation scripts during an EC2 deployment. Which paired implementation meets both acceptance criteria?

  1. Choose CodeDeploy in-place deployment with minimum healthy hosts; use an appspec.yml to define CodeDeploy instance hooks
  2. Use a weighted Lambda alias for gradual traffic migration; set termination wait time for a CodeDeploy ECS blue/green deployment
  3. Enable provisioned concurrency on the Lambda alias or published version; use an appspec.yml to define CodeDeploy instance hooks
  4. Choose CodeDeploy in-place deployment with minimum healthy hosts; publish a Lambda version and route clients through an alias

Explanation

Correct Answer

A:

CodeDeploy EC2 in-place configurations control host update concurrency using healthy-host thresholds; an AppSpec file maps application files and lifecycle event hooks for EC2 deployments. The first control satisfies the need to update an existing EC2 fleet in batches while preserving required available capacity; the second addresses the need to execute controlled install and validation scripts during an EC2 deployment. The deployment must leave a configured minimum number of healthy hosts; hook scripts must run at the expected deployment lifecycle events.

Incorrect Answers

B:

The pair changes the problem instead of completing it. One option addresses split invocation traffic between two published Lambda versions without changing callers; the other addresses retain the old ECS task set temporarily for rollback after traffic rerouting. The release, however, needs to update an existing EC2 fleet in batches while preserving required available capacity as well as execute controlled install and validation scripts during an EC2 deployment.

C:

Provisioned concurrency keeps initialized Lambda execution environments ready for supported versions or aliases; that is intended to reduce cold-start latency for a predictable high-priority request path, not to update an existing EC2 fleet in batches while preserving required available capacity; the second half can meet the requirement to execute controlled install and validation scripts during an EC2 deployment, but the first is still missing.

D:

A published Lambda version snapshots code and configuration; an alias can reference the selected version; that alternative supports the ability to release immutable Lambda code while keeping callers on a stable function reference, but it is not the requested second outcome (execute controlled install and validation scripts during an EC2 deployment). Even though the first half addresses update an existing EC2 fleet in batches while preserving required available capacity, this pair is incomplete.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests