Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS Logo
Menu
Building a AI-powered study buddy for certifications

Building a AI-powered study buddy for certifications

Your AI-powered CLI companion for any certification exam preparation! Ask questions about any topic in your study materials and get intelligent, personalized quizzes to test your knowledge.

Linda Haviv
Amazon Employee
Published Mar 26, 2025
Quick post to share the sample code for a talk I gave on 26 March 2025 for the Platformers Community. I'll update it to a full post after the talk, and share the code on GitHub, for now I'm sharing the code used for the demo. It consists of a main.py , and then additional ones for the data_store, quiz_engine, rag_handler, config_helper.py, and requirements.txt. It uses Amazon Bedrock, with a Knowledge Base, and stored data in Amazon DynamoDB.
To try out this code locally, create a new folder called Sample-Certs-CLI-Quiz-App with the following folder structure:
You can do that with the following commands (I'll add ones for Windows later, these are for Mac / Linux, but you can use them with Powershell on Windows):
For each the files below, paste the contents into each - pay attention to the names:
Here's the main.py:
The config_helper.py:
The scr/data_store/dynamo_client.py:
The src/quiq_engine/generator.py:
The src/rag_handler/knowledge_base.py:
Finally, the requirements.txt:
Coming soon: Instructions on how to create a virtual environment, install the required libraries, and then how to run the app :)
 

Any opinions in this post are those of the individual author and may not reflect the opinions of AWS.

Comments