Question 210

An external review system must tell a workflow when a long-running task finishes. Which pattern fits?

  1. A task that returns success before the external work starts
  2. A static output containing approved
  3. A supported callback task using a task token
  4. Polling within one Lambda invocation indefinitely

Explanation

Correct Answer

C:

The external system returns the token through the completion API, allowing the waiting workflow to resume.

Incorrect Answers

A:

Premature success loses coordination with the real outcome.

B:

Fixed text is not evidence that the external review completed.

D:

Long-lived waiting exceeds function limits and consumes execution resources.

Question 211

Only approved operating-system patches should be installed after a defined waiting period. What governs patch eligibility?

  1. The instance name tag alone
  2. A log retention setting
  3. A security group's inbound ports
  4. A Patch Manager patch baseline

Explanation

Correct Answer

D:

Baseline approval rules and exceptions determine which patches qualify; execution scheduling is separate.

Incorrect Answers

A:

A name can select targets but does not define patch approval logic.

B:

Retention does not determine software update eligibility.

C:

Network filtering does not classify operating-system patches as approved.

Question 212

A fixed AMI is published after a fleet vulnerability. Existing Auto Scaling instances must be replaced gradually. Which sequence fits?

  1. Update the template and assume existing disks are rewritten
  2. Update the launch-template version used by the group, then perform a controlled instance refresh
  3. Terminate the entire fleet simultaneously
  4. Change only the AMI name tag

Explanation

Correct Answer

B:

The template changes future launches; refresh replaces existing members according to health and availability preferences.

Incorrect Answers

A:

Existing instances do not automatically reinstall from a different AMI.

C:

That violates gradual replacement and can remove all serving capacity.

D:

A tag does not change the instance's boot image.

Question 213

An incident event supplies a shell fragment that would be inserted into a privileged command document. What should the response design enforce?

  1. Validate and constrain inputs and avoid unsafe command interpolation
  2. Trust input because the event uses valid JSON
  3. Concatenate all event text into a root shell command
  4. Use only a longer command timeout

Explanation

Correct Answer

A:

Event fields are not inherently trusted; strict parameters and safe handling prevent a remediation channel from becoming command injection.

Incorrect Answers

B:

Syntactic validity does not establish safe shell semantics.

C:

That permits event-controlled code execution.

D:

Execution duration does not sanitize malicious input.

Question 214

Most accounts use a standard logging retention period, but regulated accounts need longer retention. What avoids duplicating the entire StackSet template?

  1. Stack instance parameter overrides for the exceptions
  2. Editing only the management account's local file
  3. Different logical IDs for identical resources
  4. A separate manually edited template per account

Explanation

Correct Answer

A:

Account-specific values can customize the common template while preserving its shared definition.

Incorrect Answers

B:

Local edits do not update deployed stack instance parameter values.

C:

Renaming resources can trigger lifecycle changes rather than parameter customization.

D:

Copies increase maintenance divergence instead of using a controlled override.

Question 215

An EKS pod repeatedly restarts after the process exits with a nonzero code. What provides the most direct application evidence?

  1. Only the namespace label list
  2. The previous container logs and pod events
  3. Only the cluster endpoint URL
  4. Only the desired replica count

Explanation

Correct Answer

B:

Previous logs capture the terminated process while events add scheduling, probe, and runtime context.

Incorrect Answers

A:

Metadata alone does not capture the process error.

C:

Endpoint identity does not describe the application failure.

D:

The requested count does not reveal why a process exits.

Question 216

CloudFormation can assume its service role, but a pipeline action cannot execute a change set. Which distinction guides troubleshooting?

  1. An application instance profile authorizes every deployment action
  2. A successful template validation proves all API permissions
  3. The action role needs CloudFormation API permission separately from the stack service role
  4. The stack role automatically grants permissions to the caller

Explanation

Correct Answer

C:

One identity orchestrates the stack operation while another performs resource provisioning; success of one does not imply permission for the other.

Incorrect Answers

A:

Instance roles serve application instances, not pipeline control-plane requests.

B:

Syntax checks do not exercise change-set execution authorization.

D:

Assuming a service role does not transfer that role's permissions back to the pipeline identity.

Question 217

A Kinesis consumer restarts and must resume after its last successfully processed records. What state should it maintain?

  1. The latest observed sequence number before processing
  2. Durable shard checkpoints coupled to successful processing
  3. Only the worker process ID
  4. Only the stream creation timestamp

Explanation

Correct Answer

B:

Per-shard positions support recovery; checkpoint timing must avoid skipping unfinished records.

Incorrect Answers

A:

Advancing before completion can skip records after a crash.

C:

Process identity does not identify a stream position.

D:

Creation time does not distinguish processed and unprocessed records.

Question 218

A CodePipeline source action uses a configured CodeConnections connection. The pipeline role cannot use that connection. What permission should be investigated?

  1. S3 PutObject on the production bucket only
  2. Permission to delete the source repository
  3. EC2 instance-profile attachment
  4. codeconnections:UseConnection on the configured connection ARN, using the applicable connection resource prefix

Explanation

Correct Answer

D:

The pipeline service identity needs authorization to use the specific source connection. Check the connection ARN and documented prefix for the resource; broad repository or artifact permissions do not substitute for this integration permission.

Incorrect Answers

A:

Artifact writes cannot authorize access to an external source connection.

B:

Destructive repository permissions do not authorize connection use.

C:

The source action does not obtain its connection permission from an application instance profile.

Question 219

A command should run on hundreds of nodes but no more than ten simultaneously. Which control fits?

  1. MaxConcurrency
  2. A longer command comment
  3. A larger command timeout
  4. MaxErrors alone

Explanation

Correct Answer

A:

Concurrency limits the number of targets executing at once; choose a value consistent with service capacity.

Incorrect Answers

B:

Comments do not control execution scheduling.

C:

Duration limits do not cap parallel targets.

D:

An error threshold limits failure spread, not initial simultaneous execution.

Question 220

A log delivery pipeline through Data Firehose reaches S3 in batches instead of one object per event. What explains this?

  1. Assume successful ingestion means an S3 object must appear for every input record
  2. Treat batching alone as proof of data loss
  3. Expect lower retention to disable buffering
  4. Delivery buffering aggregates records by configured size or time behavior

Explanation

Correct Answer

D:

Batching improves delivery efficiency and introduces expected latency.

Incorrect Answers

A:

The delivery pipeline can aggregate multiple accepted records into a buffered output object.

B:

Delayed grouped delivery can be normal; inspect delivery metrics before inferring missing records.

C:

Storage lifetime does not select the delivery buffer's size and time behavior.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests