aws DOP-C02: AWS Certified DevOps Engineer – Professional · Practice questions

Domain 5: Incident and Event Response Practice Questions

Review 10 sample questions with their correct answers and explanations. Sign up free to continue with the full topic quiz.

Sign up free for the full quiz

Question 1

A company wants to automatically restart an EC2-hosted application process when it stops responding, and open an incident if the restart does not fix the problem. Which approach fits BEST?

  1. A larger instance type so that the application process stops failing
  2. An alarm that runs a restart runbook and escalates through Incident Manager — Correct
  3. A cron job on each instance that reboots the instance every hour, whether or not the application is healthy
  4. An SNS email to the operations team every time the alarm fires, with no automation

Correct answer

An alarm that runs a restart runbook and escalates through Incident Manager

Explanation

Alarms can trigger runbooks for automatic remediation, and Incident Manager can escalate unresolved issues. Hourly reboots are disruptive. Email alone is manual. Larger instances do not fix hangs.

Question 2

An EventBridge rule targets a Lambda function, but the function is not invoked, and the rule's FailedInvocations metric increases. What is the MOST likely cause?

  1. The event pattern does not match any events on the bus
  2. The function's resource policy does not allow EventBridge — Correct
  3. The function's memory is set to the minimum value
  4. The function's execution role lacks permission to write logs

Correct answer

The function's resource policy does not allow EventBridge

Explanation

FailedInvocations with matched events usually means the target cannot be invoked, often due to a missing resource policy. An unmatched pattern shows no matches rather than failed invocations. Log permissions and memory do not block invocation.

Question 3

A company wants a Lambda function to run in response to every new object in an S3 bucket, but only for objects under the incoming/ prefix with a .csv suffix. Which configuration fits BEST?

  1. An S3 event notification with prefix and suffix filters for the function — Correct
  2. A CloudTrail trail that sends every S3 data event to the function
  3. An S3 lifecycle rule that invokes the function for each new object
  4. A Lambda function that runs every minute and lists the entire bucket

Correct answer

An S3 event notification with prefix and suffix filters for the function

Explanation

Notification filters limit events to matching keys. Polling is inefficient. Lifecycle rules do not invoke functions. Sending all data events is wasteful.

Question 4

A team uses Lambda to process DynamoDB stream records. A malformed record blocks processing of the shard. Which configuration lets processing continue and preserves the failed record? (Choose TWO.)

  1. Enable bisect batch on function error and set a maximum retry attempts value — Correct
  2. Configure an on-failure destination for the event source mapping — Correct
  3. Disable the stream and enable it again
  4. Increase the function's memory to the maximum
  5. Increase the table's write capacity

Correct answer

Enable bisect batch on function error and set a maximum retry attempts value; Configure an on-failure destination for the event source mapping

Explanation

Bisecting and retry limits isolate and skip bad records, and an on-failure destination keeps details. Memory, toggling the stream, and table capacity do not fix poison records.

Question 5

A team wants to run scheduled tasks, such as nightly cleanup, on ECS without managing EC2 instances. Which approach fits BEST?

  1. EventBridge Scheduler starting ECS tasks on Fargate — Correct
  2. Manual task runs from the ECS console each night
  3. A cron job on a dedicated EC2 instance that is always running
  4. A Lambda function that sleeps until midnight each day

Correct answer

EventBridge Scheduler starting ECS tasks on Fargate

Explanation

Scheduler can start Fargate tasks on a schedule without servers. Always-on instances, sleeping functions, and manual runs are inefficient.

Question 6

A company wants a Lambda function to process failed SQS messages after a bug fix by moving them from the DLQ back to the source queue. Which approach requires the LEAST effort?

  1. Start an SQS DLQ redrive to the source queue — Correct
  2. Increase the source queue's visibility timeout
  3. Delete the DLQ and recreate it with the same name
  4. Write a script that receives and resends each message manually

Correct answer

Start an SQS DLQ redrive to the source queue

Explanation

DLQ redrive moves messages back without custom code. Scripts take more effort. Deleting the DLQ loses messages. Visibility timeout does not move messages.

Question 7

A company wants on-call engineers to be notified in Slack when a CloudWatch alarm changes state, with the ability to run common commands from chat. Which solution fits BEST?

  1. Send alarm emails to a shared inbox that engineers forward to Slack manually
  2. Send alarms to SNS and use Amazon Q Developer in chat applications with Slack — Correct
  3. Use CloudWatch dashboards shared in a Slack message once a day
  4. Have a Lambda function post to a public Slack webhook that anyone can use

Correct answer

Send alarms to SNS and use Amazon Q Developer in chat applications with Slack

Explanation

AWS's chat integration posts alarms to Slack and supports commands with IAM controls. Public webhooks, manual forwarding, and daily dashboards are insecure or slow.

Question 8

A company uses Lambda functions invoked asynchronously by EventBridge. During a downstream outage, events fail and are lost. Which configuration preserves failed events for reprocessing?

  1. Increase the Lambda function timeout to 15 minutes
  2. Delete the EventBridge rule during outages and recreate it later
  3. Target retries with a DLQ on EventBridge, plus Lambda failure destinations — Correct
  4. Set the function's reserved concurrency to 0 during outages

Correct answer

Target retries with a DLQ on EventBridge, plus Lambda failure destinations

Explanation

Target retries with a DLQ and Lambda failure destinations keep failed events. Timeouts do not preserve events. Reserved concurrency of 0 throttles invocations. Deleting rules loses events.

Question 9

A company's on-call engineer needs to run a predefined diagnostic script on a group of EC2 instances during an incident without SSH access. Which approach fits BEST?

  1. Create new instances with the script in user data and compare results
  2. Systems Manager Run Command with a document targeting the instances by tag — Correct
  3. Open port 22 to the internet temporarily and SSH into each instance
  4. Ask the application team to add the diagnostic output to the next release

Correct answer

Systems Manager Run Command with a document targeting the instances by tag

Explanation

Run Command executes scripts on managed instances without SSH. Opening SSH is risky. New instances do not diagnose existing ones. Waiting for a release is too slow.

Question 10

A team needs a quick way to run ad hoc AWS CLI commands in the browser for troubleshooting, with the console user's permissions. Which tool fits BEST?

  1. AWS Systems Manager Run Command on a random instance
  2. An EC2 instance with long-term access keys stored in a profile
  3. AWS CloudShell in the console — Correct
  4. A local terminal using the root user's access keys

Correct answer

AWS CloudShell in the console

Explanation

CloudShell provides a browser shell with the user's credentials. The other options use unsafe credentials or the wrong tool.

Ready for the full quiz?

Create a free QuizAnalyst account to practice the complete question set and save your progress.

Sign up free for the full quiz