Maghrib · Cert prep · Sat 2026-11-07 · UI/UX

Honest status surfaces: logs, metrics, events, and runtime audit

Practice self-check. Answers stay in this page so you can grade yourself. This is not a scored exam.

Twelve scenario items on AWS monitoring, event response and troubleshooting plus Kubernetes troubleshooting and runtime security. Companion lab: Hedronite uistatus (a UI status contract that never paints healthy after a terminal failure).

Lab download. Starter is the tree you edit. Worked answer is a separate file; open it after the starter passes. Rust 1.85 or newer. One online cargo vendor vendor. The zip has no vendored crates. Offline build after that command was checked for this lab on Rust 1.99. All lab requirements.

DOP-4.1 · DOP-4.2 · DOP-4.3 · DOP-5.1 · DOP-5.2 · DOP-5.3 · CKA-Troubleshooting · CKS-Runtime-Security · 12 items
Q1 · DOP-C02 monitoring (4.2), anomaly detection alarm
A web service's request count and latency metrics follow strong daily and weekly patterns. Any single static alarm threshold either fires every night or misses daytime spikes, and the team's status banner must not stay green during a real anomaly. Which approach fires only when the metric falls outside its expected pattern?
Q2 · CKA troubleshooting, container output streams
A Pod's container is in CrashLoopBackOff. Running kubectl logs against the current container shows only startup lines because it restarted moments ago. The engineer needs the output written by the instance that crashed. Which command provides it?
Q3 · CKS runtime security, audit policy level
Security wants an audit record of every read or change to Secrets, including who acted, when, which resource and which verb. The audit log must not contain Secret payloads in request or response bodies. Which audit policy rule meets both requirements?
Q4 · DOP-C02 event management (5.1), AWS Health events
The team wants to be notified and to start an automated runbook whenever AWS Health reports a scheduled change or issue affecting their EC2 instances. The solution must be event-driven and must not poll any API. What should they build?
Q5 · CKA troubleshooting, Service with no endpoints
A Service named status-api returns connection failures to clients. Its backing Pods are Running and Ready, yet kubectl get endpointslices -l kubernetes.io/service-name=status-api shows <none> in the ENDPOINTS column. Which first troubleshooting step addresses the most likely cause?
Q6 · DOP-C02 log and metric collection (4.1), CloudWatch agent
The team needs memory utilization and disk usage metrics from EC2 instances, plus the application log files delivered to CloudWatch Logs. The default EC2 metrics do not include memory. What should they do?
Q7 · CKS runtime security, immutable containers
After an incident in which an attacker dropped a binary into a running container, the team wants the container's root filesystem to be immutable at runtime. The application must still write scratch data to a mounted volume. Which configuration meets this?
Q8 · DOP-C02 troubleshooting (5.3), request tracing
A distributed application on AWS shows rising error rates. The team cannot tell which downstream service call is failing or adding latency, and they need request-level visibility rather than account activity history. What should they do?
Q9 · CKA troubleshooting, resource usage metrics
On a new cluster, kubectl top pods fails with an error that the Metrics API is not available. No metrics add-on has been installed. The team needs per-Pod CPU and memory usage. What should they do?
Q10 · DOP-C02 automated monitoring (4.3), EC2 automatic recovery
An EC2 instance occasionally becomes impaired because of problems with the underlying host hardware. The team wants it recovered on new hardware automatically, with no human action, keeping its instance ID and private IP address. Which solution meets this?
Q11 · CKS runtime security, audit log backend
A kubeadm cluster has an audit policy file written to the control plane node, but no audit events appear on disk. The team wants the log backend writing to a local file. Which component must receive the --audit-policy-file and --audit-log-path flags?
Q12 · DOP-C02 configuration changes (5.2), Config remediation
An S3 bucket or security group occasionally drifts into a noncompliant state after manual changes. The team wants the noncompliant resource corrected automatically, without a person running a fix. Which solution meets this?