Question 110

Build jobs need only to read source artifacts and write compiled artifacts. Deployment requires infrastructure administration. Which role design limits build compromise impact?

  1. Use the same privileged role for every action
  2. Store deployment administrator keys in build variables
  3. Give the CodeBuild role AdministratorAccess
  4. Separate least-privilege build and deployment roles

Explanation

Correct Answer

D:

The build identity receives artifact permissions without inheriting the authority needed by deployment actions.

Incorrect Answers

A:

Shared authority removes the intended boundary between compilation and deployment.

B:

Long-lived elevated credentials enlarge the build's privilege exposure.

C:

A compromised build could then modify infrastructure beyond its compilation duties.

Question 111

An account's root identity has no MFA and is used for routine automation. What change is appropriate?

  1. Protect root with MFA and migrate automation to scoped roles
  2. Use the root email address as an access key ID
  3. Create another root access key for each application
  4. Share the root password with the entire operations team

Explanation

Correct Answer

A:

Root should be reserved for tasks that require it; workload roles support temporary credentials and bounded authority.

Incorrect Answers

B:

The email is an account identifier rather than an API credential.

C:

Additional permanent root credentials multiply exposure.

D:

Sharing removes individual attribution and increases compromise risk.

Question 112

Requests cross an API, a function, and downstream services. What enables linking their telemetry into one distributed request?

  1. Create a new unrelated trace identifier at every service boundary
  2. Propagate trace context and instrument supported components
  3. Set an identical trace identifier for every customer request
  4. Enable only host CPU metrics on each service

Explanation

Correct Answer

B:

Consistent trace identifiers connect segments rather than leaving unrelated local observations.

Incorrect Answers

A:

Independent identifiers leave the downstream observations disconnected from the initiating trace.

C:

A constant conflates separate transactions instead of preserving an individual distributed request.

D:

Aggregate resource utilization cannot reconstruct the causal path of one request.

Question 113

SNS subscribers need routing based on JSON message-body fields rather than message attributes. Which configuration matters?

  1. Change the topic display name
  2. Keep attribute scope and omit all attributes
  3. Set the subscription filter policy scope to MessageBody
  4. Enable raw delivery as the only change

Explanation

Correct Answer

C:

The scope determines where the filter evaluates fields; body matching requires supported JSON structure.

Incorrect Answers

A:

Display names do not select filter input.

B:

The required body fields would not be evaluated as attributes.

D:

Envelope formatting does not itself choose the filter policy scope.

Question 114

A single dependency outage triggers dozens of related service notifications. What design can reduce operator noise while preserving evidence?

  1. Raise every service threshold permanently
  2. Page every second regardless of state
  3. Correlate related conditions and notify on a suitable aggregate incident signal
  4. Delete all component metrics

Explanation

Correct Answer

C:

Component observations can remain available while the paging path reflects the shared failure.

Incorrect Answers

A:

That can conceal genuine independent incidents.

B:

More repetition increases noise rather than reducing it.

D:

Removing evidence hinders diagnosis and unrelated failure detection.

Question 115

A service cannot reach another subnet, and VPC Flow Logs show rejected traffic. What should be examined?

  1. Applicable security groups, network ACLs, and the specific flow details
  2. Change IAM application permissions without inspecting rejected packet rules
  3. Increase the application HTTP timeout before checking the flow tuple
  4. Assume the reject record alone proves which individual rule rejected the packet

Explanation

Correct Answer

A:

Rejected flows narrow investigation to network authorization and path context.

Incorrect Answers

B:

An IAM change does not override security-group or network-ACL packet filtering.

C:

Waiting longer cannot permit traffic explicitly rejected along the network path.

D:

Flow records need to be correlated with the applicable network controls to identify the responsible rule.

Question 116

An Auto Scaling fleet must replace hosts without losing user carts. Which design supports this?

  1. Depend on sticky sessions as the only durable cart mechanism
  2. Copy the application AMI but retain carts only in local memory
  3. Store durable cart state in an appropriate external data service
  4. Set a long instance lifetime and assume replacement will never occur

Explanation

Correct Answer

C:

Replacement compute can retrieve state without depending on a terminated host's filesystem.

Incorrect Answers

A:

Affinity can route to a host but does not preserve its in-memory state when the host is replaced.

B:

An image contains the packaged software, not the live cart state of an instance.

D:

Health recovery and infrastructure failures can still remove that stateful host.

Question 117

A long test suite is split into four CodeBuild jobs. How should the quality gate evaluate their results?

  1. Ignore the slowest shard
  2. Require every required shard to succeed before release
  3. Average exit codes and round down
  4. Accept the first successful shard

Explanation

Correct Answer

B:

A complete suite passes only when all required partitions finish successfully; partial completion cannot establish coverage.

Incorrect Answers

A:

Latency does not determine whether that partition's assertions matter.

C:

Process success statuses are not meaningful numeric scores to average.

D:

One partition does not exercise the tests assigned to the others.

Question 118

Responders must map a deployed image digest back to its source commit and build execution. What should the release process retain?

  1. Only the developer's display name
  2. A provenance record linking digest, commit, build ID, and test evidence
  3. Only image size and push time
  4. Only the mutable latest tag

Explanation

Correct Answer

B:

The mapping connects immutable output to its inputs and validation history for investigation and rollback.

Incorrect Answers

A:

A person identifier cannot identify the exact source and build output.

C:

Those attributes are insufficient to prove which code produced the image.

D:

The tag may point elsewhere later and loses reliable historical linkage.

Question 119

A pipeline deploys into two Regions using supported cross-Region actions. What artifact-store configuration is needed?

  1. Only a bucket in an unrelated third Region
  2. An artifact store in each action Region
  3. An S3 access point instead of regional stores
  4. An ECR repository for all action types

Explanation

Correct Answer

B:

CodePipeline uses regional artifact stores for cross-Region actions; configure access and encryption for each store.

Incorrect Answers

A:

A remote bucket alone does not satisfy each action Region's artifact-store requirements.

C:

Access points change bucket access management, not the regional pipeline artifact model.

D:

Container registries cannot replace CodePipeline's general S3 artifact stores.

Question 120

A log group must use a customer managed KMS key at rest. What configuration is relevant?

  1. Grant only the application role kms:ListKeys
  2. Store the key ARN in the log-group name
  3. Associate a suitable regional key and authorize CloudWatch Logs to use it
  4. Choose a key in an unrelated Region without a supported regional association

Explanation

Correct Answer

C:

The service needs key access as well as the log-group association.

Incorrect Answers

A:

Listing keys does not authorize the CloudWatch Logs service to encrypt or decrypt log data.

B:

A resource label does not create a KMS association or key-policy authorization.

D:

The log group needs a suitable regional key and the service's required key access.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests