Question 10

A supported EBS-backed EC2 instance outside an Auto Scaling group must recover from underlying host failure while retaining its instance identity. CloudWatch action-based recovery is supported for this configuration. Which alarm and action should operations configure?

  1. An alarm on StatusCheckFailed_Instance that terminates the instance.
  2. A CPUUtilization alarm that launches an unrelated replacement instance.
  3. An alarm that reboots the guest whenever network traffic falls.
  4. An alarm on StatusCheckFailed_System that performs EC2 recovery.

Explanation

Correct Answer

D:

The system check detects infrastructure problems. Recovery attempts to move the supported instance to healthy hardware while preserving its identity; applications must tolerate loss of in-memory state.

Incorrect Answers

A:

The instance check concerns the guest environment. Termination also destroys the running instance identity rather than recovering it.

B:

CPU activity does not specifically identify host failure, and launching a separate instance does not preserve the original instance identity.

C:

A guest reboot targets operating-system recovery. It does not supply the host-migration behavior required for infrastructure failure.

Question 11

A regional recovery design keeps a complete application stack running at reduced capacity in another Region, with ongoing data replication. Recovery tests increase capacity and redirect users without first deploying the application tier. Which strategy does this describe?

  1. Warm standby.
  2. Backup and restore.
  3. Pilot light with only core data services active.
  4. Multi-Region active/active.

Explanation

Correct Answer

A:

A functional but scaled-down environment is maintained continuously. Failover primarily requires scaling and traffic changes, with tested replication and recovery procedures determining actual objectives.

Incorrect Answers

B:

Backup and restore reconstructs the environment from saved data and deployment definitions. It does not keep the complete application running in advance.

C:

A data-focused pilot light requires additional application infrastructure to be activated or deployed. The stem explicitly keeps that tier operational.

D:

Active/active normally serves production traffic from multiple sites. The second Region here remains a reduced-capacity recovery environment until failover.

Question 12

At noon, an engineer creates a CloudWatch Logs metric filter on an existing Standard-class log group to count payment failures. Logs from the morning contain matching events, but the new metric has no morning data. What explains this?

  1. The log group must be changed to Infrequent Access.
  2. The filter requires an alarm before it publishes any metric data.
  3. Metric filters process matching events after creation rather than backfilling historical logs.
  4. Increasing log retention automatically republishes the older matching events as metrics.

Explanation

Correct Answer

C:

Stored historical matches are not retroactively converted by a newly created filter. Historical analysis requires a separate query or explicitly designed backfill process.

Incorrect Answers

A:

Metric filters are supported in the Standard log class. Moving away from that class does not enable historical processing.

B:

An alarm evaluates published metric data. It is not a prerequisite for the filter to create data points.

D:

Retention governs how long logs remain available. Extending it does not replay events through a new metric filter.

Question 13

Two existing CloudWatch alarms detect high latency and elevated server errors. Operations wants one notification only when both are in ALARM, while keeping the underlying alarms available for diagnosis. Which configuration meets this requirement?

  1. Attach the same SNS action to both existing alarms.
  2. Create a composite alarm using ALARM(Latency) AND ALARM(Errors), move the notification action there, and remove it from the underlying alarms.
  3. Create a composite alarm using ALARM(Latency) OR ALARM(Errors).
  4. Increase both existing thresholds until independent notifications become rare.

Explanation

Correct Answer

B:

The Boolean expression requires simultaneous alarm states. Keeping notification actions only on the composite avoids separate notifications from the component alarms.

Incorrect Answers

A:

Each alarm would still publish independently. Sharing a notification destination does not require both states to be true.

C:

An OR expression triggers when either condition holds, which is broader than the requested joint failure signal.

D:

Changing thresholds alters detection sensitivity. It does not express the required relationship between the two alarm states.

Question 14

A security processor needs the content of matching new events from a Standard-class CloudWatch log group delivered to a Lambda function in near real time. Counts alone are insufficient. Which feature should be configured?

  1. A metric filter publishing one for each match.
  2. A scheduled export task as the streaming transport.
  3. A CloudWatch metric stream for the log group.
  4. A log subscription filter with the Lambda function as its authorized destination.

Explanation

Correct Answer

D:

Subscriptions forward matching incoming log events to supported destinations. The receiver must decode the delivered payload, and destination permissions and processing capacity must be configured.

Incorrect Answers

A:

A metric filter extracts numeric observations. It does not deliver the matching log event payload to the processor.

B:

Exports support bulk movement of stored logs rather than continuous delivery of matching incoming events to Lambda.

C:

Metric streams carry metric updates, not the underlying application log records needed for content inspection.

Question 15

An EventBridge rule invokes a remediation target. Retriable delivery failures sometimes outlast the target retry policy. The team needs failed events retained for investigation after retries end. Which configuration addresses this delivery failure?

  1. Configure a supported SQS dead-letter queue on the rule target and authorize EventBridge to send messages to it.
  2. Configure only a dead-letter queue inside the target application after it receives an event.
  3. Increase retries and assume events will then be retained indefinitely.
  4. Disable the rule whenever the target becomes unavailable.

Explanation

Correct Answer

A:

The target-level DLQ captures events EventBridge cannot deliver after the applicable failure handling. Queue permissions are necessary for retention to work.

Incorrect Answers

B:

An application-side queue cannot capture an event that never reaches that application. The failure boundary is before target processing.

C:

Retries provide a bounded delivery window. Without a DLQ, exhausted delivery attempts can result in dropped events rather than indefinite retention.

D:

Disabling the rule stops matching delivery but does not preserve previously undelivered events. It is not a substitute for a failure destination.

Question 16

A Systems Manager Automation runbook contains a nonessential diagnostic wait step. If it times out, execution must branch to collectFallback, and this timeout alone must not make the overall execution fail. Which step properties are required? Choose TWO.

  1. Set onFailure to Abort.
  2. Set isCritical to true.
  3. Set onFailure to step:collectFallback.
  4. Set isCritical to false.
  5. Increase maxAttempts without changing failure handling.

Explanation

Correct Answers

C:

The failure route directs control to the named fallback step when the action times out. The referenced step must exist in the runbook.

D:

Marking the action noncritical prevents its timeout alone from determining failure of the overall automation. Other critical failures can still affect the result.

Incorrect Answers

A:

Aborting ends execution instead of taking the fallback path. It contradicts the requested continuation behavior.

B:

A critical step can affect the overall execution result when it fails. That conflicts with treating this diagnostic timeout as nonessential.

E:

Additional attempts change retry behavior but do not define the required branch or remove the step's critical status.

Question 17

An ECS service using the rolling deployment controller has desiredCount 1, minimumHealthyPercent 100, and maximumPercent 100. A healthy old task is running, cluster capacity is available, but an update cannot start or stop tasks. What preserves availability while unblocking deployment?

  1. Reduce the desired count to zero temporarily.
  2. Increase maximumPercent to 200 while retaining minimumHealthyPercent at 100.
  3. Lower minimumHealthyPercent to zero and leave maximumPercent at 100.
  4. Restart the ECS agent without changing deployment limits.

Explanation

Correct Answer

B:

The revised upper bound permits a second task to start before the old task stops. The unchanged lower bound keeps one healthy task required during the rollout.

Incorrect Answers

A:

Scaling to zero removes the running service. It abandons the explicit availability constraint rather than enabling overlap.

C:

This permits stopping the old task first, but a single-task service could then have no healthy task. It does not preserve availability.

D:

The configured bounds allow neither starting above one task nor stopping below one healthy task. Restarting the agent does not change that arithmetic.

Question 18

A role has an identity policy allowing s3:GetObject and s3:PutObject on one bucket. Its permissions boundary allows only s3:GetObject there. No other policies grant or deny access. What is the effective result?

  1. Both operations are allowed because the identity policy grants them.
  2. Neither operation is allowed because boundaries must contain explicit denies.
  3. Only GetObject is allowed; the boundary limits rather than grants identity permissions.
  4. Only PutObject is allowed because the boundary transfers read access elsewhere.

Explanation

Correct Answer

C:

The intersection contains read access only. Adding PutObject to the identity policy again cannot overcome the boundary's narrower allowance.

Incorrect Answers

A:

Identity-based permissions are constrained by the boundary. An action omitted from its allowed maximum is not restored by the identity policy.

B:

A boundary can define an allowed maximum without listing explicit denies. GetObject is included in both relevant policies.

D:

A boundary does not redirect permissions to another identity or resource. Its read allowance participates in evaluating this role's access.

Question 19

An administrator attaches an SCP allowing ec2:DescribeInstances throughout a member account's OU. A new IAM role in that account still cannot call the API because it has no identity permissions. Other guardrails permit the operation. What is missing?

  1. A second copy of the same allow statement in the SCP.
  2. Use of the management-account root credentials by the application.
  3. A permissions boundary alone that allows the API.
  4. An identity policy granting the role ec2:DescribeInstances.

Explanation

Correct Answer

D:

The role needs an actual grant as well as permission under applicable guardrails. Here the missing identity policy explains the denied request.

Incorrect Answers

A:

Repeating an organizational allowance does not grant an IAM role permission. SCPs set limits within which grants can operate.

B:

Using highly privileged credentials from another account is unnecessary and does not repair the intended member-account role's authorization.

C:

Boundaries also limit identity permissions rather than supply them. An allowance in a boundary cannot replace the missing grant.

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.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests