Question 60

An automated check detects: Management sees high coverage but a production workflow still lacks assertions. Which remediation directly supports the requirement to track executed source coverage while retaining assertions-based acceptance gates?

  1. Publish code coverage in CodeBuild reports without treating it as proof of behavior
  2. Use canary synthetic checks against a published test endpoint
  3. Run controlled load tests in a dedicated performance environment
  4. Separate performance threshold checks from functional correctness tests

Explanation

Correct Answer

A:

Coverage reports show which code paths execute; they cannot prove that behavior or assertions are correct; in this case the control is appropriate because it supports track executed source coverage while retaining assertions-based acceptance gates. Coverage is an informative measure, not a substitute for scenario validation.

Incorrect Answers

B:

That service solves a different operating problem: the need to exercise a critical HTTP journey regularly with externally visible outcomes; its behavior is that CloudWatch Synthetics canaries run scheduled scripts against endpoints and report pass or failure measurements; the requested outcome remains track executed source coverage while retaining assertions-based acceptance gates.

C:

The choice is useful when engineers need to measure throughput and latency under expected concurrency without degrading production: dedicated performance testing reveals scale and bottleneck behavior while isolating intentional high load. It would not establish the control needed to track executed source coverage while retaining assertions-based acceptance gates.

D:

Performance testing assesses response-time and throughput targets distinct from pass or fail functionality; this is a reasonable option when the requirement is to fail a release when latency regresses even though all APIs still return successful status codes, but it operates at a different workflow boundary from the stated need to track executed source coverage while retaining assertions-based acceptance gates.

Question 61

The cloud operations group reports the following failure: An unencrypted resource is created but no application metric indicates a problem. Which action directly restores the requirement to identify noncompliant resources without depending on log-string alerts?

  1. Attach automatic AWS Config remediation to an SSM Automation document
  2. Use an AWS Config managed rule to detect a specific resource misconfiguration
  3. Use CloudWatch Contributor Insights for supported high-cardinality usage analysis
  4. Use a CloudWatch metric filter and alarm for unusual log events

Explanation

Correct Answer

B:

Config rules assess supported resource settings and publish compliant or noncompliant evaluations; that directly addresses the observed failure in the scenario. The configuration still has to respect this constraint: the system must evaluate resource configuration against a known rule.

Incorrect Answers

A:

That service solves a different operating problem: the need to correct an eligible configuration violation soon after detection; its behavior is that config automatic remediation can invoke Systems Manager Automation for noncompliant resources; the requested outcome remains identify noncompliant resources without depending on log-string alerts.

C:

Contributor Insights rules analyze supported log or metric inputs to identify top contributing entities; this is a reasonable option when the requirement is to identify the top contributors to a metric or structured log workload, but it operates at a different workflow boundary from the stated need to identify noncompliant resources without depending on log-string alerts.

D:

Choosing this would aim to raise an incident when a known error token appears repeatedly in application logs instead of identify noncompliant resources without depending on log-string alerts. A metric filter emits values from matching logs that a CloudWatch alarm can evaluate; it cannot replace the mechanism specified by the incident evidence.

Question 62

A service owner needs to allow Linux application instances in multiple zones to access a common managed file system and maintain HTTP routing to healthy targets when an application Availability Zone fails. Which paired controls deliver the requested behavior across both workstreams?

  1. Use EFS mount targets in each client Availability Zone; deploy an Application Load Balancer across at least two Availability Zones
  2. Use EFS mount targets in each client Availability Zone; use an RDS cross-Region read replica where the engine supports it
  3. Configure DynamoDB global tables for multi-Region active-active access; deploy an Application Load Balancer across at least two Availability Zones
  4. Enable S3 Cross-Region Replication for selected versioned objects; enable Amazon RDS Multi-AZ high availability for a supported DB engine

Explanation

Correct Answer

A:

For the requirement to allow Linux application instances in multiple zones to access a common managed file system, EFS mount targets provide VPC network access to a Regional shared file system from selected zones. For the requirement to maintain HTTP routing to healthy targets when an application Availability Zone fails, an ALB can distribute requests to healthy registered targets across enabled Availability Zones; both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

B:

Combining a suitable first control with this second one misses the secondary acceptance criterion; cross-Region read replicas copy database changes asynchronously and can be promoted under supported conditions; it helps provide off-Region read capacity and a possible promotion-based recovery option rather than maintain HTTP routing to healthy targets when an application Availability Zone fails.

C:

DynamoDB global tables replicate data among participating Regions and support multi-Region writes; that is intended to allow application writes in more than one AWS Region with replication, not to allow Linux application instances in multiple zones to access a common managed file system; the second half can meet the requirement to maintain HTTP routing to healthy targets when an application Availability Zone fails, but the first is still missing.

D:

These are legitimate AWS controls for different outcomes: S3 replication asynchronously copies eligible object versions to configured destination buckets, whereas RDS Multi-AZ deployments maintain a standby or multi-instance arrangement for managed failover. The problem instead requires the ability to allow Linux application instances in multiple zones to access a common managed file system and to maintain HTTP routing to healthy targets when an application Availability Zone fails.

Question 63

The next production deployment needs 2 specific capabilities: (1) investigate which web ACL rule is denying legitimate client requests; (2) find roles or permissions that have not been used within the configured scope. Select the TWO most directly applicable actions. Choose TWO.

  1. Use CloudFormation drift detection to spot out-of-band stack edits
  2. Use IAM Access Analyzer unused-access analysis for stale privileges
  3. Enable CloudTrail data events for selected S3 object operations
  4. Enable CloudTrail log file integrity validation and validate digest signatures
  5. Use AWS WAF logging to analyze blocked HTTP requests

Explanation

Correct Answers

B:

Unused access findings help identify unused IAM roles or unused permissions for least-privilege review; this fulfills the stated requirement to find roles or permissions that have not been used within the configured scope; the operational limitation is that review should use recorded access evidence and defined analysis scope; in this design the separate acceptance test is to investigate which web ACL rule is denying legitimate client requests.

E:

This covers the specific result to investigate which web ACL rule is denying legitimate client requests: AWS WAF logs contain supported request and rule evaluation information for configured web ACLs. Evidence must include web ACL match context rather than host CPU metrics.

Incorrect Answers

A:

Drift detection checks supported stack resource configuration against the declared IaC state; if the requirement were to identify resource properties that no longer match the approved template, that would matter; the requested outcomes are separate from the one this option addresses; the specified requirement instead is to find roles or permissions that have not been used within the configured scope.

C:

This mechanism supports the ability to attribute reads or deletes of sensitive bucket objects to a principal: CloudTrail data event selectors record eligible object-level activity beyond management events. It would not satisfy a different obligation just by appearing in the same workflow.

D:

It supports a separate administrative task, namely to prove whether delivered trail log objects have been tampered with. CloudTrail integrity validation supports cryptographic verification of delivered log file digests; the prompt's required outcomes are not achieved by substituting this control.

Question 64

During root-cause analysis, the team identifies the following: New member accounts omit GuardDuty and security monitoring has gaps. To enable consistent threat detection coverage for member accounts, what should be configured?

  1. Configure organization-wide GuardDuty management through a delegated security account
  2. Enable AWS Config aggregators across organization accounts and Regions
  3. Use delegated administrator registration for supported organization-wide services
  4. Use centralized VPC Flow Logs delivery to an approved log destination

Explanation

Correct Answer

A:

GuardDuty organization administration can automatically manage protection enrollment across eligible members; it enables the necessary capability to enable consistent threat detection coverage for member accounts rather than only providing an adjacent operational control. New-account enablement should be managed through organization integration.

Incorrect Answers

B:

Although a configuration aggregator consolidates supported AWS Config configuration and compliance data, the scenario does not ask for view resource compliance and configuration state from a central operations account. It requires the ability to enable consistent threat detection coverage for member accounts, which is a separate responsibility.

C:

Delegated administration allows a registered member account to manage eligible service functions organization-wide; this can help teams let a security account administer a supported service for organization members, but the reported workflow needs to enable consistent threat detection coverage for member accounts. It does not perform that required function.

D:

That service solves a different operating problem: the need to collect network flow metadata from selected workload VPCs for audit analysis. Its behavior is that VPC Flow Logs capture metadata for selected interfaces, subnets, or VPCs and deliver to supported destinations. The requested outcome remains enable consistent threat detection coverage for member accounts.

Question 65

A production ticket contains this symptom: A central automation principal lacks a secure temporary identity to manage member-account resources. The desired behavior is to let central automation perform scoped tasks in governed member accounts. What should be fixed?

  1. Use AWS Organizations CreateAccount automation for programmatic member creation
  2. Use delegated administrator registration for supported organization-wide services
  3. Use Organizations tag policies to standardize supported resource tags
  4. Use cross-account STS AssumeRole for automated administration

Explanation

Correct Answer

D:

STS AssumeRole returns temporary credentials for a trusted role whose permissions constrain the session; it restores the ability to let central automation perform scoped tasks in governed member accounts, provided the implementation also observes that role trust and target permissions must both be explicitly configured.

Incorrect Answers

A:

Although organizations supports asynchronous member account creation through its account APIs, the scenario does not ask for automate account creation and consolidate billing within an organization. It requires the ability to let central automation perform scoped tasks in governed member accounts, which is a separate responsibility.

B:

Delegated administration allows a registered member account to manage eligible service functions organization-wide; this can help teams let a security account administer a supported service for organization members, but the reported workflow needs to let central automation perform scoped tasks in governed member accounts. It does not perform that required function.

C:

That service solves a different operating problem: the need to report and enforce valid tag keys or values across organizational accounts where supported. Its behavior is that tag policies define permitted capitalization and values and can enforce supported tagging operations. The requested outcome remains let central automation perform scoped tasks in governed member accounts.

Question 66

The site reliability team proposes this implementation: Use CloudTrail events to identify the caller behind an AccessDenied API action. Its intended result is to trace which principal and resource action caused a failed automation request. Which implementation consideration is most specific to that choice?

  1. The audit must distinguish caller identity, API action, and request context
  2. A correlated request trace should reveal slow downstream segments
  3. The authorization path must include both principal permissions and bucket resource policy
  4. The diagnosis must start from the failed action and its provider output
  5. Decryption authorization must be separate from S3 GetObject permission

Explanation

Correct Answer

A:

The audit must distinguish caller identity, API action, and request context. Without this, choosing the named service is not enough to produce the promised outcome. CloudTrail supported management events can show the assumed role, action, and error context.

Incorrect Answers

B:

This proposed constraint belongs to a separate objective: a correlated request trace should reveal slow downstream segments. The corresponding goal is to find which dependency slows a distributed API request, not the selected architecture's goal to trace which principal and resource action caused a failed automation request.

C:

This condition governs the different mechanism used to diagnose a deployment that can assume a role but cannot fetch its release bundle. Cross-account S3 access can require compatible IAM and resource policy permissions for the object; for the selected control, the relevant boundary is instead that the audit must distinguish caller identity, API action, and request context.

D:

CodePipeline records stage and action execution statuses and detailed links for troubleshooting; its own dependency is that the diagnosis must start from the failed action and its provider output. Those details concern the separate objective of being able to find which pipeline action failed and review its detailed external execution link, rather than to the named control required to trace which principal and resource action caused a failed automation request.

E:

The proposed condition makes sense in an implementation designed to diagnose artifact decryption failure after S3 object access succeeds; it concerns customer managed KMS key policies and principal permissions govern who may decrypt encrypted artifacts, whereas this question tests the prerequisite of the named control; the specified requirement instead is to trace which principal and resource action caused a failed automation request.

Question 67

A release readiness review identifies 2 distinct controls to implement: (1) deploy a common baseline across organization accounts and selected Regions; (2) provision a resource only when an environment parameter meets a defined requirement. Select the TWO actions that jointly cover them. Choose TWO.

  1. Use CloudFormation StackSets with service-managed permissions
  2. Apply CloudFormation Conditions to optional template resources
  3. Use CDK Aspects to apply organization-wide checks or tags to constructs
  4. Use CloudFormation hooks to validate resource configuration during stack operations
  5. Use SSM document version control for repeatable operational scripts

Explanation

Correct Answers

A:

This covers the specific result to deploy a common baseline across organization accounts and selected Regions: service-managed StackSets use AWS Organizations integration to provision stack instances across eligible accounts. AWS Organizations integration should avoid manually creating cross-account IAM roles.

B:

Conditions can determine resource creation and property values based on template parameters and functions; this fulfills the stated requirement to provision a resource only when an environment parameter meets a defined requirement; the operational limitation is that one parameterized template should selectively include appropriate resources.

Incorrect Answers

C:

This mechanism supports the ability to enforce consistent tagging and validation across an application's CDK construct tree: CDK Aspects visit construct nodes to apply checks or modifications throughout a CDK application. It would not satisfy a different obligation just by appearing in the same workflow.

D:

It supports a separate administrative task, namely to intercept stack resource operations that violate central deployment rules. CloudFormation hooks can enforce pre-provisioning or operation-time checks for supported resource types; the prompt's required outcomes are not achieved by substituting this control.

E:

SSM documents support versioned content and associations can refer to defined document versions; if the requirement were to publish a reviewed command document and execute a pinned approved version, that would matter; the requested outcomes are separate from the one this option addresses.

Question 68

During root-cause analysis, the team identifies the following: An application stack duplicates a shared VPC identifier that changes between environments. To reference a networking stack's output from an application stack in the same Region, what should be configured?

  1. Use CloudFormation DeletionPolicy Retain on a stateful resource
  2. Use AWS SAM transform resources for Lambda and API infrastructure
  3. Use CloudFormation cross-stack exports and imports for shared output values
  4. Use a nested CloudFormation stack for a reusable infrastructure component

Explanation

Correct Answer

C:

CloudFormation exports and Fn::ImportValue share supported values between stacks within the same account and Region; in this case the control is appropriate because it supports reference a networking stack's output from an application stack in the same Region. The consumer should use an explicit stack export instead of hard-coded values.

Incorrect Answers

A:

The choice is useful when engineers need to prevent a persistent data resource from being removed when its stack is deleted: the Retain policy keeps a supported resource after CloudFormation removes its stack ownership. It would not establish the control needed to reference a networking stack's output from an application stack in the same Region.

B:

AWS SAM expands serverless resource declarations into supported CloudFormation resources during transformation; this is a reasonable option when the requirement is to describe serverless functions and their event sources concisely in an IaC template, but it operates at a different workflow boundary from the stated need to reference a networking stack's output from an application stack in the same Region.

D:

Although nested stacks allow a parent stack to reference reusable child templates through stack resources, the scenario does not ask for compose a large deployment from smaller lifecycle-managed CloudFormation templates. It requires the ability to reference a networking stack's output from an application stack in the same Region, which is a separate responsibility.

Question 69

The service maintenance group reports the following failure: An incident investigation can see API events in one account but not across the other members. Which action directly restores the requirement to collect supported account activity centrally across an AWS organization?

  1. Use AWS Backup policies through Organizations for supported centralized plans
  2. Configure Security Hub organization integration and central settings policies
  3. Create an organization-wide CloudTrail trail to a protected logging account
  4. Use AWS Control Tower Account Factory to provision governed accounts
  5. Configure organization-wide GuardDuty management through a delegated security account
  6. Enable AWS Config aggregators across organization accounts and Regions

Explanation

Correct Answer

C:

To collect supported account activity centrally across an AWS organization, the architecture relies on this AWS behavior: an organization trail covers member accounts with centralized delivery and separately controlled storage. Member accounts must not be able to silently erase centrally stored audit evidence.

Incorrect Answers

A:

Organizations backup policies help coordinate AWS Backup plans and selections across member accounts; this is a reasonable option when the requirement is to distribute common backup policy requirements to eligible member accounts, but it operates at a different workflow boundary from the stated need to collect supported account activity centrally across an AWS organization.

B:

Choosing this would aim to standardize security finding aggregation and enabled standards across accounts instead of collect supported account activity centrally across an AWS organization. Security Hub central configuration can apply supported policies across an organization hierarchy; it cannot replace the mechanism specified by the incident evidence.

D:

Account Factory provisions accounts under a landing-zone structure using configured account baselines; this can help teams create new workload accounts with standardized landing-zone controls, but the reported workflow needs to collect supported account activity centrally across an AWS organization. It does not perform that required function.

E:

That service solves a different operating problem: the need to enable consistent threat detection coverage for member accounts; its behavior is that GuardDuty organization administration can automatically manage protection enrollment across eligible members; the requested outcome remains collect supported account activity centrally across an AWS organization.

F:

The choice is useful when engineers need to view resource compliance and configuration state from a central operations account: a configuration aggregator consolidates supported AWS Config configuration and compliance data; it would not establish the control needed to collect supported account activity centrally across an AWS organization.

Question 70

A delivery change request has linked acceptance tests: the system must pass an approved environment-specific value into a reusable pipeline action, and it must automate build and deployment of CDK infrastructure changes with reviewable application source. Which two controls should the engineers combine?

  1. Configure pipeline variables for explicitly parameterized executions; use an AWS CDK pipeline with dedicated synth and deployment steps
  2. Configure pipeline variables for explicitly parameterized executions; enable CodeBuild report groups for automated test results
  3. Use distinct CodePipeline stages with a separate integration test action; use an AWS CDK pipeline with dedicated synth and deployment steps
  4. Restrict build credentials to a CodeBuild service role with least privilege; connect a CodePipeline source action to an approved Git provider through CodeConnections

Explanation

Correct Answer

A:

For the requirement to pass an approved environment-specific value into a reusable pipeline action, pipeline variables expose execution-specific values to actions that support variable substitution. For the requirement to automate build and deployment of CDK infrastructure changes with reviewable application source, CDK Pipelines synthesize application definitions into cloud assemblies and orchestrate subsequent stack deployments. Both mechanisms are necessary; implementing only the first would leave the second unsatisfied.

Incorrect Answers

B:

The first half is appropriate: Pipeline variables expose execution-specific values to actions that support variable substitution. However, CodeBuild report groups ingest supported test and code-coverage files generated during a build; that serves a different objective (publish structured test reports that reviewers can inspect after a CI run) and leaves the explicit need to automate build and deployment of CDK infrastructure changes with reviewable application source unmet.

C:

The second implementation is relevant; the problem is the first. A failed test action makes the stage fail and prevents subsequent deployment stages from proceeding; it can help stop an unsafe revision before it can reach the deployment stage, whereas the stated first requirement is to pass an approved environment-specific value into a reusable pipeline action.

D:

The pair changes the problem instead of completing it. One option addresses let automated builds read only the required inputs and publish expected outputs; the other addresses start pipeline executions from commits on the approved application branch. The release, however, needs to pass an approved environment-specific value into a reusable pipeline action as well as automate build and deployment of CDK infrastructure changes with reviewable application source.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests