AWS AWS Monitoring & Operations 5 — Questions and Answers
Question 1: Which AWS X-Ray concept represents a single unit of work performed by a service and is the building block of a trace?
- Annotation
- Segment (Correct answer)
- Subsegment
- Group
Correct answer: Segment
A segment records data about the work done by a single service and contains metadata, timing, and error information for that unit of work.
Question 2: A company needs to monitor AWS resource changes across all accounts in an AWS Organization from a single location. Which setup achieves this?
- Enable CloudTrail in each account separately and export to S3
- Use AWS Config with organization-wide aggregators and a delegated admin account (Correct answer)
- Deploy a custom Lambda in every account to push events to a central SNS topic
- Use Amazon Inspector with organization-wide scanning
Correct answer: Use AWS Config with organization-wide aggregators and a delegated admin account
AWS Config aggregators can collect configuration and compliance data from all accounts in an AWS Organization into a single delegated administrator account.
Question 3: Which CloudWatch metric resolution type allows storing data at 1-second granularity?
- Standard resolution
- High resolution (Correct answer)
- Detailed resolution
- Enhanced resolution
Correct answer: High resolution
High-resolution metrics allow data to be stored and retrieved at 1-second granularity, compared to the standard 1-minute granularity.
Question 4: What is the primary purpose of an AWS Systems Manager Maintenance Window?
- Scheduling patching, updates, and other operational tasks at defined times (Correct answer)
- Blocking all API calls to prevent accidental changes during business hours
- Automating CloudWatch alarm threshold adjustments during off-peak hours
- Reserving EC2 capacity during planned downtime windows
Correct answer: Scheduling patching, updates, and other operational tasks at defined times
Maintenance Windows let you define a schedule for running administrative tasks like patching, updates, and script execution on managed instances.
Question 5: Which CloudWatch Logs Insights query command would you use to sort results by a timestamp field in descending order?
- order by @timestamp desc
- sort @timestamp desc (Correct answer)
- filter @timestamp desc
- dedup @timestamp desc
Correct answer: sort @timestamp desc
The `sort` command in CloudWatch Logs Insights is used to order query results by a field in ascending or descending order.
Question 6: An operations team wants to receive a single alarm notification only after two separate CloudWatch alarms both enter the ALARM state. Which feature enables this?
- SNS fanout
- Composite Alarms (Correct answer)
- Metric Math alarm
- EventBridge rule with multiple sources
Correct answer: Composite Alarms
Composite Alarms evaluate the states of multiple CloudWatch alarms using Boolean logic (AND/OR/NOT) and alarm only when the combined condition is met.
Question 7: Which AWS service provides a unified operational data hub by collecting metrics, logs, and traces and correlating them for full observability?
- AWS CloudTrail
- Amazon CloudWatch (Correct answer)
- AWS X-Ray
- Amazon OpenSearch Service
Correct answer: Amazon CloudWatch
Amazon CloudWatch serves as the central observability platform, aggregating metrics, logs, and (via integration with X-Ray) traces in a single pane of glass.
Which AWS X-Ray concept represents a single unit of work performed by a service and is the building block of a trace?