Question 240

Operations needs an inventory of installed applications across managed instances. Which Systems Manager capability fits?

  1. Inventory collection configured for the fleet
  2. A CloudFormation Output listing the AMI
  3. Session Manager port forwarding only
  4. An ALB health check

Explanation

Correct Answer

A:

Inventory captures supported node metadata for centralized querying and compliance analysis.

Incorrect Answers

B:

The image identifier does not reflect subsequent software changes.

C:

An interactive connection does not automatically inventory installed software.

D:

Endpoint health does not enumerate installed applications.

Question 241

A performance stage must test realistic concurrency without affecting customers. What design best fits?

  1. Provision an isolated representative environment and drive a controlled load test
  2. Send unrestricted test traffic to the live checkout endpoint
  3. Disable application throttling only in production
  4. Infer maximum throughput from a single unit test

Explanation

Correct Answer

A:

Isolation protects production while comparable capacity and configuration make results meaningful.

Incorrect Answers

B:

Customer traffic and test traffic would compete, violating the impact constraint.

C:

Changing live protection neither isolates testing nor produces a controlled benchmark.

D:

A unit test does not reproduce concurrency, contention, or infrastructure bottlenecks.

Question 242

A web endpoint is overwhelmed by repeated HTTP requests from abusive clients. Which application-layer control can help?

  1. An IAM password policy for customers not using IAM
  2. An AWS WAF rate-based rule with an appropriate aggregation key and scope
  3. A security-group rule matching URL paths
  4. An EBS encryption setting

Explanation

Correct Answer

B:

The rule tracks request rates for matching traffic and applies the configured action; thresholds and legitimate shared clients need consideration.

Incorrect Answers

A:

An IAM user password policy does not rate-limit public application requests.

C:

Security groups do not evaluate HTTP paths.

D:

Block encryption protects data at rest rather than filtering HTTP requests.

Question 243

ECS tasks stay pending on an EC2 cluster, and service events report insufficient memory. What action addresses the reported constraint?

  1. Change the service discovery namespace
  2. Extend application log retention
  3. Add suitable capacity or revise task memory reservations after measurement
  4. Increase the target group's deregistration delay

Explanation

Correct Answer

C:

Placement needs a host with enough available reserved resources; cluster totals can hide per-instance shortages.

Incorrect Answers

A:

Name resolution does not satisfy resource reservation constraints.

B:

Historical storage does not increase task scheduling capacity.

D:

Draining settings do not create host memory for placement.

Question 244

An organization wants automated discovery of sensitive information in supported S3 objects. Which service fits?

  1. Amazon Macie
  2. AWS WAF logs alone
  3. Amazon Inspector as a general S3 content classifier
  4. VPC Flow Logs

Explanation

Correct Answer

A:

Macie analyzes supported S3 data for sensitive information and produces findings; permissions, object eligibility, and discovery scope matter.

Incorrect Answers

B:

HTTP request inspection is not an inventory-wide S3 sensitive-data scan.

C:

Inspector focuses on supported workload vulnerability assessment rather than this data-classification task.

D:

Flow metadata does not inspect stored object content.

Question 245

Kubernetes pods are alive but still warming caches. They should not receive application traffic yet. Which probe should gate service routing?

  1. A liveness probe that always succeeds
  2. A CPU limit only
  3. A readiness probe that remains unsuccessful until initialization completes
  4. An image-pull secret only

Explanation

Correct Answer

C:

Readiness determines whether a pod is eligible for service traffic without requiring the process to restart.

Incorrect Answers

A:

A process can be alive while not ready to serve requests.

B:

Resource limits do not signal when initialization is complete.

D:

Registry authentication does not evaluate application warmup.

Question 246

Operations wants compliance visibility without installing patches yet. Which Patch Manager operation fits?

  1. Scan
  2. Reboot every node
  3. Install
  4. Delete patch inventory

Explanation

Correct Answer

A:

Scanning assesses applicable patch compliance without performing the installation operation.

Incorrect Answers

B:

Reboots do not identify which patches are approved and missing.

C:

Installation changes package state rather than only collecting compliance evidence.

D:

Removing inventory prevents rather than supports compliance assessment.

Question 247

A privileged Automation document must be reusable only by selected partner accounts. What sharing practice fits?

  1. Give partners write access to every document version
  2. Put an approved account list only in a comment
  3. Make the document public and rely on an obscure name
  4. Share explicitly with approved accounts and restrict modification and execution authority

Explanation

Correct Answer

D:

Document sharing scope and execution privileges are separate controls; avoid exposing privileged procedures publicly.

Incorrect Answers

A:

Modification authority exceeds controlled reuse and can change privileged behavior.

B:

Comments do not enforce sharing permissions.

C:

Public sharing is broader than the named partners.

Question 248

A service successfully fails over to its secondary Region. Before returning to the original Region, what is essential?

  1. Reconcile current authoritative data and test the controlled failback sequence
  2. Restore an old backup over the active secondary
  3. Route traffic back without synchronizing data
  4. Assume DNS automatically merges databases

Explanation

Correct Answer

A:

Writes made during recovery must not be lost or overwritten by stale original-region state.

Incorrect Answers

B:

That can erase work accepted after failover.

C:

The original Region may no longer contain the latest accepted transactions.

D:

Routing does not reconcile data histories.

Question 249

A CodeDeploy deployment targets EC2 instances. Which file describes application file placement and lifecycle hooks?

  1. An ECS task definition alone
  2. An EC2/On-Premises AppSpec file
  3. A CodeBuild reports section
  4. An IAM trust policy

Explanation

Correct Answer

B:

The deployment agent reads platform-appropriate AppSpec instructions for installation and hook execution.

Incorrect Answers

A:

Task definitions configure containers for ECS, not the EC2 CodeDeploy agent.

C:

Test report configuration does not describe EC2 deployment lifecycle operations.

D:

Trust relationships control assumption, not application installation steps.

Question 250

A malformed runtime configuration previously caused outages. What should an AppConfig deployment include before rollout?

  1. A policy allowing every developer to bypass checks
  2. Configuration validators that reject invalid content
  3. A shorter log retention period
  4. Only a longer configuration name

Explanation

Correct Answer

B:

Schema or function-based validation can prevent bad configuration from entering a deployment.

Incorrect Answers

A:

Bypass authority defeats the prevention requirement.

C:

Removing diagnostic history cannot make configuration valid.

D:

Naming conventions do not validate content structure or semantics.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests