Question 20

An audit archive in a versioned S3 bucket must protect each evidence version for a fixed seven-year period. Administrators, including the account root user, must not be able to shorten retention or delete a protected version during that period. Which retention setting fits?

  1. S3 Object Lock compliance mode with a seven-year retention period.
  2. S3 Object Lock governance mode with broad bypass permission.
  3. S3 Versioning without Object Lock.
  4. A removable legal hold as the only retention control.

Explanation

Correct Answer

A:

Compliance retention prevents protected-version deletion and retention shortening during the period, including by root. New versions can still be written, so retention applies to the evidence version itself.

Incorrect Answers

B:

Governance retention can be bypassed by appropriately authorized callers. That exception violates the stated administrator-resistant requirement.

C:

Versioning preserves prior versions during ordinary writes, but authorized users can permanently delete versions without an additional retention control.

D:

A legal hold has no fixed expiration and can be removed by an authorized identity. Alone, it does not enforce the specified unshortenable seven-year period.

Question 21

An ALB shows elevated target-generated 5xx responses but few load-balancer-generated 5xx responses. Where should investigation focus first?

  1. Application targets and their dependencies
  2. Increase the ALB idle timeout before examining target responses
  3. Replace the ALB because its own 5xx counter is low
  4. Scale only the DNS resolver capacity

Explanation

Correct Answer

A:

The distinction indicates targets returned errors rather than the load balancer generating most failures.

Incorrect Answers

B:

Idle timeout can affect connection handling, but it does not explain target-generated HTTP failures without supporting evidence.

C:

The low load-balancer-generated count points away from the ALB being the principal response generator.

D:

DNS resolution does not account for established requests receiving HTTP errors from targets.

Question 22

After an Aurora failover, applications still try the old writer's instance endpoint. What endpoint should normal writes use?

  1. Keep using the original instance endpoint and increase connection retries
  2. Send writes to the reader endpoint
  3. The cluster writer endpoint with reconnect handling
  4. Select a replica by sorting instance names

Explanation

Correct Answer

C:

The endpoint follows the current writer; applications must refresh connections and tolerate failover interruption.

Incorrect Answers

A:

An instance endpoint identifies that instance rather than following the cluster writer role after promotion.

B:

The reader endpoint is intended for read connections and is not the stable writer-routing choice.

D:

Naming does not establish which member currently owns the writer role.

Question 23

A latency alarm intended for 500 milliseconds is set to 500 against a metric in seconds. What correction is needed?

  1. Use 0.5 seconds or convert the metric consistently
  2. Set the threshold to 500 seconds because the dashboard displays milliseconds
  3. Increase the evaluation window while retaining a threshold of 500 seconds
  4. Choose Maximum instead of Average while retaining 500 seconds

Explanation

Correct Answer

A:

Alarm thresholds must match the actual metric scale to detect the intended condition.

Incorrect Answers

B:

An alarm uses the selected metric values; display formatting does not change the underlying threshold scale.

C:

A longer window changes persistence requirements, not the thousand-fold threshold error.

D:

Changing the statistic does not correct the unit mismatch in the threshold.

Question 24

Project access should follow a user's project attribute across many similarly tagged resources. What IAM pattern fits?

  1. Compare trusted principal or session tags with resource tags
  2. Grant access based only on resource display names
  3. Use one unconditional allow for every project
  4. Permit callers to set arbitrary project session tags without control

Explanation

Correct Answer

A:

ABAC can express project membership without a separate policy for every resource; tag modification must also be controlled.

Incorrect Answers

B:

Names do not inherently prove the caller's project membership.

C:

That removes project isolation rather than automating it.

D:

Users could impersonate another project attribute and gain access.

Question 25

Security operations should manage a supported organization-integrated service without routine use of the management account. What should be configured?

  1. A designated delegated administrator account
  2. Create an ordinary administrator role in a member account without service registration
  3. Move every workload into the management account
  4. Enable trusted access but designate no administrator account

Explanation

Correct Answer

A:

Supported delegation moves administration to a member account while retaining organization integration.

Incorrect Answers

B:

A role can grant account permissions but does not establish organization-wide delegated administration for the service.

C:

Account consolidation removes isolation and does not satisfy delegated service management from a member account.

D:

Trusted access supports integration; it does not alone appoint the security operations account as delegated administrator.

Question 26

Compliance reports omit a resource type in one Region although the aggregator is healthy. What should be checked at the source?

  1. Only the resource owner email
  2. Assume every recorder necessarily includes every supported type
  3. Recorder inclusion or exclusion settings and support for that resource type in the Region
  4. Only the aggregator dashboard theme

Explanation

Correct Answer

C:

An aggregator cannot display configuration items the source never records; resource coverage is an independent configuration.

Incorrect Answers

A:

Contact information does not select recorder coverage.

B:

Recorder strategies can intentionally include or exclude types.

D:

Presentation cannot create omitted configuration items.

Question 27

EKS HPA creates more replicas, but pods remain Pending because nodes lack resources. What additional automation addresses this?

  1. Increase the HPA maximum replica count only
  2. Add a readiness delay to every Pending pod
  3. Raise container resource requests without adding nodes
  4. A suitable node autoscaling solution

Explanation

Correct Answer

D:

Node capacity must expand when existing nodes cannot schedule the added pods.

Incorrect Answers

A:

More desired replicas remain unschedulable while available node resources are exhausted.

B:

Readiness is evaluated after scheduling and cannot create node CPU or memory.

C:

Larger requests can make placement harder on the already exhausted node fleet.

Question 28

A bucket policy may permit access from outside the intended trust boundary. Which service can identify that policy exposure?

  1. Only CloudTrail event history
  2. IAM Access Analyzer external access analysis
  3. Only an instance patch baseline
  4. Only a CPU anomaly alarm

Explanation

Correct Answer

B:

It evaluates supported resource policies relative to a zone of trust; a finding indicates possible access rather than proof it was exercised.

Incorrect Answers

A:

Observed calls do not enumerate every access path allowed by a policy.

C:

Patching does not analyze bucket principals.

D:

Resource utilization cannot establish a policy's external trust relationships.

Question 29

An Automation runbook must restart an AWS resource using a dedicated identity. What should be specified?

  1. An Automation assume role with required API permissions and trust
  2. Use the instance profile of an unrelated EC2 node as an implicit runbook identity
  3. Place API permissions only in the document description
  4. Grant the operator permission to read the runbook without execution permissions

Explanation

Correct Answer

A:

The runbook needs service-assumable authority to perform its control-plane actions.

Incorrect Answers

B:

An Automation execution does not automatically inherit arbitrary target-node credentials.

C:

Descriptive text does not grant the Automation service authority to call AWS APIs.

D:

Document visibility does not supply the service execution identity or required resource actions.

Question 30

A CodePipeline artifact bucket must reject unencrypted HTTP transport from any action. Which bucket-policy condition directly enforces this?

  1. Increase the artifact retention period
  2. Require an object tag named HTTPS
  3. Deny requests where aws:SecureTransport is false
  4. Enable bucket versioning alone

Explanation

Correct Answer

C:

The request context distinguishes TLS transport; the deny applies even when an identity otherwise allows access.

Incorrect Answers

A:

Keeping artifacts longer does not change request transport security.

B:

Tags describe objects and cannot prove the transport used for an API request.

D:

Version history does not require encrypted network connections.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests