Pass Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam in First Attempt Easily
Real Amazon AWS Certified DevOps Engineer - Professional DOP-C02 Exam Questions, Accurate & Verified Answers As Experienced in the Actual Test!

Verified by experts
2 products

You save $34.99

AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle

  • Premium File 480 Questions & Answers
  • Last Update: Nov 4, 2026
  • Training Course 242 Lectures
$74.99 $109.98

Purchase Individually

  • Premium File

    480 Questions & Answers
    Last Update: Nov 4, 2026

    $76.99
    $69.99
  • Training Course

    242 Lectures

    $43.99
    $39.99

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Test 38

Question 370

Customers worldwide retrieve immutable public assets from one regional application origin, causing high latency and origin request cost.

Why is the recommended approach appropriate to this scenario?

  1. API admission controls bound request rates before work reaches a constrained backend, preserving stability for accepted traffic.
  2. On-demand capacity adapts to varying request traffic without fixed provisioned settings while still requiring good partition-key design.
  3. Concurrency limits bound parallel downstream pressure, trading processing time for predictable protection of dependent systems.
  4. Edge caching reduces repeated origin fetches and latency for eligible content while preserving freshness control.

Explanation

Correct Answer

D:

Edge caching reduces repeated origin fetches and latency for eligible content while preserving freshness control. This explains the implementation decision: Serve cacheable static assets through CloudFront with correct cache headers and controlled invalidation or versioned file names. Verification should show the following: Global test clients show cache hits and reduced origin traffic for versioned assets without serving obsolete releases.

Incorrect Answers

A:

API admission controls bound request rates before work reaches a constrained backend, preserving stability for accepted traffic. This reasoning supports the alternative topic of api gateway throttling, for which the relevant intervention is: Apply API Gateway throttling or usage limits aligned with downstream capacity and return intentional retry guidance. The scenario requires understanding cloudfront edge caching, where edge caching reduces repeated origin fetches and latency for eligible content while preserving freshness control.

B:

On-demand capacity adapts to varying request traffic without fixed provisioned settings while still requiring good partition-key design. This reasoning supports the alternative topic of dynamodb on demand capacity, for which the relevant intervention is: Select appropriate on-demand capacity or autoscaled provisioned throughput and monitor throttling and cost boundaries. The scenario requires understanding cloudfront edge caching, where edge caching reduces repeated origin fetches and latency for eligible content while preserving freshness control.

C:

Concurrency limits bound parallel downstream pressure, trading processing time for predictable protection of dependent systems. This reasoning supports the alternative topic of lambda concurrency protection, for which the relevant intervention is: Set an appropriate maximum event-source concurrency or reserved concurrency and coordinate queue retries with database capacity. The scenario requires understanding cloudfront edge caching, where edge caching reduces repeated origin fetches and latency for eligible content while preserving freshness control.

Question 371

A custom EC2 worker exposes business queue-lag counters in local files, but operations see only basic EC2 CPU metrics.

Which explanation best describes the technical mechanism at issue?

  1. Subscriptions forward matching log events to a processor such as Kinesis Data Streams or Lambda shortly after ingestion.
  2. Basic EC2 metrics do not automatically expose application-specific counters or custom log content; agents and instrumentation provide those signals.
  3. A dedicated log archive separates custody from workload operators while encryption and scoped permissions protect retained evidence.
  4. Metric filters translate matching ingested log events into CloudWatch metric data that alarm logic can evaluate.

Explanation

Correct Answer

B:

Basic EC2 metrics do not automatically expose application-specific counters or custom log content; agents and instrumentation provide those signals. This explains the implementation decision: Install and configure the CloudWatch agent or application instrumentation to publish needed custom metrics and log events with useful dimensions. Verification should show the following: A CloudWatch dashboard shows queue lag by worker group and the expected log stream appears after a managed-node restart.

Incorrect Answers

A:

Subscriptions forward matching log events to a processor such as Kinesis Data Streams or Lambda shortly after ingestion. This reasoning supports the alternative topic of kinesis subscription processing, for which the relevant intervention is: Configure CloudWatch Logs subscription filters to a supported streaming destination with suitable IAM and backpressure handling. The scenario requires understanding cloudwatch agent custom telemetry, where basic EC2 metrics do not automatically expose application-specific counters or custom log content; agents and instrumentation provide those signals.

C:

A dedicated log archive separates custody from workload operators while encryption and scoped permissions protect retained evidence. This reasoning supports the alternative topic of central encrypted log archive, for which the relevant intervention is: Aggregate required audit logs into an access-restricted central S3 archive with suitable SSE-KMS encryption and lifecycle controls. The scenario requires understanding cloudwatch agent custom telemetry, where basic EC2 metrics do not automatically expose application-specific counters or custom log content; agents and instrumentation provide those signals.

D:

Metric filters translate matching ingested log events into CloudWatch metric data that alarm logic can evaluate. This reasoning supports the alternative topic of metric filter error counts, for which the relevant intervention is: Create a CloudWatch Logs metric filter using the error pattern, then alarm on the emitted custom metric. The scenario requires understanding cloudwatch agent custom telemetry, where basic EC2 metrics do not automatically expose application-specific counters or custom log content; agents and instrumentation provide those signals.

Question 372

A CloudFormation stack update is blocked in UPDATE_ROLLBACK_FAILED because a required external resource was removed outside the stack.

What is the main operational consequence of the stated design gap?

  1. Blindly adding worker nodes increases cost but does not resolve invalid image tags or inaccessible registries.
  2. Treating this as an application-code bug can delay recovery while the service lacks enough healthy tasks.
  3. Increasing timeout blindly can hold more concurrent invocations open and amplify pressure on an already degraded dependency.
  4. Deleting or manually changing stack resources during a failed rollback can worsen drift and make recovery harder.

Explanation

Correct Answer

D:

Deleting or manually changing stack resources during a failed rollback can worsen drift and make recovery harder. This outcome arises from the mechanism in the situation: CloudFormation stack events expose failing resource operations; recovery must restore a valid stack lifecycle before further updates. The corresponding mitigation is: Inspect stack events and resource dependencies, repair the root cause, then use supported rollback continuation before a new change set.

Incorrect Answers

A:

Blindly adding worker nodes increases cost but does not resolve invalid image tags or inaccessible registries. That is a credible concern for eks image pull errors, normally addressed by: Inspect pod events, image reference, registry access and pull credentials before changing cluster scaling. It is not the primary failure mechanism described here. The relevant exposure is: Deleting or manually changing stack resources during a failed rollback can worsen drift and make recovery harder.

B:

Treating this as an application-code bug can delay recovery while the service lacks enough healthy tasks. That is a credible concern for ecs task startup failure, normally addressed by: Inspect stopped-task reasons, ECR connectivity and the ECS task execution role's image-pull permissions. It is not the primary failure mechanism described here. The relevant exposure is: Deleting or manually changing stack resources during a failed rollback can worsen drift and make recovery harder.

C:

Increasing timeout blindly can hold more concurrent invocations open and amplify pressure on an already degraded dependency. That is a credible concern for lambda timeout dependencies, normally addressed by: Correlate Lambda duration, timeout and downstream trace segments to identify whether the new code or dependency is responsible. It is not the primary failure mechanism described here. The relevant exposure is: Deleting or manually changing stack resources during a failed rollback can worsen drift and make recovery harder.

Question 373

A container pipeline publishes images despite a critical vulnerability discovered during automated image analysis.

What is the best automation decision for this workload?

  1. Add a vulnerability scanning gate with severity-based failure criteria before promoting the image digest to a production repository.
  2. Configure scripts to propagate nonzero process exits and fail the build phase whenever a required validation command fails.
  3. Run unit tests and static checks in a CodeBuild validation stage triggered on pull requests and block merging on failure.
  4. Introduce versioned producer-consumer contract tests in the CI stages of both services and gate changes on compatibility.

Explanation

Correct Answer

A:

Add a vulnerability scanning gate with severity-based failure criteria before promoting the image digest to a production repository. Scan results are useful only when policy makes promotion conditional on acceptable risk; an informational report alone cannot stop unsafe releases. The relevant operational proof is specific: A critical unresolved finding blocks the specific image digest, while remediated image versions can be promoted with traceable evidence.

