Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
You're offline
Unit 6 MCQsUnderstanding of Monitoring, Logging, Security & DevOps Best Practices
Which observability pillar consists of numeric measurements collected over time?
Not quite. Try another option.
Answer: Metrics
Metrics are numeric measurements, such as CPU usage or request counts, collected over time.
Question 12 of 60 · Introduction to DevSecOps · Easy
What is the main goal of DevSecOps?
Not quite. Try another option.
Answer: Integrating security into the DevOps process
DevSecOps integrates security practices into every stage of the DevOps lifecycle rather than adding them at the end.
Question 13 of 60 · Introduction to DevSecOps · Easy
In DevSecOps, security is best described as being handled at which stage?
Not quite. Try another option.
Answer: Throughout the entire development lifecycle
DevSecOps applies the principle of 'shift-left', embedding security across all stages of development.
Question 14 of 60 · Introduction to Site Reliability Engineering (SRE) · Easy
What does the acronym SRE stand for?
Not quite. Try another option.
Answer: Site Reliability Engineering
SRE stands for Site Reliability Engineering, a discipline focused on system reliability using software engineering practices.
Question 15 of 60 · Introduction to Site Reliability Engineering (SRE) · Easy
Which company originally introduced the concept of Site Reliability Engineering?
Not quite. Try another option.
Answer: Google
Site Reliability Engineering was pioneered by Google to apply software engineering to operations and reliability.
Question 16 of 60 · DevOps Best Practices · Easy
Which of the following is a widely recommended DevOps best practice?
Not quite. Try another option.
Answer: Automating repetitive tasks
Automation of repetitive tasks reduces errors, saves time, and is a core DevOps best practice.
Question 17 of 60 · DevOps Best Practices · Easy
Which practice encourages frequent, small code changes in DevOps?
Not quite. Try another option.
Answer: Continuous Integration
Continuous Integration promotes frequent, small code merges with automated testing to catch issues early.
Question 18 of 60 · Real Industry Case Studies: Google SRE, Netflix Chaos Engineering · Easy
What is Netflix's Chaos Engineering primarily used for?
Not quite. Try another option.
Answer: Testing system resilience by injecting failures
Chaos Engineering deliberately introduces failures to test how well systems recover and remain resilient.
Question 19 of 60 · Real Industry Case Studies: Google SRE, Netflix Chaos Engineering · Easy
Which famous tool did Netflix create for Chaos Engineering?
Not quite. Try another option.
Answer: Chaos Monkey
Netflix created Chaos Monkey, a tool that randomly terminates instances to test system resilience.
Question 20 of 60 · Future of DevOps: GitOps, AIOps, NoOps · Easy
What is the core idea behind GitOps?
Not quite. Try another option.
Answer: Using Git as the single source of truth for infrastructure and deployments
GitOps uses Git repositories as the single source of truth to manage infrastructure and application deployments.
Question 21 of 60 · Need for Monitoring in DevOps · Medium
A team notices that their application meets all uptime targets but users still complain about slow checkout times during peak hours. Which monitoring gap does this scenario most directly highlight?
Not quite. Try another option.
Answer: Relying only on availability metrics while ignoring performance and latency metrics
Uptime alone does not capture user experience. Monitoring must include latency and performance metrics to detect degradation that uptime checks miss.
Question 22 of 60 · Monitoring Tools: Prometheus & Grafana (overview) · Medium
In a Prometheus-based setup, an engineer wants to scrape metrics from a short-lived batch job that exits before Prometheus can poll it. Which component should be used?
Not quite. Try another option.
Answer: Pushgateway
Prometheus uses a pull model, so ephemeral jobs push their metrics to the Pushgateway, which Prometheus then scrapes.
Question 23 of 60 · Monitoring Tools: Prometheus & Grafana (overview) · Medium
A team uses Prometheus for data collection and Grafana for visualization. Which statement correctly describes the division of responsibility?
Not quite. Try another option.
Answer: Prometheus stores and queries time-series data while Grafana renders dashboards from that data
Prometheus is the metrics database and query engine; Grafana connects to it as a data source and visualizes the results.
Question 24 of 60 · Monitoring Tools: Prometheus & Grafana (overview) · Medium
Which PromQL expression correctly calculates the per-second rate of HTTP requests over the last 5 minutes for a counter named http_requests_total?
Not quite. Try another option.
Answer: rate(http_requests_total[5m])
rate() computes the per-second average rate of increase of a counter over the specified time window, making it ideal for request-rate calculations.
Question 25 of 60 · Logging Fundamentals: ELK Stack (Elasticsearch, Logstash, Kibana) · Medium
In the ELK stack, an engineer needs to parse raw unstructured log lines, extract fields, and enrich them before storage. Which component is primarily responsible for this?
Not quite. Try another option.
Answer: Logstash
Logstash ingests, parses, transforms, and enriches log data (often using filters like grok) before sending it to Elasticsearch for indexing.
Question 26 of 60 · Logging Fundamentals: ELK Stack (Elasticsearch, Logstash, Kibana) · Medium
A team wants a lightweight agent installed on hundreds of servers to forward logs to Logstash without heavy processing. Which tool best fits this requirement?
Not quite. Try another option.
Answer: Filebeat
Filebeat is a lightweight shipper from the Beats family designed to forward logs efficiently with minimal resource usage.
Question 27 of 60 · Logging Fundamentals: ELK Stack (Elasticsearch, Logstash, Kibana) · Medium
Which role does Elasticsearch play within the ELK stack?
Not quite. Try another option.
Answer: Distributed search and analytics engine that indexes and stores log data
Elasticsearch stores and indexes the data, enabling fast full-text search and analytics that Kibana then visualizes.
Question 28 of 60 · Observability: Metrics, Logs, Traces · Medium
A microservice request passes through five services and fails intermittently. Which observability pillar is most useful for pinpointing exactly which service in the request path introduced the latency?
Not quite. Try another option.
Answer: Distributed traces
Traces follow a single request across services, showing timing at each hop, which is ideal for locating where latency or failure occurs.
Question 29 of 60 · Observability: Metrics, Logs, Traces · Medium
Which statement best distinguishes metrics from logs in an observability strategy?
Not quite. Try another option.
Answer: Metrics are numeric aggregates efficient for trends, while logs are discrete event records rich in detail
Metrics are compact numeric time-series good for trends and alerts; logs are detailed event records useful for root-cause investigation.
Question 30 of 60 · Observability: Metrics, Logs, Traces · Medium
A team says their system is "monitored" but they cannot explain unexpected new failure modes without adding new code. What does this indicate about their setup?
Not quite. Try another option.
Answer: They have monitoring but lack true observability into unknown-unknowns
Monitoring watches known conditions; observability lets you ask new questions about unforeseen issues without shipping new code. This team lacks the latter.
Question 31 of 60 · Introduction to DevSecOps · Medium
Which practice best embodies the "shift-left" principle of DevSecOps?
Not quite. Try another option.
Answer: Running automated security scans within the CI pipeline on every commit
Shift-left means integrating security early and continuously. Automated scans on each commit catch vulnerabilities before they reach production.
Question 32 of 60 · Introduction to DevSecOps · Medium
A pipeline scans source code for vulnerabilities without executing it, analyzing the code structure directly. Which type of testing is this?
SAST analyzes source code or binaries without running the application, while DAST tests a running application from the outside.
Question 33 of 60 · Introduction to Site Reliability Engineering (SRE) · Medium
A service has an SLO of 99.9% availability over 30 days. Roughly how much error budget (allowed downtime) does this permit in that period?
Not quite. Try another option.
Answer: About 43 minutes
99.9% of 30 days allows 0.1% downtime. minutes of error budget.
Question 34 of 60 · Introduction to Site Reliability Engineering (SRE) · Medium
In SRE, what is the primary purpose of an error budget?
Not quite. Try another option.
Answer: To balance reliability with the pace of feature releases
An error budget quantifies acceptable unreliability, letting teams ship features until the budget is spent, then prioritize stability.
Question 35 of 60 · Introduction to Site Reliability Engineering (SRE) · Medium
Which pairing correctly orders these SRE reliability terms from customer commitment to internal target to measured value?
Not quite. Try another option.
Answer: SLA → SLO → SLI
An SLA is the external contract, an SLO is the internal target usually stricter than the SLA, and an SLI is the actual measured indicator.
Question 36 of 60 · DevOps Best Practices · Medium
A team commits small changes frequently to a shared branch and runs automated builds and tests on each commit. Which DevOps practice are they primarily following?
Not quite. Try another option.
Answer: Continuous Integration
Continuous Integration involves merging small changes frequently with automated builds and tests to catch integration issues early.
Question 37 of 60 · DevOps Best Practices · Medium
Why is treating infrastructure as version-controlled code (IaC) considered a DevOps best practice?
Not quite. Try another option.
Answer: It makes environments reproducible, auditable, and consistent across stages
IaC lets infrastructure be versioned, reviewed, and recreated reliably, reducing configuration drift and manual errors.
Question 38 of 60 · Real Industry Case Studies: Google SRE · Medium
Google SRE caps the amount of manual, repetitive operational work engineers do so they can focus on engineering. What is this repetitive work called?
Not quite. Try another option.
Answer: Toil
Google defines toil as manual, repetitive, automatable operational work. SRE aims to keep toil below a threshold (often ~50%) to preserve engineering time.
Question 39 of 60 · Real Industry Case Studies: Netflix Chaos Engineering · Medium
Netflix's Chaos Monkey randomly terminates production instances. What is the main engineering goal of this practice?
Not quite. Try another option.
Answer: To verify that systems are resilient and can tolerate failures gracefully
Chaos Monkey deliberately injects failures to expose weaknesses, ensuring the system degrades gracefully and recovers automatically.
Question 40 of 60 · Future of DevOps: GitOps, AIOps, NoOps · Medium
In a GitOps workflow, how is the desired state of infrastructure and applications typically applied to a cluster?
Not quite. Try another option.
Answer: A controller continuously reconciles the cluster to match declarations stored in a Git repository
GitOps uses Git as the single source of truth; an automated agent (e.g., Argo CD or Flux) reconciles the live state to match the repository.
Question 41 of 60 · Monitoring Tools: Prometheus & Grafana (overview) · Hard
In a Prometheus setup scraping 5000 targets every 15s, an SRE observes that rate(http_requests_total[1m]) produces erratic spikes while rate(http_requests_total[5m]) is smooth. What is the most accurate explanation?
Not quite. Try another option.
Answer: The 1m window contains too few scrape samples, making the rate sensitive to individual sample jitter and counter resets
With a 15s scrape interval, a 1m window holds only ~4 samples, so rate() extrapolation is highly sensitive to timing jitter. A 5m window (~20 samples) averages over more data, smoothing the result. This is a fundamental sampling trade-off, not a client-side or discard behavior.
Question 42 of 60 · Observability: Metrics, Logs, Traces · Hard
A team has metrics, logs, and distributed traces but still cannot answer why a specific user's request was slow. Which gap in their observability practice is the most likely root cause?
Not quite. Try another option.
Answer: Traces and logs are not correlated via a shared context such as a propagated trace/span ID
The three pillars only deliver value when linked. Without a propagated trace/span ID injected into logs, you cannot pivot from a slow trace to the exact log lines for that request. High per-user metric cardinality is actually an anti-pattern, and log format alone is not the blocker.
Question 43 of 60 · Logging Fundamentals: ELK Stack (Elasticsearch, Logstash, Kibana) · Hard
During a traffic surge, Logstash falls behind and Elasticsearch shows rejected bulk requests. Which architectural change best addresses back-pressure without dropping logs?
Not quite. Try another option.
Answer: Insert a durable buffer such as Kafka or Redis between shippers and Logstash to decouple ingestion from indexing
A message queue absorbs bursts and provides durability, letting Logstash and Elasticsearch consume at a sustainable rate. Over-provisioning workers past CPU count causes contention, permanently disabling replicas risks data loss, and Kibana placement does not affect ingestion throughput.
Question 44 of 60 · Introduction to Site Reliability Engineering (SRE) · Hard
A service has an SLO of 99.9% availability over 30 days. After 12 days it has already consumed 80% of its error budget. According to SRE principles, what is the correct action?
Not quite. Try another option.
Answer: Freeze risky feature releases and prioritize reliability work until the budget recovers
Error budgets govern the pace of change. Burning 80% in 40% of the window signals excessive risk, so SRE prescribes slowing releases and investing in reliability. Raising the SLO hides the problem, and chasing 100% availability contradicts the purpose of an error budget.
Question 45 of 60 · Introduction to DevSecOps · Hard
A pipeline runs SAST, DAST, SCA, and secrets scanning. A subtle vulnerability arises from how two independently-safe microservices interact at runtime under load. Which control is most likely to catch it?
Not quite. Try another option.
Answer: DAST and runtime/IAST testing against a deployed, integrated environment
Emergent runtime interaction flaws are invisible to static analysis of individual services. DAST/IAST exercise the running, integrated system and can surface behavior that only appears under real execution and load. SAST and SCA inspect code/dependencies in isolation.
Question 46 of 60 · Netflix Chaos Engineering · Hard
Which statement best captures the core scientific discipline that distinguishes chaos engineering from simply 'breaking things in production'?
Not quite. Try another option.
Answer: You form a hypothesis about steady-state behavior, then inject failure to test whether that steady state holds
Chaos engineering is empirical: define a measurable steady state, hypothesize it will persist through a fault, minimize blast radius, and validate. Random maximal destruction, staging-only scope, or disabling monitoring all violate its principles of controlled, observable experimentation.
Question 47 of 60 · Future of DevOps: GitOps, AIOps, NoOps · Hard
In a GitOps model using a pull-based reconciliation agent, an operator manually runs kubectl scale to increase replicas during an incident. What happens and why?
Not quite. Try another option.
Answer: The agent detects drift from the Git-declared state and reverts the replica count back
GitOps treats Git as the single source of truth and continuously reconciles live state to match it. A manual kubectl change is drift and will be reverted. To make it stick, the operator must commit the change to Git.
Question 48 of 60 · Monitoring Tools: Prometheus & Grafana (overview) · Hard
An engineer creates a label user_id on a Prometheus metric to track per-user latency across millions of users. Why is this considered a serious anti-pattern?
Not quite. Try another option.
Answer: It causes a cardinality explosion, creating a separate time series per label combination and overwhelming memory
Each unique label-value combination is a distinct time series. High-cardinality labels like user_id multiply series into the millions, exhausting Prometheus memory and query performance. Per-user detail belongs in logs or traces, not metric labels.
Question 49 of 60 · Google SRE · Hard
Google's SRE model caps operational 'toil' at roughly 50% of an SRE's time. What is the primary strategic reason for this ceiling?
Not quite. Try another option.
Answer: It guarantees engineers have time for automation and engineering work that reduces future toil
The 50% cap protects engineering capacity so SREs can automate away repetitive manual work rather than being consumed by it. Unchecked toil scales linearly with growth; investing in engineering breaks that cycle. It is not a legal rule or an uptime metric.
Question 50 of 60 · Observability: Metrics, Logs, Traces · Hard
A system emits 10 million spans/hour, and storing all of them is cost-prohibitive. The team wants to keep traces of slow or errored requests. Which sampling strategy fits best?
Not quite. Try another option.
Answer: Tail-based sampling, which decides after a trace completes based on latency or error attributes
Tail-based sampling buffers spans and makes retention decisions once the full trace is known, letting you keep all slow/errored traces while dropping normal ones. Head-based and uniform sampling decide before the outcome is visible, so they cannot selectively preserve interesting traces.
Question 51 of 60 · Introduction to Site Reliability Engineering (SRE) · Hard
Consider the relationship between availability nines and downtime. Which pairing of monthly (30-day) allowable downtime is correct?
A 30-day month has minutes. At 99.9%, allowed downtime is min. Each additional nine reduces this tenfold, giving min at 99.99%.
Question 52 of 60 · Introduction to DevSecOps · Hard
A security team wants to enforce that no build proceeds if a critical CVE is found, but developers complain about excessive false-positive build failures. What is the most balanced DevSecOps approach?
Not quite. Try another option.
Answer: Tune policies to fail only on exploitable, high-confidence findings while reporting lower-severity issues without blocking
Effective DevSecOps calibrates gates by severity and confidence so pipelines block on genuine critical risks while non-blocking findings still get visibility. Blocking on everything erodes trust and encourages bypasses; removing gates or deferring to production abandons shift-left security.
Question 53 of 60 · Need for Monitoring in DevOps · Hard
An organization has excellent uptime dashboards but repeatedly suffers outages that dashboards did not predict. Which monitoring gap most directly explains this?
Not quite. Try another option.
Answer: They monitor only known failure symptoms and lack leading indicators like saturation and error-rate trends
Reactive dashboards showing current status miss precursors. The four golden signals — latency, traffic, errors, and saturation — include leading indicators (rising saturation, creeping error rates) that predict failures before they manifest as downtime. Refresh rate and retention are not the core issue.
Question 54 of 60 · Logging Fundamentals: ELK Stack (Elasticsearch, Logstash, Kibana) · Hard
In Elasticsearch, a team indexes daily log indices but query latency degrades over months. Their oldest data is rarely queried. Which optimization directly addresses this?
Not quite. Try another option.
Answer: Use Index Lifecycle Management to roll over and move old indices to a warm/cold tier and force-merge segments
ILM automates hot-warm-cold transitions, force-merges rarely-changing indices into fewer segments, and moves them to cheaper, slower storage. This shrinks the hot working set and improves query latency. Over-sharding worsens overhead, and a single giant index removes pruning benefits.
Question 55 of 60 · Future of DevOps: GitOps, AIOps, NoOps · Hard
An 'AIOps' platform correlates thousands of alerts into a single incident and suppresses the rest. During a novel failure mode, it wrongly suppresses the one alert that mattered. What is the key limitation illustrated?
Not quite. Try another option.
Answer: ML-based correlation depends on historical patterns and can misclassify or suppress genuinely novel signals
AIOps models learn from past data and excel at reducing known noise, but novel failure modes fall outside their training distribution, risking incorrect suppression. This is why AIOps augments rather than replaces human judgment and needs feedback loops to handle the unknown.
Question 56 of 60 · DevOps Best Practices · Hard
A team practices trunk-based development but suffers frequent broken builds on the main branch. Which combination of practices most directly restores main-branch stability?
Not quite. Try another option.
Answer: Short-lived branches with mandatory pre-merge CI checks and feature flags to decouple deploy from release
Trunk-based development stays healthy when every change passes CI before merging and incomplete features hide behind flags rather than living on stale branches. Long-lived branches reintroduce merge hell, direct commits skip validation, and disabling CI removes the safety net entirely.
Question 57 of 60 · Google SRE · Hard
Google SRE distinguishes SLI, SLO, and SLA. A team promises customers 99.5% availability contractually but targets 99.9% internally and measures request success ratio. Which mapping is correct?
An SLI is the measured metric (success ratio), an SLO is the internal target for that SLI (99.9%), and an SLA is the externally-committed threshold with consequences (99.5%). Setting the SLO stricter than the SLA gives buffer before contractual penalties trigger.
Question 58 of 60 · Netflix Chaos Engineering · Hard
Netflix's Chaos Monkey randomly terminates instances in production during business hours. What is the deliberate engineering rationale for this seemingly reckless timing?
Not quite. Try another option.
Answer: Engineers are present to observe and respond, forcing systems to be resilient to routine instance loss
Running during working hours ensures humans can watch, learn, and intervene, and it pressures teams to build services that tolerate instance death as a normal event. The goal is to make resilience a design default, not to cause downtime or exploit low traffic.
Question 59 of 60 · Observability: Metrics, Logs, Traces · Hard
A team argues that metrics alone are sufficient because they can compute percentiles and rates cheaply. What fundamental limitation of pre-aggregated metrics does this overlook?
Not quite. Try another option.
Answer: Metrics lose per-event context, so you cannot ask arbitrary new questions after the data is aggregated
Aggregation discards individual event detail. Once data is rolled into counters and histograms, you cannot retroactively slice by a dimension you did not pre-define. Logs and traces preserve high-cardinality, per-event context needed for unanticipated investigations.
Question 60 of 60 · Future of DevOps: GitOps, AIOps, NoOps · Hard
A startup claims to have achieved true 'NoOps' by adopting serverless. Which critique most accurately reflects the practical reality of NoOps?
Not quite. Try another option.
Answer: Operational concerns like observability, cost governance, and failure handling still exist; they shift to developers and the provider rather than disappearing
NoOps abstracts away infrastructure management but does not eliminate operations. Responsibilities like monitoring, debugging, cost control, and handling provider failures move to developers and the platform. It is a shift in ownership, not the disappearance of ops work.
That's unit 6
Answer a few questions and your score shows up here.
Nearly through. Did unit 6 of INT331 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 6 of INT331 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.