Monitoring and Alerting: Application Insights and CloudWatch Interview Questions
261 multiple-choice tech interview questions on Monitoring and Alerting: Application Insights and CloudWatch: metrics, logs and traces, OpenTelemetry, Application Insights and Azure Monitor, CloudWatch, KQL, SLIs and SLOs, actionable alerts. Written for technical phone screens and interview prep, organized by subtopic, with a short explanation for every answer. Learn the 241 key terms with the flashcards first, then test yourself.
Take the practice test · Flashcards · All study tools
What it covers
- 13.1 Cloud monitoring foundations
- 13.2 Application Insights instrumentation
- 13.3 Application Insights experiences and diagnostics
- 13.4 KQL for monitoring queries
- 13.5 Azure Monitor alerting in depth
- 13.6 CloudWatch metrics and alarms
- 13.7 CloudWatch Logs and Logs Insights
- 13.8 AWS tracing, synthetics and app monitoring
- 13.9 SLOs, alert routing and monitoring operations
Key terms
13.1 Cloud monitoring foundations
- Observability
- Ability to understand a system's internal state from its telemetry
- Distributed trace
- A request's path across services, made of spans
- OpenTelemetry
- Vendor-neutral standard and SDKs for traces, metrics and logs
- Structured logging
- Logging events as named fields rather than free text
- Guest metrics
- Measurements from inside the OS, like memory and disk use
- Monitoring responsibility
- The split between provider and customer for watching systems
- Central monitoring account
- One account collecting telemetry from many others
- Data events
- Logs of object-level or data-plane actions, like S3 reads
- Provider-exposed telemetry
- Metrics and logs a managed service publishes for customers
- Ingestion latency
- The delay before telemetry can be queried or alerted on
- Quota monitoring
- Tracking resource use against service limits
- Telemetry attributes
- Labels like env and service attached to data
- Aggregate alerting
- Alerting on a whole group's metrics instead of one host
- Telemetry data residency
- Rules on where logs and traces may be stored
- Database health metrics
- Key measures like CPU, connections, storage and lag
- Balancer vs target errors
- Separating errors made by the load balancer from those returned by backends
- Account security alerts
- Alerts on risky account changes
- Resource events
- Notifications of resource state changes
- SLA limits
- What a provider's service level agreement does and doesn't cover
- Scale-to-zero monitoring
- Watching services that legitimately have no traffic
- Independent monitoring
- Monitoring that doesn't share the failure it's meant to detect
- Control plane logs
- Logs from a managed cluster's API server and related parts
- Native monitoring
- A provider's own monitoring tools and signals
- Slow query log
- A log of queries above a time threshold
13.2 Application Insights instrumentation
- Application Insights
- Azure Monitor's application performance monitoring feature
- KQL
- Kusto Query Language for Azure Monitor and Data Explorer
- Connection string
- Setting naming the resource and ingestion endpoint for Application Insights
- Azure Monitor OpenTelemetry Distro
- Microsoft's packaged OpenTelemetry setup for Application Insights
- Autoinstrumentation
- Collecting telemetry by attaching an agent, without code changes
- Requests and dependencies
- Incoming operations versus outgoing calls your app makes
- Dependency tracking
- Automatic timing of outbound calls like HTTP and SQL
- Cloud role name
- The component name shown in Application Insights views
- Default log filter
- The minimum log level the SDK captures unless changed
- Telemetry processor
- Code that filters or modifies telemetry before sending
- Java agent
- A JAR attached at startup that instruments a Java app
- Browser SDK
- JavaScript that sends page views, AJAX calls and errors
- Custom events
- Named business occurrences sent as telemetry
- Pre-aggregation
- Summarizing metric values in the app before sending
- Adaptive sampling
- Sampling that changes its rate based on volume
- itemCount
- A field telling how many original items a sampled row represents
- Entra ingestion auth
- Requiring signed identities to send telemetry
- Azure Monitor Private Link Scope
- A grouping that lets monitoring traffic use private endpoints
- Environment separation
- Keeping each environment's telemetry apart
- Flush
- Sending buffered telemetry immediately
- customDimensions
- The property bag holding custom key-value data
- host.json
- The Functions configuration file for logging and sampling
- Hosting-agnostic monitoring
- Sending telemetry from any environment
- Worker Service SDK
- The classic SDK package for non-web .NET apps
- Authenticated user ID
- An app-supplied ID linking telemetry to signed-in users
- IP masking
- Dropping client IPs after deriving location
- Ingestion endpoint
- The URL where an SDK sends telemetry
13.3 Application Insights experiences and diagnostics
- Live Metrics
- A real-time stream of key app metrics, not stored
- End-to-end transaction view
- A timeline of one operation across components
- Failures experience
- A view grouping failed requests, dependencies and exceptions
- Performance experience
- A view of operation durations and their breakdowns
- Smart detection
- Machine learning that flags unusual app behavior
- Profiler
- A tool capturing production code-level traces
- Snapshot Debugger
- A tool capturing state at the moment of an exception
- Snapshot access
- Limiting who can view captured variable values
- Anonymous user ID
- A browser cookie ID used to count users
- Funnels
- A view of completion rates across defined steps
- Retention analysis
- Measuring how many users return over time
- User flows
- A diagram of navigation paths between pages and events
- Release annotations
- Deployment markers on telemetry charts
- Custom availability tests
- Availability results sent from your own code
- Standard metrics
- Pre-aggregated metrics stored as time series
- Application Insights Agent
- A tool instrumenting IIS-hosted .NET apps without code changes
- Code Optimizations
- Analysis of profiler data suggesting fixes
- Telemetry export
- Sending telemetry to storage or streams for other use
- Missing telemetry
- Common causes of telemetry not arriving
- Daily cap
- A limit on telemetry ingested per day
- Page view duration
- Browser load time for a page
- Operation ID
- The ID linking all telemetry from one operation
- Role name mismatch
- Different service names splitting one component on the map
- Problem ID
- A key grouping similar exceptions
- Profiler triggers
- Conditions that start a profiling session
- Impact analysis
- Relating performance to user behavior
- Probe traffic
- Automated scans for common weak paths
13.4 KQL for monitoring queries
- extend
- KQL operator adding computed columns
- bin()
- KQL function rounding values into buckets, like hours
- render
- KQL operator choosing a chart type for results
- ago()
- KQL function returning now minus a timespan
- has
- KQL operator matching whole indexed terms
- =~
- KQL case-insensitive string equality
- percentile()
- KQL aggregation returning a value at a given percentile
- dcount()
- KQL approximate count of distinct values
- innerunique
- KQL's default join, deduplicating left keys
- let
- KQL statement binding a name to a value or expression
- parse
- KQL operator extracting fields from strings by pattern
- mv-expand
- KQL operator turning array elements into rows
- make-series
- KQL operator building gap-free time series
- take
- KQL operator returning an arbitrary set of rows
- countif()
- KQL aggregation counting rows that match a condition
- arg_max()
- KQL aggregation returning the row with the max value per group
- Cross-resource query
- Querying data in other resources with app() or workspace()
- union
- KQL operator stacking rows from multiple tables
- Dynamic type
- KQL's JSON-like column type
- Early filtering
- Narrowing time and rows before heavy operators
- search
- KQL operator scanning many tables and columns
- case()
- KQL function returning values by ordered conditions
- materialize()
- KQL function caching a subquery result within one query
- Workspace schema
- Table and column names used in Log Analytics, like AppRequests
- prev()
- KQL function reading a column from the previous row
- Heartbeat
- The table where monitoring agents report they're alive
- series_decompose_anomalies()
- KQL function flagging anomalies in a time series
13.5 Azure Monitor alerting in depth
- Log search alert
- An alert rule that runs a KQL query on a schedule
- Lookback window
- The time range a scheduled alert query covers
- Dimension splitting
- Creating separate alerts per value of a column
- Multi-resource alert
- A metric alert rule covering many resources of one type
- Alert severity
- Sev0 (critical) to Sev4 (verbose) levels on Azure alerts
- Stateful alert
- An alert that tracks fired and resolved states
- Alert user response
- The New, Acknowledged or Closed status people set
- Common alert schema
- A standard JSON payload for all Azure alert types
- Chat integration
- Sending alerts to chat through webhooks or workflows
- Auto-remediation
- Running a fix automatically when an alert fires
- Notification rate limits
- Caps on how often a number receives SMS or calls
- Secure webhook
- A webhook action authenticated with Microsoft Entra ID
- Failing periods
- The number of breaching evaluations needed to fire
- Aggregation granularity
- The period over which a metric is aggregated for an alert
- Absence alert
- An alert on data that stopped arriving
- Azure Monitor Baseline Alerts
- Microsoft's recommended alert rules deployed via policy
- Recommended alert rules
- Suggested alerts you enable from a resource's page
- Alerts as code
- Defining alert rules in infrastructure code
- Severity routing
- Sending alerts to different responders by urgency
- Alert processing rule
- A rule that adds or suppresses actions on fired alerts
- Alert latency
- Time from a problem to the alert firing
- Prometheus rule groups
- Azure resources holding PromQL alerting and recording rules
- Mute actions
- Pausing notifications after an alert fires
- Action group test
- Sending a sample alert through an action group
- Monitoring Contributor
- Azure role for managing monitoring settings and alerts
- Custom properties
- Extra key-value data added to alert payloads
- Change analysis
- Records of property changes on Azure resources
- Log alert measure
- Whether a log alert counts rows or evaluates an aggregated column
- Monitored series
- Each separate time series an alert tracks
13.6 CloudWatch metrics and alarms
- CloudWatch
- AWS monitoring service for metrics, logs and alarms
- Dimensions
- Name-value pairs that identify a CloudWatch metric
- Detailed monitoring
- One-minute EC2 metrics, at extra cost
- High-resolution metric
- A custom metric stored at up to one-second granularity
- Metric retention
- How long and at what resolution metrics are kept
- Percentile statistic
- A CloudWatch statistic like p99 for tail values
- Alarm states
- OK, ALARM and INSUFFICIENT_DATA
- Datapoints to alarm
- M out of N periods that must breach to fire
- Missing data treatment
- How an alarm handles periods with no data
- Composite alarm
- An alarm whose state depends on a rule over other alarms
- Anomaly detection band
- An expected range learned from a metric's history
- Metric math
- Expressions combining metrics into new series
- Metrics Insights
- A SQL-based query engine for CloudWatch metrics
- Embedded metric format
- A JSON log format CloudWatch extracts metrics from
- Metric combinations
- Each unique dimension set counts as its own metric
- Alarm actions
- Actions taken on alarm state changes
- IteratorAge
- Lambda metric for how old the last stream record processed was
- Cross-account dashboards
- Dashboards that show metrics from many accounts and regions
- Metric stream
- Continuous export of CloudWatch metrics through Firehose
- StatsD listener
- A CloudWatch agent feature accepting StatsD metrics
- Evaluation periods
- How many recent periods an alarm considers
- Throttles
- Lambda metric counting invocations refused for concurrency
- EstimatedCharges
- CloudWatch metric of estimated AWS charges
- Metric expiry
- Metrics disappear after retention ends with no new data
- Managed alarms
- Alarms created and owned by another service
- Alarm recommendations
- Suggested alarms for common service metrics
- Search expression
- A dashboard query that matches metrics dynamically
- Maximum statistic
- The highest value in a period
13.7 CloudWatch Logs and Logs Insights
- Log stream
- A sequence of log events from one source inside a log group
- Log retention setting
- How long a log group keeps events
- Metric filter
- A rule turning matching log events into a CloudWatch metric
- Subscription filter
- A rule streaming matching log events to another service
- Logs Insights query
- A pipe-based query over CloudWatch log events
- stats
- Logs Insights command for aggregations
- parse (Logs Insights)
- Command extracting fields from text with globs or regex
- Scanned data
- Logs Insights charges per GB scanned
- Live Tail
- Interactive real-time streaming of log events
- Infrequent Access log class
- A cheaper log class with fewer features
- Log data protection
- Policies that detect and mask sensitive data in logs
- Export task
- A batch copy of log data to S3
- Log centralization
- Sending logs from many accounts to one account
- Contributor Insights
- A feature ranking top-N contributors from logs
- pattern
- Logs Insights command clustering lines into common patterns
- Lambda log group
- The default CloudWatch log group for a function
- Advanced logging controls
- Lambda settings for log format, level and group
- Log group KMS key
- A customer managed key encrypting a log group
- Query languages
- Logs Insights QL, OpenSearch PPL and SQL
- Field index
- An index on a log field that speeds filtering
- FireLens
- ECS log routing using Fluent Bit or Fluentd
- Discovered fields
- System fields like @timestamp and @message
- JSON field discovery
- Logs Insights finding fields in JSON events
- Log class
- Standard or Infrequent Access, set at creation
- Metric filter dimension
- Using a log field value as a metric dimension
- Forward-only filters
- Metric filters don't process past events
- Subscription filter limit
- The cap on subscription filters per log group
- Log archive
- Long-term log storage in S3 queried with Athena
13.8 AWS tracing, synthetics and app monitoring
- Subsegment
- A finer-grained timed piece of work within an X-Ray segment
- Annotations
- Indexed key-value pairs on X-Ray traces
- Sampling rule
- Settings deciding which requests X-Ray traces
- AWS Distro for OpenTelemetry
- AWS's supported OpenTelemetry build
- X-Amzn-Trace-Id
- AWS's trace context header
- Active tracing
- Lambda setting that sends traces to X-Ray
- Stage tracing
- X-Ray tracing turned on per API Gateway stage
- Trace map
- A graph of services and calls built from traces
- Transaction Search
- Storing all spans as structured logs for search
- Application Signals
- CloudWatch app performance monitoring with SLOs
- SLO measurement
- Period-based or request-based SLO calculation
- Synthetics canary
- A scripted check that runs on a schedule
- Canary artifacts
- Screenshots, logs and HAR files from canary runs
- VPC canary
- A canary running inside a VPC
- CloudWatch RUM
- Real user monitoring for web apps
- Container Insights
- CloudWatch monitoring for container clusters
- Lambda Insights
- An extension collecting runtime-level Lambda metrics
- Internet Monitor
- Monitoring of internet health affecting your app's users
- Cross-account observability
- Linking source accounts to a central monitoring account
- AWSTraceHeader
- SQS system attribute carrying X-Ray trace context
- CloudWatch investigations
- AI-assisted troubleshooting in CloudWatch
- Database Insights
- CloudWatch monitoring for database fleets and load
- Visual monitoring
- Comparing canary screenshots with a baseline
- X-Ray Insights
- Anomaly detection over trace data
- Filter expression
- X-Ray query syntax for finding traces
- SuccessPercent
- Synthetics metric for the share of passing canary runs
- Session sample rate
- The share of user sessions RUM records
- X-Ray group
- A named set of traces defined by a filter expression
13.9 SLOs, alert routing and monitoring operations
- SLI
- Service level indicator: a measured reliability metric
- SLO
- Service level objective: an internal target for an SLI
- Error budget
- Allowed unreliability under an SLO
- Health organizational view
- AWS Health events aggregated across an organization
- Table-level RBAC
- Access control on individual Log Analytics tables
- Event Hubs export
- Streaming Azure telemetry through Event Hubs
- Grafana data sources
- Connections letting Grafana query many backends
- Fault injection testing
- Causing controlled failures to validate monitoring
- Actions suppressor
- An alarm that mutes a composite alarm's actions
- Alarm-based rollback
- Stopping and reverting a deployment when alarms fire
- Resource-context access
- Access to log data based on permissions on the resources
- DaysToExpiry
- ACM metric for days left before a certificate expires
- Azure Monitor workspace
- The store for Azure Monitor managed Prometheus metrics
- Single alert source
- Keeping each alert rule in one system
- Interruption notice
- Two-minute warning before a spot instance is reclaimed
- Dashboard sharing
- Giving outside viewers access to CloudWatch dashboards
- Systems Manager Automation
- AWS runbooks that perform operational steps
- Availability SLI
- The share of requests served successfully
- TargetResponseTime
- ALB metric for time targets take to respond
- SLO buffer
- Keeping internal targets tighter than contractual ones
- Alarm tags
- Labels like team and severity on alarms
- Activity log retention
- The default 90-day retention for Azure control-plane events
- OpsCenter
- Systems Manager hub for operational work items
Sample practice questions
What are the three classic pillars of observability?
- CPU, memory and disk
- Alerts, dashboards and tickets
- Dev, test and prod
- Metrics, logs and traces
Answer: D. Metrics, logs and traces Metrics show trends cheaply, logs give detail about events, and traces follow a request across services.
What is Application Insights?
- A log analysis tool that only works with Azure virtual machines
- Azure Monitor's APM feature for requests, dependencies and exceptions
- A monthly billing report broken down by Azure resource group
- A container registry that stores images for Azure deployments
Answer: B. Azure Monitor's APM feature for requests, dependencies and exceptions New apps should use the Azure Monitor OpenTelemetry Distro to send data to Application Insights.
What is the Application Insights application map?
- A view of components and dependencies with volumes, failures and latency
- A geographic map showing where the application's users are located
- A list of the Azure regions where the application is deployed
- A network diagram of the virtual networks and their peerings
Answer: A. A view of components and dependencies with volumes, failures and latency It is built from distributed tracing data across instrumented services.
What language is used to query Azure Monitor logs and Application Insights?
- Transact-SQL (T-SQL)
- Kusto Query Language (KQL)
- Prometheus PromQL
- GraphQL queries
Answer: B. Kusto Query Language (KQL) For example: `requests | where success == false | summarize count() by bin(timestamp, 5m)`.
Which Azure Monitor alert type runs a KQL query on a schedule?
- A metric alert with static thresholds
- A log search alert
- A Service Health alert
- An activity log alert
Answer: B. A log search alert It fires when the query's results meet the condition you set.
What is Amazon CloudWatch?
- AWS's audit log of every API call made in an account
- AWS's managed DNS service for domains and routing
- AWS's tool for tracking and forecasting costs
- AWS's service for metrics, logs, alarms and dashboards
Answer: D. AWS's service for metrics, logs, alarms and dashboards CloudTrail is the audit log of API activity; CloudWatch handles operational monitoring.
Which AWS feature lets you query CloudWatch Logs interactively with a purpose-built query language?
- AWS Config, with rules
- Amazon Inspector findings
- CloudWatch Logs Insights
- AWS Budgets reports
Answer: C. CloudWatch Logs Insights Example: `fields @timestamp, @message | filter @message like /ERROR/ | sort @timestamp desc | limit 20`.
Which AWS service provides distributed tracing?
- Amazon Athena, querying logs in S3
- AWS Shield, inspecting request paths
- AWS Glue, cataloging trace data
- AWS X-Ray, often fed via OpenTelemetry
Answer: D. AWS X-Ray, often fed via OpenTelemetry CloudWatch Application Signals builds APM views on top of this tracing data.
What are Prometheus and Grafana commonly used for?
- Prometheus stores application logs; Grafana runs containers in production
- Both of them are cloud billing tools for tracking spend by team
- Prometheus scrapes and stores metrics; Grafana dashboards and alerts on them
- They're CI/CD systems for building and deploying container images
Answer: C. Prometheus scrapes and stores metrics; Grafana dashboards and alerts on them Azure Monitor managed service for Prometheus and Azure Managed Grafana offer managed versions.
How does monitoring differ from observability?
- They're identical terms, used interchangeably by vendors and teams
- Monitoring checks known failures; observability lets you probe unknown ones
- Observability only applies to front ends, never to back-end services
- Monitoring requires distributed tracing, while observability doesn't
Answer: B. Monitoring checks known failures; observability lets you probe unknown ones High-cardinality, correlated telemetry is what makes a system observable.
More Cloud and DevOps
- Cloud Fundamentals: IaaS, PaaS, SaaS and Shared Responsibility
- Azure Core Services
- AWS Core Services
- Google Cloud Basics
- Serverless: Azure Functions and AWS Lambda
- Containers and Docker
- Kubernetes
- Infrastructure as Code: Terraform and Bicep
- CI/CD Pipelines: GitHub Actions and Azure DevOps
- Networking: DNS, TCP/IP, Load Balancers and VPNs
- Cloud Identity and Access: Entra ID, IAM and RBAC
- Secrets Management and Key Vault
- Cloud Cost Management