Question 60

A database slows while active connections approach its limit. What evidence should guide remediation?

  1. Connection metrics plus query and application connection behavior
  2. Increase max_connections without examining per-connection cost or query behavior
  3. Add read replicas before determining whether the bottleneck is eligible read traffic
  4. Restart the database repeatedly without inspecting client pools

Explanation

Correct Answer

A:

The bottleneck may involve pooling, leaks, or long-running work rather than CPU alone.

Incorrect Answers

B:

A larger ceiling can move pressure to memory or CPU and does not identify leaked or inefficient connections.

C:

Replicas help suitable reads, but connection exhaustion may arise from leaks, long transactions, or write demand.

D:

Restarts can temporarily clear sessions but leave the cause of connection growth unchanged.

Question 61

Applications log full access tokens in error messages. What should be corrected at the source?

  1. Encrypt the log group and leave raw tokens in every message
  2. Restrict only the dashboard while leaving raw-log access broadly granted
  3. Reduce retention but continue logging complete tokens
  4. Remove or redact sensitive fields before logging

Explanation

Correct Answer

D:

Preventing secret emission reduces exposure across downstream storage and analytics systems.

Incorrect Answers

A:

At-rest encryption does not prevent authorized log readers from obtaining the logged credentials.

B:

Dashboard access is separate from access to the underlying sensitive events.

C:

A shorter exposure window still leaks newly generated credentials and does not prevent the original disclosure.

Question 62

A Lambda deployment begins failing with an import error before the handler runs. What should be inspected?

  1. Only the API Gateway response mapping
  2. Package layout, runtime compatibility, and required dependencies
  3. Only the function's successful business transactions
  4. Only the DLQ retention policy

Explanation

Correct Answer

B:

Initialization loads the code and libraries before handler invocation; missing or incompatible modules can fail at this stage.

Incorrect Answers

A:

Response transformation happens after invocation and cannot supply a missing module.

C:

The handler never starts, so business-level success cannot explain initialization.

D:

Retention affects failed-event storage rather than code import.

Question 63

A production event rule invokes a remediation document that changes frequently. How can operators make releases reproducible?

  1. Pin the approved document version and update it through change control
  2. Store only the document display name in a ticket
  3. Always invoke whichever version was edited last
  4. Copy the runbook title into a CloudWatch alarm

Explanation

Correct Answer

A:

Version selection prevents unreviewed document edits from silently changing the production response.

Incorrect Answers

B:

A name without version does not identify the executed content.

C:

That couples production behavior to ongoing development.

D:

Alarm text does not select an Automation document version.

Question 64

Operations needs threat detection for suspicious activity such as anomalous credential use. Which service is the best fit?

  1. An S3 lifecycle policy
  2. Amazon GuardDuty
  3. Amazon Inspector as the primary behavioral threat detector
  4. CloudFormation template validation alone

Explanation

Correct Answer

B:

GuardDuty analyzes supported telemetry for threat findings; investigation should assess evidence and severity rather than treat every finding as proven compromise.

Incorrect Answers

A:

Lifecycle rules manage object transitions and expiry rather than threat detection.

C:

Inspector primarily assesses supported workloads for vulnerabilities, a different objective.

D:

Template syntax checks do not analyze live suspicious account behavior.

Question 65

A metric has a normal daily cycle that repeatedly crosses a fixed threshold. What can better identify unusual deviations?

  1. Raise the fixed threshold above the busiest normal interval
  2. Evaluate only a monthly average
  3. Disable alarms during all daily peaks
  4. An anomaly detection model and alarm suited to the metric's pattern

Explanation

Correct Answer

D:

Expected bands can account for recurring behavior, but still require validation against operational goals.

Incorrect Answers

A:

A single high threshold may hide important deviations during normally quiet periods.

B:

Long aggregation can conceal short abnormal changes within the daily demand cycle.

C:

Scheduled silence can hide real failures that occur during those same periods.

Question 66

A team manually edits production pipeline actions and loses track of approved changes. Which practice makes the pipeline configuration reviewable and reproducible?

  1. Keep screenshots of the console only
  2. Define the pipeline as version-controlled infrastructure code
  3. Permit only one browser session
  4. Store only application source

Explanation

Correct Answer

B:

Reviewed definitions capture action wiring, roles, and artifact stores and can recreate the delivery system.

Incorrect Answers

A:

Images record appearances but cannot reliably recreate the configuration or expose complete diffs.

C:

Session count does not establish configuration version history.

D:

Application history alone omits changes to the mechanism that builds and deploys it.

Question 67

A private EC2 instance has no inbound SSH access. What supports Systems Manager management without opening port 22?

  1. Open inbound port 22 and rely on an EC2 key pair
  2. SSM Agent, an appropriate instance role, and required outbound service connectivity
  3. Attach an instance role but provide no path to the required service endpoints
  4. Create private endpoints but remove the node's Systems Manager permissions

Explanation

Correct Answer

B:

The agent communicates with Systems Manager using authorized outbound paths, including suitable endpoints.

Incorrect Answers

A:

That changes the stated no-SSH requirement and does not establish Systems Manager agent connectivity.

C:

Authorization is insufficient when the agent cannot reach the management service.

D:

Connectivity alone cannot register and manage a node without the required identity permissions.

Question 68

A pipeline stage contains a build and its dependent security scan. The scan must consume the completed build output. How should runOrder be configured?

  1. Place the scan first
  2. Give both actions the same runOrder
  3. Use identical action names
  4. Give the build a lower runOrder than the scan

Explanation

Correct Answer

D:

Actions with increasing run orders execute sequentially, so the artifact exists before scanning starts.

Incorrect Answers

A:

A scan cannot inspect an output that its producer has not generated.

B:

Equal values allow parallel execution and do not establish the required dependency.

C:

Names identify actions; they do not impose execution ordering.

Question 69

Events for each customer must be processed serially, while different customers can progress concurrently. What FIFO queue setting supports this?

  1. Use one common group for every customer
  2. Use the customer identifier as MessageGroupId
  3. Use only a short visibility timeout
  4. Assign a different random group to every message

Explanation

Correct Answer

B:

Ordering is enforced within a group while different groups can be processed in parallel.

Incorrect Answers

A:

That serializes unrelated customers and constrains concurrency.

C:

Visibility affects redelivery rather than defining ordered groups.

D:

Events for the same customer would no longer share an ordering boundary.

Question 70

A team wants managed vulnerability findings for supported EC2 and ECR workloads. Which service fits?

  1. Route 53 health checks
  2. IAM credential reports
  3. Amazon Inspector
  4. AWS Health as a package vulnerability scanner

Explanation

Correct Answer

C:

Inspector evaluates supported workload surfaces for vulnerabilities; coverage and scanning configuration determine what is assessed.

Incorrect Answers

A:

Endpoint availability checks do not inspect installed package vulnerabilities.

B:

Credential metadata does not inventory container package vulnerabilities.

D:

Health reports service and account-related operational events rather than package CVE scans.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests