Question 1
Topic: OCI Monitoring
Skill tested: Configure metric-query alarms and route alarm state changes to Notifications.
A payment service publishes a custom metric named QueueDepth in the AcmePayments namespace, with dimension environment=production. Operators need an email notification when the production queue remains above 500 messages for three consecutive one-minute evaluation periods. They must receive a notification when the alarm enters FIRING, and the alarm should return to OK when the condition clears. The metric has regular one-minute samples; no application-side event publishing is available. Which configuration best meets the requirement?
A Monitoring alarm evaluates a metric query over metric streams and changes state when its configured threshold and evaluation criteria are met. Filtering the MQL query by the production dimension prevents other environments from influencing the result; configuring the required consecutive evaluation periods controls persistence, and a Notifications destination delivers the alarm-state message. Events rules do not directly evaluate metric thresholds, and a Notifications topic does not subscribe to metric samples on its own. Logging queries operate on log data, not Monitoring metric streams.