Skip to content

ashutoshanshu07/KPMG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KPMG Challange

Technical Challenge

Challange 1

A 3-tier environment is a common setup. Use a tool of your choosing/familiarity create these resources. Please remember we will not be judged on the outcome but more focusing on the approach, style and reproducibility

SOLUTION

I have created 3-tier application in Azure using Terraform. Three modules are created for each tier. We can seperate resource based on resource type like network.tf for vnet,subnet, NSG and lb.tf for loadbalancer etc. but for time being I have kept all in one tf files.

3 Tier Architecture Diagram

Logo

Tier-1

Tier-1 (web tier) consist of following Azure resources -

  • Subnet for web tier
  • Public Load Balancer
  • 2 VM's in Availability set for HA
  • NSG to allow inbound traffic to VM's

Tier-2

Tier-2 (app tier) consist of following Azure resources

  • Subnet for app tier
  • Private Load Balancer
  • 2 VM's in Availability set for HA
  • NSG to allow inbound traffic to VM's

Tier-3

Tier-3 (DB tier) consist of following Azure resources -

  • Subnet for Database
  • NSG to allow traffic from application tier
  • Azure SQL server
  • Azure SQL Database
  • Private Endpoint to connect DB server with app-tier without going to internet

Challange 2

We need to write code that will query the meta data of an instance within AWS and provide a json formatted output. The choice of language and implementation is up to you.

SOLUTION

For my reference I will be using Azure cloud as I am more comfortable in Azure cloud . So Instead of metadata of AWS instance I will be using Azure Instance .

I have Written a Shell Script to perfor this action .Its an intractive shell scripting and based on you input it will perform the task.

Based on API available I have written the Script . I can perform the same using Poweshell with Invoke-RestMethod .

Challange 3

We have a nested object, we would like a function that you pass in the object and a key and get back the value. How this is implemented is up to you.

Example Inputs object = {“a”:{“b”:{“c”:”d”}}} key = a/b/c object = {“x”:{“y”:{“z”:”a”}}} key = x/y/z value = a

SOLUTION

Written Powershell script to achive this task.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published