Skip to content

Instantly share code, notes, and snippets.

@vikas-t
Last active July 19, 2025 07:13
Show Gist options
  • Save vikas-t/724da4a118612a8a8faf0acd5e4e4567 to your computer and use it in GitHub Desktop.
Save vikas-t/724da4a118612a8a8faf0acd5e4e4567 to your computer and use it in GitHub Desktop.

Cost Optimization Challenge: Managing Billing Records in Azure Serverless Architecture

We have a serverless architecture in Azure, where one of our services stores billing records in Azure Cosmos DB. The system is read-heavy, but records older than three months are rarely accessed.

Over the past few years, the database size has significantly grown, leading to increased costs. We need an efficient way to reduce costs while maintaining data availability.

Current System Constraints

  1. Record Size: Each billing record can be as large as 300 KB.

  2. Total Records: The database currently holds over 2 million records.

  3. Access Latency: When an old record is requested, it should still be served, with a response time in the order of seconds.

Solution Requirements

Please propose a detailed solution to optimize costs while ensuring the following

  1. Simplicity & Ease of Implementation – The solution should be straightforward to deploy and maintain.

  2. No Data Loss & No Downtime – The transition should be seamless, without losing any records or requiring2 service downtime.

  3. No Changes to API Contracts – The existing read/write APIs for billing records must remain unchanged

Bonus Points

Include an architecture diagram illustrating your proposed solution.

Provide pseudocode, commands, or scripts for implementing core logic (such as data archival, retrieval, and cost optimization st rategies).

Please share the solution in a Github repo. If you are using chatGPT or other LLMs to solve please share the conversation.

@RNAGENDRABABU
Copy link

RNAGENDRABABU commented Jun 26, 2025

I've completed the azure engineer assignment.
Please find my GitHub submission here:
https://github.com/RNAGENDRABABU/azure--cost--optimization--symplique
Please let me know if you have any feedback.

@vikram851
Copy link

Hi Team,

I've completed the Azure Engineer assignment as requested.

You can find the full project, including:

  • Architecture diagram
  • README explanation
  • Sample archival and retrieval logic
  • ChatGPT interaction history

at the following GitHub repository:

🔗 https://github.com/vikram851/azure-cost-optimizer.git

Please feel free to review and let me know if there’s anything you’d like me to clarify or expand upon.

Thank you for the opportunity!

Best regards,
Vijaya Kumar
www.linkedin.com/in/vijayakumar851
mvijaykumar851@gmail.com

@20MIS0428
Copy link

https://github.com/20MIS0428/Serverlessazureproject
Hi I am Duggi Sri Harsha vardhan My assignment is completed can you please check

@babumadhu7853
Copy link

Hi Vikas,

Here is the GitHub link: https://github.com/babumadhu7853/Managing-Billing-Records-in-Azure-Serverless-Architecture.git. It contains the improvements I have made to optimize the cost of the Azure Function.

@Sakshi-19-99
Copy link

Hi Vikas,

Please find below my submission for the Azure Serverless Cost Optimization Challenge:
🔗 GitHub Repository: https://github.com/Sakshi-19-99/azure-cost-optimization.git

Thanks,
Sakshi Aher
Email: sakshiaher03@gmail.com

@anunay722
Copy link

hi vikas , Please find the project details for the asked requirements https://github.com/anunay722/Symplique-Solutions/tree/282bd43ad60d0ebaca911488b9ba4c00f37b546d

we can discuss the prompts we can use to improve the project.

thanks and regards
Anunay Vimal
Email : anunayvimal@gmail.com

@kiran2908-sudo
Copy link

@themeg25
Copy link

Hi mam

@themeg25
Copy link

@aripandi01
Copy link

Hi, here's my solution for the cost optimization challenge using Azure & Terraform.
GitHub repo (with code, README, architecture & prompts): https://github.com/aripandi01/symplique-cost-optimization.git

Regards,
Aripandi S

@AkhilDevOps108
Copy link

hi vikas , Please find the project details for the asked requirements
https://github.com/AkhilDevOps108/Cost-Optimization-Challenge

@vpanajwala
Copy link

@Ganeshbalaji24
Copy link

Hello Vikas, I have shared my solution for requirements using python
https://github.com/Ganeshbalaji24/DevOps/tree/main/azure-cosmosdb-billing-optimizer

@Shubham3S
Copy link

Hi Vikas, Please find my submission below

https://github.com/Shubham3S/DevopsAssignment

@Anandko
Copy link

Anandko commented Jun 28, 2025

Hi Vikas, Thanks for the opportunity!
Please find attached my assignment on Cost Optimization Strategies in Azure, focusing on:

Blob Storage lifecycle management and reserved capacity
Efficient Azure Functions configuration and execution
Additional cost-saving measures for Cosmos DB and cloud resources.

https://github.com/Anandko/Managing-Billing-records

Please let me know if any further clarification is needed.

Best regards,
Anand Kommisetty

@goldonin
Copy link

Hello Vikas, Thank you for the opportunity!
Please feel free to go through the below repository for the assessment on Cost Optimization in azure:

https://github.com/goldonin/azure_cost_optimizer.git

Please let me know if any further clarification is needed.

Best regards,

Deepak Prabakar

@Charan1012
Copy link

Hi Vikas, Thank you for the opportunity!

Please find attached my assignment on Cost Optimization Strategies in Azure, focusing on:

Blob Storage lifecycle management and reserved capacity
Efficient Azure Functions configuration and execution
Additional cost-saving measures for Cosmos DB and cloud resources.

Here’s my submission for the assignment.
GitHub repo: https://github.com/Charan1012/Azure_Cost_Optimization

Best regards,
Charan R
Email:charann1910@gmail.com

@sarath355
Copy link

https://github.com/sarath355/Cost-optimization-solution-in-Azure-/tree/main

Please notify if found suitable.
Regards,
Sai Sarath P
Mobile: 6301209527
Email: pnksarath03@gmail.com

@Adnan-Samsher-Sheikh
Copy link

Hi Vikas, Thanks for the opportunity!

Please find attached my assignment on Cost Optimization Strategies in Azure.
Here’s my submission for the assignment.
GitHub repo: https://github.com/Adnan-Samsher-Sheikh/Azure_cost_optimizer.git

Best regards,
Adnan Sheikh

@Akash2000-07
Copy link

Hello Vikas,
Thank you for the opportunity,

Please find attached my assignment on Cost Optimization Strategies in Azure.

Please feel free to Validate.

GitHub repo:- git@github.com:Akash2000-07/Managing-Billing-Records-in-Azure-Serverless-Architecture.git

Best regards,
Akash Bhokare

@UvVij99
Copy link

UvVij99 commented Jul 2, 2025

HI Vikas,

Please find my Assignment for Cost Optimization Strategies in Azure.

Github Repo: https://github.com/YuvrajVij/Azure-Cost-Optimization

Best Regards,
Yuvraj Vij

@sahanabalappa
Copy link

Hi Vikas, I completed my assessment please find the attachment here https://github.com/sahanabalappa/azure-billing-archival.git

@karthiklyadala
Copy link

Hi Vikas, I have completed my Assessment . Please do find the attachment here https://github.com/karthiklyadala/azure-cost-optimization

@ajaywaldia
Copy link

Hi Vikas,
Here is my solution for stated Cost Optimization Challenge :

https://github.com/ajaywaldia/Managing-Billing-Records

@tabrezsaqib
Copy link

@Abhii707
Copy link

Subject: Azure Cosmos DB Optimization – Assignment Submission

Hi Team,

I’ve completed the Azure Engineer screening assignment.
Here is the GitHub repository for my submission:

🔗 https://github.com/Abhii707/azure-archive-solution

This project includes:

A cost-effective data archiving strategy using Azure Blob Storage
A scalable, serverless architecture powered by Azure Functions
Cosmos DB optimization for read-heavy workloads
Seamless fallback read logic with zero downtime
Maintained API compatibility — no breaking changes

I’ve also included a detailed README, code structure, architecture diagram, and ChatGPT prompt documentation for bonus evaluation.

Please let me know if you need anything else.
Looking forward to your feedback!

Best regards,
Abhishek Kumar
B.Tech CSE Final Year
GitHub

@rithwicklink
Copy link

Azure Cosmos DB Optimization Completed
The optimization task has been successfully completed!

Repository: azure-cosmos-billing-optimization

This includes:

Cost-effective data archiving strategy

Serverless architecture for scaling

API compatibility maintained with no downtime

Cosmos DB optimization for read-heavy workloads

@prashantyadav8814
Copy link

Hi Vikas, I have completed my Assessment . Please do find the attachment here : https://github.com/prashantyadav8814/Cost-Optimization

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment