
Weekend Agent Challenge: Study Conscience
An unattended nightly agent that reads my Kubernetes study cluster's audit log, captures which exam domains I'm avoiding, and reports back. Built for three hands-on certs (CKA, CKS and CKAD) I'm currently studying for.
Weekend Agent Challenge: Study Conscience
I paid for two exams before I had any business paying for them.
The CKA and the CKS were already sitting on my account, bought, non-refundable, clocks silently ticking. Then the Linux Foundation LiFT scholarship came through, and I put the CKAD under it. So now there are three hands-on Kubernetes exams lined up in front of me, all performance-based, all the kind where you either fix the broken cluster in front of you or you don't. No multiple choice to hide behind.
Three exams I have already committed money and a scholarship to. That's the the kind of pressure i'm currently sitting on. It is also where this whole thing started, because I know exactly how I fail at studying, and it is not dramatic. I do not quit. I just quietly drift toward the topics I am already good at and avoid the ones that scare me, and I do not notice I am doing it until weeks have gone by.
So for the AWS Builder Center Weekend Agent Challenge, I did not build something clever for a demo. I built the thing I actually needed: an agent that watches what I really study, captures the area that i'm avoiding, and tells me about it every morning before I can lie to myself.
Vision & What the Agent Does
Study Conscience runs every night while I sleep. Nothing to click, nothing to open. It reads what I genuinely did on my study cluster that day, works out which exam domains I touched and which seems like i'm dodging, and sends me a morning brief with one honest verdict and one drill to fix the gap.
The trick is that it does not ask me what I studied. I would lie, not on purpose, but the way everyone rounds their own effort up. Instead it reads the Kubernetes API server audit log from my local
kind cluster. Every kubectl command I run leaves a real record there: the verb, the resource, the timestamp. That log does not care about my intentions. If I ran get pods two hundred times and never once touched a NetworkPolicy or an etcd restore, the log says so plainly.The agent maps those commands to the official CNCF exam domains, weighs each domain by how much it counts on the real exam and how many days I have left before that exam, and then makes a judgment: is this domain genuinely mastered, simply not started yet, or actively being avoided? That last category is the whole point. Avoidance looks different from a topic you have not reached yet, and calling that difference is the job I handed to the model.
Then it delivers. A brief lands in my Telegram every morning that reads something like: you spent most of yesterday on Workloads, which is already your strongest area and only fifteen percent of the CKA, and you have now gone nine of the last eleven days without touching Troubleshooting, which is thirty percent and your weakest. Here is a broken manifest. Fix it today.

How I Built It
I gave myself the weekend and treated the riskiest part first. The infrastructure I had already proven on an earlier build, so that was not the danger. The danger was the data. If I could not reliably get real study activity out of the cluster and up to the cloud, there was no agent, just a nice-looking dashboard with nothing true behind it.
The first real problem showed up immediately. My study cluster runs
kindest/node:v1.35.1 , which is the exact version the exams use. But enabling audit logging on it meant patching the API server config, and every guide I found online showed the old format where apiServer.extraArgs is a map of key to value. On v1.35 that silently fails. It does not error. It just quietly does nothing, which is the worst way for a thing to break. Kubernetes v1.35 uses kubeadm v1beta4 , where extraArgs is a list of name and value pairs instead. Once I switched to the list form, the audit log started writing. That one is not in most of the tutorials yet, so I wrote it down in the build log the moment it worked.The second decision was where to filter. The audit log at
Metadata level captures everything, including all the background chatter from the kubelet and the controllers and leader election. I could have filtered that noise out in the audit policy itself, but I chose to log broadly and filter down to my actual user during the local rollup instead. That keeps the raw log honest and keeps the filtering logic in code where I can read it and change it, rather than buried in a cluster config I would forget about.The nightly flow ended up simple on purpose. A small local job wakes up before the cloud job, pulls the day's audit log out of the cluster container, rolls it up into a compact summary right there on my machine so I am never shipping megabytes of raw logs anywhere, and posts that summary up to an endpoint. The rollup happens locally by design. The cloud only ever sees the digest, never the noise.

There is one honest gap I want to name, because the writing guide is right that a story without a failure is not a real story. My AWS account is currently sitting behind an account-level Bedrock throttle that blocks every on-demand model call, on every model, not just one. I tested it across Nova, Mistral, and Llama and hit the same wall each time, and I have an open support case about it. So for the model layer I made the pragmatic call and reached for a third-party model API instead, held in Secrets Manager and pulled at run time, with the AWS services still doing all the real work of triggering, storing, serving, and delivering. It is not the layout I first drew. It is the one that actually runs tonight.
AWS Services I Used / Architecture Overview
The agent is triggered by Amazon EventBridge Scheduler, which fires the reasoning job on a nightly cron. This is the part that makes it an agent and not an app: no human presses anything. It runs at three in the morning whether I remember it exists or not.
- EventBridge Scheduler triggers the nightly run.
- AWS Lambda does the work in two roles: one function ingests the daily rollup that my local machine posts up, and one function reads the recent history, runs the deterministic domain-and-urgency math, calls the model for the avoidance judgment and the drill, and writes the result.
- Amazon DynamoDB holds the daily rollups, the per-skill decay state, and the drill history, which is what lets the agent reason about trends across days rather than just today.
- Amazon API Gateway exposes the ingest endpoint my local job posts to, and the read endpoint the dashboard calls.
- Amazon S3 and CloudFront host the dashboard.
- AWS Secrets Manager holds the model API key and the delivery credentials, so nothing sensitive lives in the code or the public repo.
The important design point is the split between arithmetic and judgment. The gap for each domain, weight minus how much I actually touched it, scaled by how close the deadline is, is plain math and I do it deterministically in code. I do not want a model doing arithmetic it might fumble. What the model does is the part that is genuinely judgment and cannot be reduced to a rule: deciding whether a quiet domain means I mastered it or I am scared of it, picking the single highest-leverage thing to drill given the deadlines, and writing a broken manifest that is broken in a way worth learning from. If I deleted the model call, the counting would survive but the conscience would not. That was my test for whether the intelligence was load-bearing or decorative.
What I Learned
The biggest thing I learned is that the honest data source is the one that does not depend on my cooperation. I could have built a form where I log what I studied. It would have been easier and it would have been useless, because I would have filled it in the way I wanted to see myself. The audit log works precisely because it is indifferent to me. Pointing an agent at the record you cannot flatter is worth more than any amount of self-reported tracking.
The second thing is the v1beta4 lesson, which cost me real time and taught me to distrust tutorials that do not state their version. On a hands-on exam that runs a specific Kubernetes version, the difference between the map form and the list form is not trivia. It is the difference between a config that works and one that fails without you knowing.
The third thing is easier to ignore. Building this made me realize the tool is not really about Kubernetes. It is about the gap between what I intend to do and what I actually do, and how that gap stays invisible until something outside my own head measures it. I have three exams paid for and a scholarship riding on the third. I did not need motivation. I needed a witness.
Link to App or Repo
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article