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?
- Daily exports of each log group to S3 in each account
- Cross-account subscription filters to a central Firehose that feeds OpenSearch — Correct
- A Lambda function in each account that reads logs every hour with GetLogEvents
- 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?
- CloudWatch RUM
- Amazon Inspector
- AWS Health Dashboard
- 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?
- Write each order to a DynamoDB table and count items every minute
- Store metrics in the function's /tmp directory and upload them daily
- Emit metrics in CloudWatch embedded metric format (EMF) logs — Correct
- 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?
- AWS Config rules for the ALB's listener settings
- CloudTrail Insights for the ALB's API calls
- AWS Trusted Advisor checks for the ALB
- 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?
- Config rules for log group encryption and retention, with remediation — Correct
- Use CloudTrail Insights to detect unencrypted log groups
- Ask teams to configure log groups correctly and review them annually
- 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?
- AWS License Manager
- AWS Artifact
- Amazon DevOps Guru — Correct
- 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?
- SearchRate only
- FreeStorageSpace only
- ClusterStatus.yellow — Correct
- 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.)
- Use the Infrequent Access log class for logs that are rarely queried — Correct
- Lower the production log level and sample verbose logs — Correct
- Send each log line twice for redundancy
- Duplicate every log group into a second Region
- 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?
- Keep all logs in CloudWatch Logs with a 7-year retention setting
- 30-day CloudWatch retention plus Firehose to S3 with a Deep Archive lifecycle — Correct
- Keep logs only on EC2 instance disks and back them up monthly
- 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?
- CloudWatch RUM — Correct
- AWS X-Ray
- CloudWatch Synthetics
- 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.