Posts

Agentic AI - Series 2

Image
  Now we know the brain behind Agents are LLM models. So, how do I access and use the models? That where we rely on organizations like OpenAI, Google, Meta, Mircosoft, Hugging Face, Nvidia, Grog and others who primarily build LLM models that serves various purpose like Text Generation, Image Recognition, and others. I am sure everyone have been using ChatGPT which is a service provided by OpenAI for interactive/chat based conversation for our daily activities starting from asking a riddle, solving math problem and other tasks. This is my simple interaction with ChatGPT asking for the "Weather in California?" Lets imagine building an Agent which needs perform the same action as above, then it must be done programmatically.  If its programmatically, then you need API credentials to perform the same. I have generated OpenAI API credentials via  API keys - OpenAI API Let's ask the same question to ChatGPT programmatically: from openai import OpenAI from dotenv import loa...

S3 - Event Driven Action

Image
  In this blog, we will see how to use S3 with event driven architecture. Flow is as below: 1) Application running on EC2 instance uploads object to a prefix called " raw_data " into a S3 bucket. 2) Once the object is uploaded, S3 event is detected by the Event Bridge rule. 3) Event bridge rule is configured to listen for "S3:ObjectCreate" event with destination as Lambda. 4) Lambda is configured to read data from the " raw_data " folder and process it. 5) Processed data is saved into a file under the folder " processed_data ". 6) Both the folders " raw_data " and " processed_data " exist in the same bucket " demo-event-application" Here is the bucket. EC2 instance is attached with the IAM EC2 instance profile to perform S3 actions. This profile/role has admin S3 access for S3 actions. Attaching the role to the EC2 instance. Let's login to the EC2 instance and verify the S3 actions. It worked. Here is the snippe...

Agentic AI - Series 1

Image
  What is Agentic AI?  Agents are nothing but a software programs which can think and act autonomously. This is often called " ReAct " model.  Re - Reasoning. Act - Acting based on that what they thought.  Reasoning is not as same as Thinking. Because, reasoning is a logical process of deriving a conclusion based on the ideas. E.g.: Let's say you want to drive to your friends place. Based on the previous experience you might think it takes 30 minutes to reach the friends place - This is called " Thinking ". Now, the same route to your friend is analyzed by some GPS applications like Google/Apple Map and it does logical analysis by evaluating the current traffic and other attributes and shows the best possible route which might show the ETA as 15 to 20 mins - This is called " Reasoning ". How does the Agent works? Agents are build on top of the LLM (Large Language Models). Agents can use various tools like web scraping, web search and other activities t...

S3 Bucket Policies

Image
In this blog, I will walk you through with some of the interesting S3 bucket polices to secure the bucket and objects. I have a bucket called “ demo-aws-sathiya”.    I need the bucket to be accessed from other regions and from outside AWS (On Prem). Hence, I created a S3 VPC Interface Endpoint. To access S3 bucket via VPCE interface endpoint we need to use the DNS name of the S3 VPC Interface Endpoint. By default, the S3 VPCE policy allows access to all the buckets in that account. Let’s start by implementing a policy at the S3 VPC Interface Endpoint level to restrict access to all buckets except the required ones. This allows access to the bucket "demo-aws-sathiya" to be accessed using the S3 VPC interface endpoint. I get access denied when I try to access others bucket NOT ALLOWED in the policy. Next, our bucket has empty bucket policy which means it is accessible from outside.  Now, we need to make sure the bucket is accessed only via S3 VPC Interface endpoint. ...

SRE Interview Questions and Answers - Part II

Image
                                                                   What is latency and how do you reduce it? Latency - Refers to time taken to respond the request (Processing time of the application to process the request). Latency could be measured for a user request or application to application request or application to data request like (S3, Database, Redshift). There could be various reasons for a latency issue. 1) Client side issue this is pretty straight forward to identify when our i nternal telemetry and observability looks GREEN. 2) Possible reasons for client side issue could be ISP, User Agent like browser, Geo location based issues. If its server side issues, better to start with the probing to pin point the issues:  Let's say one of the microservices called " inventory " ...

SRE Interview Questions and Answers - Part I

Image
                                                                What is SRE and how is it different from DevOps? SRE stands for Site Reliability Engineering which primarily focus on managing the application and its infrastructure in PRODUCTION. Their aim is to focus on improving the reliability and resiliency of the applications, improve the monitoring and observability of the application, focus on SHIFT LEFT approach to address the issue at the development stage of the software, monitor the promised SLA, SLO and SLI. Approach every problem from a software development approach. Identify and eliminate toils. Focus on automation and run books to improve the reliability and resiliency of the application and systems and involve in Root Cause Analysis and Post mortem calls after a major incident. What are...

Agentic AI - Guardrails

Image
  Agentic AI refers to AI systems that can autonomously plan, decide, and act—interacting with tools, APIs, and environments without constant human oversight. Guardrails are essential to ensure these agents operate safely, ethically, and within defined boundaries. ๐Ÿค– What Is Agentic AI? Unlike traditional AI that passively generates responses (e.g., chatbots or classifiers), Agentic AI systems are active participants in workflows. They can: ๐Ÿ” Search and retrieve internal or external data ⚙️ Trigger workflows or automate multi-step tasks ๐Ÿง  Make decisions based on goals and context ๐Ÿงพ Write or modify code , schedule events, or make purchases ๐Ÿ”— Interact with APIs, databases, and other systems ⚠️ Why Guardrails Are Critical for Agentic AI Because agentic systems can act independently, they pose greater systemic risk than traditional AI. Without proper controls, they might: ๐Ÿ•ต️‍♂️ Access sensitive data unintentionally ๐Ÿงจ Trigger unauthorized actions (e.g., deleti...