Question 210
An external review system must tell a workflow when a long-running task finishes. Which pattern fits?
- A task that returns success before the external work starts
- A static output containing approved
- A supported callback task using a task token
- 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?
- The instance name tag alone
- A log retention setting
- A security group's inbound ports
- 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?
- Update the template and assume existing disks are rewritten
- Update the launch-template version used by the group, then perform a controlled instance refresh
- Terminate the entire fleet simultaneously
- 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?
- Validate and constrain inputs and avoid unsafe command interpolation
- Trust input because the event uses valid JSON
- Concatenate all event text into a root shell command
- 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?
- Stack instance parameter overrides for the exceptions
- Editing only the management account's local file
- Different logical IDs for identical resources
- 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?
- Only the namespace label list
- The previous container logs and pod events
- Only the cluster endpoint URL
- 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?
- An application instance profile authorizes every deployment action
- A successful template validation proves all API permissions
- The action role needs CloudFormation API permission separately from the stack service role
- 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?
- The latest observed sequence number before processing
- Durable shard checkpoints coupled to successful processing
- Only the worker process ID
- 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?
- S3 PutObject on the production bucket only
- Permission to delete the source repository
- EC2 instance-profile attachment
- 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?
- MaxConcurrency
- A longer command comment
- A larger command timeout
- 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?
- Assume successful ingestion means an S3 object must appear for every input record
- Treat batching alone as proof of data loss
- Expect lower retention to disable buffering
- 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.