Incorrect Answers

B:

Configure scripts to propagate nonzero process exits and fail the build phase whenever a required validation command fails. That would address exit code and failure propagation, because cI services depend on process success or failure status; diagnostic log text without a failing exit cannot reliably enforce a gate. However, the stated situation instead concerns security scan enforcement. Scan results are useful only when policy makes promotion conditional on acceptable risk; an informational report alone cannot stop unsafe releases.

C:

Run unit tests and static checks in a CodeBuild validation stage triggered on pull requests and block merging on failure. That would address pull request unit tests, because early CI tests catch deterministic code defects before release artifacts are promoted, reducing remediation cost and deployment exposure. However, the stated situation instead concerns security scan enforcement. Scan results are useful only when policy makes promotion conditional on acceptable risk; an informational report alone cannot stop unsafe releases.

D:

Introduce versioned producer-consumer contract tests in the CI stages of both services and gate changes on compatibility. That would address contract test across services, because contract testing verifies agreed interface structure while allowing deployment independence and planned schema evolution. However, the stated situation instead concerns security scan enforcement. Scan results are useful only when policy makes promotion conditional on acceptable risk; an informational report alone cannot stop unsafe releases.

Question 374

Security staff need one dashboard of rule compliance across many member accounts and Regions instead of exporting CSVs from each account.

Which action best meets the technical requirement?

  1. Provision new workload accounts through AWS Control Tower Account Factory within approved organizational units and baseline guardrails.
  2. Use SCPs as organization-level maximum-permission guardrails and grant necessary actions separately in identity or resource policies.
  3. Configure an AWS Config aggregator with the required organization and Region coverage and centrally review aggregated compliance.
  4. Apply a carefully scoped AWS Organizations SCP region-deny guardrail with required global-service exceptions.

Explanation

Correct Answer

C:

Configure an AWS Config aggregator with the required organization and Region coverage and centrally review aggregated compliance. An aggregator consolidates AWS Config resource and compliance views, but source accounts must have suitable recorders and rules. The relevant operational proof is specific: The central view reports compliant and noncompliant resources from all intended accounts and monitored Regions.

Incorrect Answers

A:

Provision new workload accounts through AWS Control Tower Account Factory within approved organizational units and baseline guardrails. That would address control tower account factory, because account Factory standardizes account enrollment and foundational governance while AWS Organizations manages consolidated account relationships. However, the stated situation instead concerns multiaccount config aggregation. An aggregator consolidates AWS Config resource and compliance views, but source accounts must have suitable recorders and rules.

B:

Use SCPs as organization-level maximum-permission guardrails and grant necessary actions separately in identity or resource policies. That would address scp permission guardrail, because an SCP restricts permissions available to principals in affected member accounts; it does not itself grant an IAM permission. However, the stated situation instead concerns multiaccount config aggregation. An aggregator consolidates AWS Config resource and compliance views, but source accounts must have suitable recorders and rules.

D:

Apply a carefully scoped AWS Organizations SCP region-deny guardrail with required global-service exceptions. That would address guardrail region restriction, because an organization-level condition can restrict regional actions broadly; exceptions are necessary for services whose endpoints or semantics are global. However, the stated situation instead concerns multiaccount config aggregation. An aggregator consolidates AWS Config resource and compliance views, but source accounts must have suitable recorders and rules.

Question 375

A platform hosts many project resources and wants deployers to modify only resources whose project tag matches their principal's authorized project attribute.

What would most effectively mitigate the described operational weakness?

  1. Manage the database secret with Secrets Manager and a supported rotation process coordinated with application refresh behavior.
  2. Federate workforce access using IAM Identity Center and account-specific permission sets instead of cloning persistent IAM users.
  3. Implement controlled IAM attribute-based access using principal and resource tags with protections against unauthorized tag changes.
  4. Enforce MFA for human privileged access and minimize root account use under an emergency-access procedure.

Explanation

Correct Answer

C:

Implement controlled IAM attribute-based access using principal and resource tags with protections against unauthorized tag changes. ABAC compares attributes at authorization time and scales access policy without a separate policy per resource when tags are trustworthy. The relevant operational proof is specific: A developer changes same-project tagged resources but cannot retag or access a different project's resources.

Incorrect Answers

A:

Manage the database secret with Secrets Manager and a supported rotation process coordinated with application refresh behavior. That would address secrets manager rotation, because managed rotation reduces static-credential lifetime but consumers must retrieve a current secret and handle transitions correctly. However, the stated situation instead concerns abac application teams. ABAC compares attributes at authorization time and scales access policy without a separate policy per resource when tags are trustworthy.

B:

Federate workforce access using IAM Identity Center and account-specific permission sets instead of cloning persistent IAM users. That would address federated human workforce, because central federation uses trusted workforce identity and temporary account-role sessions, reducing credential lifecycle sprawl. However, the stated situation instead concerns abac application teams. ABAC compares attributes at authorization time and scales access policy without a separate policy per resource when tags are trustworthy.

D:

Enforce MFA for human privileged access and minimize root account use under an emergency-access procedure. That would address multi factor privileged access, because mFA adds an independent authentication factor and reduces risk from a stolen password, though authorization still requires least privilege. However, the stated situation instead concerns abac application teams. ABAC compares attributes at authorization time and scales access policy without a separate policy per resource when tags are trustworthy.

Question 376

A new product's DynamoDB request volume is unpredictable and early fixed provisioned capacity causes throttling without a credible forecast.

Which measured test outcome demonstrates the necessary behavior?

  1. Increasing desired tasks causes suitable container instances to join and pending tasks enter RUNNING when capacity appears.
  2. Global test clients show cache hits and reduced origin traffic for versioned assets without serving obsolete releases.
  3. Rising queue age or backlog causes workers to scale out and job completion delay returns to its target range.
  4. Variable traffic completes within approved latency and throttling limits with costs reviewed against usage expectations.

Explanation

Correct Answer

D:

Variable traffic completes within approved latency and throttling limits with costs reviewed against usage expectations. It directly verifies the change: Select appropriate on-demand capacity or autoscaled provisioned throughput and monitor throttling and cost boundaries. The test matters because on-demand capacity adapts to varying request traffic without fixed provisioned settings while still requiring good partition-key design.

Incorrect Answers

A:

Increasing desired tasks causes suitable container instances to join and pending tasks enter RUNNING when capacity appears. That result would help prove ecs capacity providers, where the relevant action is: Configure an ECS capacity provider strategy with managed scaling for the underlying cluster where appropriate. It does not establish this case's required outcome. For dynamodb on demand capacity, the decisive verification is: Variable traffic completes within approved latency and throttling limits with costs reviewed against usage expectations.

B:

Global test clients show cache hits and reduced origin traffic for versioned assets without serving obsolete releases. That result would help prove cloudfront edge caching, where the relevant action is: Serve cacheable static assets through CloudFront with correct cache headers and controlled invalidation or versioned file names. It does not establish this case's required outcome. For dynamodb on demand capacity, the decisive verification is: Variable traffic completes within approved latency and throttling limits with costs reviewed against usage expectations.

C:

Rising queue age or backlog causes workers to scale out and job completion delay returns to its target range. That result would help prove sqs backlog per worker scaling, where the relevant action is: Scale consumers using a CloudWatch backlog-per-instance metric and processing-time-aware target instead of CPU alone. It does not establish this case's required outcome. For dynamodb on demand capacity, the decisive verification is: Variable traffic completes within approved latency and throttling limits with costs reviewed against usage expectations.

Question 377

A consumer API has strong daily traffic cycles and a fixed request-count alarm generates false positives every night.

Which AWS operational change most directly resolves the stated problem?

  1. Enable appropriately scoped CloudTrail S3 data event recording for the required buckets while managing cost and data sensitivity.
  2. Search CloudTrail management events with time, account, event name and user identity, preserving an appropriate audit trail.
  3. Use CloudWatch anomaly detection bands on a suitable service metric with defined sensitivity and anomaly alarm behavior.
  4. Instrument supported request paths for AWS X-Ray traces and inspect segments to isolate high-latency dependencies.

Explanation

Correct Answer

C:

Use CloudWatch anomaly detection bands on a suitable service metric with defined sensitivity and anomaly alarm behavior. Anomaly detection learns expected patterns in metric history and can detect deviations that static thresholds miss for seasonal signals. The relevant operational proof is specific: Expected daily variations remain inside the alarm band while an abnormal sustained traffic drop triggers investigation.

Incorrect Answers

A:

Enable appropriately scoped CloudTrail S3 data event recording for the required buckets while managing cost and data sensitivity. That would address cloudtrail data events, because object-level data events are separately configurable from management events and require intentional scope selection. However, the stated situation instead concerns cloudwatch anomaly detection. Anomaly detection learns expected patterns in metric history and can detect deviations that static thresholds miss for seasonal signals.

B:

Search CloudTrail management events with time, account, event name and user identity, preserving an appropriate audit trail. That would address cloudtrail management audit, because cloudTrail records AWS API management activity and identity context, connecting resource configuration changes to actor sessions. However, the stated situation instead concerns cloudwatch anomaly detection. Anomaly detection learns expected patterns in metric history and can detect deviations that static thresholds miss for seasonal signals.

D:

Instrument supported request paths for AWS X-Ray traces and inspect segments to isolate high-latency dependencies. That would address x ray trace latency, because distributed traces provide per-service latency context that aggregate endpoint duration cannot identify. However, the stated situation instead concerns cloudwatch anomaly detection. Anomaly detection learns expected patterns in metric history and can detect deviations that static thresholds miss for seasonal signals.

Question 378

A pipeline fails in CodeBuild with AccessDenied when uploading its output to an encrypted artifact bucket despite successful compilation.

What should operators verify before closing the issue?

  1. After policy correction the same build publishes its expected artifact without broader administrator privileges.
  2. New tasks reach RUNNING with their intended digest after fixing the precise execution-role or network condition.
  3. After repairing the image or registry permissions, the pods pull successfully and pass readiness checks.
  4. The corrected hook starts the application and lifecycle validation passes with application logs confirming readiness.

Explanation

Correct Answer

A:

After policy correction the same build publishes its expected artifact without broader administrator privileges. It directly verifies the change: Inspect build service-role S3 and KMS permissions alongside the bucket and key policies, then correct only the missing access. The test matters because artifact upload can require both S3 write authorization and KMS key use when using SSE-KMS, regardless of successful compilation.

Incorrect Answers

B:

New tasks reach RUNNING with their intended digest after fixing the precise execution-role or network condition. That result would help prove ecs task startup failure, where the relevant action is: Inspect stopped-task reasons, ECR connectivity and the ECS task execution role's image-pull permissions. It does not establish this case's required outcome. For codebuild role denied artifact, the decisive verification is: After policy correction the same build publishes its expected artifact without broader administrator privileges.

C:

After repairing the image or registry permissions, the pods pull successfully and pass readiness checks. That result would help prove eks image pull errors, where the relevant action is: Inspect pod events, image reference, registry access and pull credentials before changing cluster scaling. It does not establish this case's required outcome. For codebuild role denied artifact, the decisive verification is: After policy correction the same build publishes its expected artifact without broader administrator privileges.

D:

The corrected hook starts the application and lifecycle validation passes with application logs confirming readiness. That result would help prove codedeploy hooks failure, where the relevant action is: Inspect CodeDeploy lifecycle event logs, deployment agent output and application start command permissions before retrying. It does not establish this case's required outcome. For codebuild role denied artifact, the decisive verification is: After policy correction the same build publishes its expected artifact without broader administrator privileges.

Question 379

An EC2 fleet must receive a risky application revision with rapid rollback and no in-place package mutation of healthy instances.

Which operational observation best confirms the intended design?

  1. Traffic initially remains on blue, then shifts to healthy green targets, and can return to blue if alarms trip.
  2. New pods enter service only after dependencies are ready and enough old replicas remain to handle traffic.
  3. Traffic moves only after all intended green targets pass the health threshold and recoverable targets are removed when unhealthy.
  4. Hook logs confirm the intended process restart and the post-install health test returns an application-ready response.

Explanation

Correct Answer

A:

Traffic initially remains on blue, then shifts to healthy green targets, and can return to blue if alarms trip. It directly verifies the change: Deploy the revision to a separate green EC2 fleet and switch traffic after health checks using a blue/green deployment strategy. The test matters because a separate target fleet keeps the last-known-good servers available until the replacement version meets cutover criteria.

Incorrect Answers

B:

New pods enter service only after dependencies are ready and enough old replicas remain to handle traffic. That result would help prove kubernetes rolling readiness, where the relevant action is: Use readiness probes and rolling-update maxUnavailable/maxSurge settings that preserve service capacity during replacement. It does not establish this case's required outcome. For ec2 blue green deployment, the decisive verification is: Traffic initially remains on blue, then shifts to healthy green targets, and can return to blue if alarms trip.

C:

Traffic moves only after all intended green targets pass the health threshold and recoverable targets are removed when unhealthy. That result would help prove alb target group health, where the relevant action is: Require healthy load-balancer target status and suitable readiness checks before shifting client traffic to replacement capacity. It does not establish this case's required outcome. For ec2 blue green deployment, the decisive verification is: Traffic initially remains on blue, then shifts to healthy green targets, and can return to blue if alarms trip.

D:

Hook logs confirm the intended process restart and the post-install health test returns an application-ready response. That result would help prove codedeploy lifecycle hooks, where the relevant action is: Configure the appropriate AppSpec lifecycle hooks to stop, install and start the application, then validate the service after installation. It does not establish this case's required outcome. For ec2 blue green deployment, the decisive verification is: Traffic initially remains on blue, then shifts to healthy green targets, and can return to blue if alarms trip.

Question 380

A daily Lambda remediation reruns after transient failures and repeatedly creates duplicate security-group rules and notification records.

Which adverse outcome is the recommended change intended to prevent?

  1. Automatic destructive remediation without a high-risk gate can disconnect live workloads during a false-positive alert.
  2. Manual inventory misses changed hosts and broad interactive access increases operational and security risk.
  3. Laptop-hosted cron jobs silently stop running when their owner disconnects or changes machines.
  4. Non-idempotent retries can accumulate duplicate resources, trigger rate limits or corrupt operational state.

Explanation

Correct Answer

D:

Non-idempotent retries can accumulate duplicate resources, trigger rate limits or corrupt operational state. This outcome arises from the mechanism in the situation: Event-driven systems can deliver retries and duplicate triggers, so actions must tolerate repeated execution without multiplying effects. The corresponding mitigation is: Make operational automation idempotent with resource-state checks, unique operation keys and safe retry behavior.

Incorrect Answers

A:

Automatic destructive remediation without a high-risk gate can disconnect live workloads during a false-positive alert. That is a credible concern for ssm automation approval steps, normally addressed by: Use a Systems Manager Automation runbook with branching, prechecks and an explicit approval step for high-impact operations. It is not the primary failure mechanism described here. The relevant exposure is: Non-idempotent retries can accumulate duplicate resources, trigger rate limits or corrupt operational state.

B:

Manual inventory misses changed hosts and broad interactive access increases operational and security risk. That is a credible concern for inventory without ssh, normally addressed by: Collect Systems Manager Inventory through SSM-managed nodes and aggregate the reported package and application metadata. It is not the primary failure mechanism described here. The relevant exposure is: Non-idempotent retries can accumulate duplicate resources, trigger rate limits or corrupt operational state.

C:

Laptop-hosted cron jobs silently stop running when their owner disconnects or changes machines. That is a credible concern for eventbridge scheduling, normally addressed by: Use EventBridge Scheduler with an authorized target role and time-zone-aware schedule for the required shutdown automation. It is not the primary failure mechanism described here. The relevant exposure is: Non-idempotent retries can accumulate duplicate resources, trigger rate limits or corrupt operational state.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests

Purchase Individually

  • Premium File

    480 Questions & Answers
    Last Update: Nov 4, 2026

    $76.99
    $69.99
  • Training Course

    242 Lectures

    $43.99
    $39.99

SPECIAL OFFER: GET 10% OFF
This is ONE TIME OFFER

You save
10%

Enter Your Email Address to Receive Your 10% Off Discount Code

SPECIAL OFFER: GET 10% OFF

You save
10%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@examlabs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your email address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports