DevOps Internship Technical Test
DevOps Internship Technical Test
Objective:
1. Write a command to find all .log files in the /var/log directory and its subdirectories
that were modified in the last 7 days.
(5 Points)
○
Checks if Docker is installed.
○
Installs Docker if it’s not present.
○
Outputs "Docker is already installed" if it’s detected.
(15 Points)
2. Write a simple Python script to fetch the current weather for a given city using the
OpenWeatherMap API. Include error handling.
(10 Points)
Section 3: Infrastructure as Code (IaC) Basics (20 Points)
1. Write a basic Terraform configuration file to deploy an EC2 instance in AWS with:
○ An Ubuntu image.
○ A t2.micro instance type.
○ A security group allowing SSH (port 22).
(20 Points)
1. Explain what happens in a typical CI/CD pipeline for a web application from code commit
to production deployment.
(10 Points)
1. Name two monitoring tools and two logging tools commonly used in DevOps. Briefly
describe their purpose.
(10 Points)
2. Imagine you are monitoring a production application. How would you set up alerts for
CPU usage exceeding 90% for more than 5 minutes?
(10 Points)
Your team is experiencing slow response times in a web application hosted on Kubernetes.
Outline the steps you would take to identify and resolve the issue.
Instructions for Candidates: