Question 40

An investigation must link a deployment change, the AWS caller, and the resulting application failures. What evidence model fits?

  1. Assume any event in the same account caused the outage
  2. Retain only average monthly latency
  3. Correlate deployment IDs, CloudTrail identity and timestamps, and application request or trace identifiers
  4. Use only the final incident ticket title

Explanation

Correct Answer

C:

Shared identifiers and synchronized time help reconstruct causality across control-plane and application evidence.

Incorrect Answers

A:

Account co-location alone does not establish a causal relationship.

B:

Aggregation hides the detailed timing and request context needed.

D:

A title cannot reconstruct the individual actions and failures.

Question 41

A pull request updates a third-party library. Functional tests pass, but policy requires checking known dependency vulnerabilities before merge. What should be added?

  1. A dependency security scan with a defined failure policy
  2. Only a production CPU alarm
  3. A repository size limit
  4. A deployment approval without scan evidence

Explanation

Correct Answer

A:

Functional correctness and vulnerability exposure are separate dimensions, so both need explicit checks.

Incorrect Answers

B:

Runtime utilization does not inventory vulnerable package versions.

C:

File size has no reliable relationship to known library vulnerabilities.

D:

Human approval alone cannot supply the required vulnerability assessment.

Question 42

A deployment action receives source files but requires a compiled distribution directory. Which wiring change is needed?

  1. Run a repository permission audit only
  2. Increase source polling frequency
  3. Use the build action's packaged output as the deployment input
  4. Rename the source artifact to BuildOutput

Explanation

Correct Answer

C:

The deployment must consume the generated distribution, not the earlier uncompiled source artifact.

Incorrect Answers

A:

Permissions review does not correct the artifact dependency graph.

B:

More frequent revisions do not compile missing output files.

D:

A label change cannot generate compiled application contents.

Question 43

A source account must send matching logs to a central account's supported stream destination. What authorization is needed?

  1. Grant only source-account IAM permissions with no receiving destination policy
  2. Share a destination stream ARN without configuring its delivery role
  3. Make the log dashboard public as the delivery authorization
  4. Compatible sender permissions and destination resource policy with delivery authority

Explanation

Correct Answer

D:

Cross-account delivery requires the source and destination sides to permit the configured path.

Incorrect Answers

A:

The receiving side must authorize the cross-account path; source permissions alone cannot grant access in another account.

B:

An identifier locates the destination but does not authorize the service to write records.

C:

Dashboard viewing access does not grant permission to subscribe and deliver log events.

Question 44

A dependency cache occasionally returns stale generated binaries from another branch. What is the best correction?

  1. Treat every cached binary as approved
  2. Disable all test stages when cache hits
  3. Cache safe dependencies with keys tied to relevant inputs, not unvalidated release outputs
  4. Use a single constant key for every branch

Explanation

Correct Answer

C:

Cache identity must reflect dependency changes; final artifacts should be produced and validated for the current execution.

Incorrect Answers

A:

Cached presence is not evidence that the file belongs to the current revision.

B:

A cache hit does not prove correctness or compatibility.

D:

Shared unqualified keys preserve the collision between unrelated inputs.

Question 45

A network stack exports a subnet ID that another stack imports. Why can the producer's export not simply be removed?

  1. Only the producer's local template file matters
  2. Importing stacks depend on the exported value
  3. Exports are immutable even when unused
  4. Subnet names are globally reserved

Explanation

Correct Answer

B:

Cross-stack references must be removed or migrated in consumers before the referenced export can be deleted or changed.

Incorrect Answers

A:

The service tracks references across stacks, not merely local files.

C:

Unused exports can be changed; the active consumer dependency is the important restriction.

D:

Name scope is unrelated to CloudFormation import dependencies.

Question 46

A pod remains Pending despite free CPU, and scheduler events report an untolerated taint. What resolves this if the workload belongs on those nodes?

  1. Add the appropriate toleration while preserving intended placement constraints
  2. Scale an unrelated deployment down
  3. Increase the container's CPU limit only
  4. Restart CoreDNS as the first fix

Explanation

Correct Answer

A:

Taints repel pods unless tolerated; available CPU cannot override that scheduling restriction.

Incorrect Answers

B:

Freeing more capacity leaves the explicit taint restriction in place.

C:

CPU limits do not tolerate node taints.

D:

DNS service health does not change the scheduler's taint decision.

Question 47

An application needs object copies in another Region for regional recovery. What should it configure?

  1. Enable versioning only on the source bucket
  2. S3 cross-Region replication with required versioning and permissions
  3. Create a second bucket without a replication configuration
  4. Enable S3 Transfer Acceleration

Explanation

Correct Answer

B:

Replication creates destination-region copies; validate encryption access and recovery requirements.

Incorrect Answers

A:

Versioning preserves revisions locally but does not create a replication destination in another Region.

C:

Two independent buckets do not automatically copy application objects between them.

D:

Acceleration changes transfer routing rather than maintaining a managed regional recovery copy.

Question 48

An Auto Scaling activity reports that instances cannot launch after a new encrypted AMI is selected. Which evidence should guide diagnosis?

  1. Only the group tag capitalization
  2. Only the ALB access logs
  3. The activity error and permissions for the AMI, snapshots, and encryption key
  4. Only the instance user-data application logs

Explanation

Correct Answer

C:

Encrypted-image launches require access to underlying resources; the actual error distinguishes authorization from capacity problems.

Incorrect Answers

A:

Tag spelling does not by itself explain encrypted-volume authorization.

B:

No target exists yet to generate application traffic evidence.

D:

An instance that never launches cannot run its startup script.

Question 49

A team wants every application host to originate from an approved image rather than years of configuration changes. Which rollout model fits?

  1. Run configuration scripts indefinitely on the original hosts without rebuilding images
  2. Replace instances using a versioned launch template and baked AMI
  3. Pin only the application package while allowing every host to retain its existing OS state
  4. Create AMIs for documentation but keep deployment limited to SSH edits

Explanation

Correct Answer

B:

Fresh instances converge from a known image instead of accumulating manual mutations.

Incorrect Answers

A:

Repeated in-place changes retain the accumulation of host mutations the requirement is intended to remove.

C:

Package pinning does not replace years of divergent operating-system configuration.

D:

An unused image does not make the actual running fleet originate from approved immutable releases.

Question 50

An EC2 CodeDeploy release fails during ApplicationStart. Where should the engineer look first?

  1. Only the source repository's star count
  2. Only the load balancer's certificate expiration
  3. Deployment lifecycle logs and the hook script's exit status on the target
  4. Only the total bucket size

Explanation

Correct Answer

C:

These identify the failing phase and command; subsequent configuration changes should follow the actual script error.

Incorrect Answers

A:

Repository popularity provides no deployment execution evidence.

B:

A certificate can affect traffic but does not explain a reported local hook exit by itself.

D:

Artifact storage volume does not identify the failing startup command.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests