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

Domain 4: Monitoring and Logging 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 stream CloudWatch Logs from 30 accounts to a central account for analysis in OpenSearch, in near real time. Which approach fits BEST?

  1. Daily exports of each log group to S3 in each account
  2. Cross-account subscription filters to a central Firehose that feeds OpenSearch — Correct
  3. A Lambda function in each account that reads logs every hour with GetLogEvents
  4. Manual downloads of log files by the operations team each morning

Correct answer

Cross-account subscription filters to a central Firehose that feeds OpenSearch

Explanation

Subscription filters with cross-account destinations stream logs in near real time. Daily exports, hourly polling, and manual downloads are delayed or laborious.

Question 2

A team wants to monitor the availability of a public website and its login flow every 5 minutes from multiple Regions, and alarm when they fail. Which service fits BEST?

  1. CloudWatch RUM
  2. Amazon Inspector
  3. AWS Health Dashboard
  4. CloudWatch Synthetics canaries — Correct

Correct answer

CloudWatch Synthetics canaries

Explanation

Synthetics canaries run scripted checks on a schedule from Regions. RUM measures real users. Health Dashboard shows AWS service events. Inspector scans vulnerabilities.

Question 3

A team wants to track a business metric, such as orders per minute, emitted from Lambda functions without adding latency to each invocation. Which approach fits BEST?

  1. Write each order to a DynamoDB table and count items every minute
  2. Store metrics in the function's /tmp directory and upload them daily
  3. Emit metrics in CloudWatch embedded metric format (EMF) logs — Correct
  4. Call PutMetricData synchronously at the end of every invocation

Correct answer

Emit metrics in CloudWatch embedded metric format (EMF) logs

Explanation

EMF lets CloudWatch extract metrics from logs asynchronously. Synchronous API calls add latency. Counting items or daily uploads are delayed and add cost.

Question 4

A team wants to find the top 10 IP addresses causing the most 4xx errors on its ALB in near real time, broken down by URL. Which feature fits BEST?

  1. AWS Config rules for the ALB's listener settings
  2. CloudTrail Insights for the ALB's API calls
  3. AWS Trusted Advisor checks for the ALB
  4. Contributor Insights rules on the ALB access logs — Correct

Correct answer

Contributor Insights rules on the ALB access logs

Explanation

Contributor Insights finds top contributors from log data. Config, CloudTrail Insights, and Trusted Advisor do not analyze request logs.

Question 5

An organization requires that CloudWatch log groups containing application logs be encrypted with KMS and retained for at least 1 year. Which approach enforces this across accounts?

  1. Config rules for log group encryption and retention, with remediation — Correct
  2. Use CloudTrail Insights to detect unencrypted log groups
  3. Ask teams to configure log groups correctly and review them annually
  4. Use AWS Budgets to track log group storage costs

Correct answer

Config rules for log group encryption and retention, with remediation

Explanation

Config rules with remediation enforce encryption and retention across accounts. Manual reviews, budgets, and Insights do not enforce settings.

Question 6

A company wants to detect anomalous spikes in API error rates across many services automatically and get root cause hints. Which service fits BEST?

  1. AWS License Manager
  2. AWS Artifact
  3. Amazon DevOps Guru — Correct
  4. Amazon Polly

Correct answer

Amazon DevOps Guru

Explanation

DevOps Guru uses ML to detect operational anomalies and suggest causes. Artifact, License Manager, and Polly are unrelated.

Question 7

A company runs an Amazon OpenSearch Service domain for logs. Search performance degrades and the cluster status becomes yellow. Which metric indicates unassigned replica shards?

  1. SearchRate only
  2. FreeStorageSpace only
  3. ClusterStatus.yellow — Correct
  4. CPUUtilization only

Correct answer

ClusterStatus.yellow

Explanation

Yellow status means replica shards are unassigned. Free storage, CPU, and search rate can contribute but do not indicate shard assignment directly.

Question 8

A company's CloudWatch Logs costs are high because applications log every request at DEBUG level. Logs are rarely queried. Which changes reduce cost? (Choose TWO.)

  1. Use the Infrequent Access log class for logs that are rarely queried — Correct
  2. Lower the production log level and sample verbose logs — Correct
  3. Send each log line twice for redundancy
  4. Duplicate every log group into a second Region
  5. Increase retention to never expire for all log groups

Correct answer

Use the Infrequent Access log class for logs that are rarely queried; Lower the production log level and sample verbose logs

Explanation

Less verbose logging and the Infrequent Access class reduce ingestion and storage cost. Duplication and infinite retention increase cost.

Question 9

A company must keep application logs for 7 years at low cost but only needs to search the last 30 days interactively. Which design fits BEST?

  1. Keep all logs in CloudWatch Logs with a 7-year retention setting
  2. 30-day CloudWatch retention plus Firehose to S3 with a Deep Archive lifecycle — Correct
  3. Keep logs only on EC2 instance disks and back them up monthly
  4. Delete logs after 30 days because older logs are rarely needed

Correct answer

30-day CloudWatch retention plus Firehose to S3 with a Deep Archive lifecycle

Explanation

Short CloudWatch retention plus S3 archival with lifecycle rules meets both needs at low cost. Long CloudWatch retention is expensive. Instance disks are not durable. Deleting violates retention.

Question 10

A company needs to know the user experience of its web application, including page load time and JavaScript errors in real browsers. Which service fits BEST?

  1. CloudWatch RUM — Correct
  2. AWS X-Ray
  3. CloudWatch Synthetics
  4. Amazon Inspector

Correct answer

CloudWatch RUM

Explanation

RUM collects real user monitoring data from browsers. Synthetics runs scripted checks. X-Ray traces backend requests. Inspector scans for vulnerabilities.

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