0% found this document useful (0 votes)
21 views3 pages

DevOps Internship Technical Test

Uploaded by

inconnue 00
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views3 pages

DevOps Internship Technical Test

Uploaded by

inconnue 00
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DevOps Internship Technical Test

Objective:

Evaluate the candidate's foundational knowledge in DevOps practices, problem-solving skills,


and ability to implement basic tasks using tools and techniques commonly used in the DevOps
lifecycle.

Section 1: Linux Basics (15 Points)

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)

2. Explain what the following commands do:

○ chmod 755 /opt/scripts/myscript.sh


tar -czvf backup.tar.gz /home/user/

(5 Points)
3. How would you check the disk usage of each directory in the /var folder? Write the
command.
(5 Points)

Section 2: Scripting and Automation (25 Points)

1. Write a Bash script that:


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)

Section 4: CI/CD Concepts (20 Points)

1. Explain what happens in a typical CI/CD pipeline for a web application from code commit
to production deployment.
(10 Points)

2. Write a simple Jenkins pipeline script (Jenkinsfile) to:

○ Clone a GitHub repository.


○ Run a shell script called deploy.sh.
(10 Points)

Section 5: Monitoring and Logging (20 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)

Section 6: Problem-Solving Scenario (Extra Credit: 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:

● Provide all answers in a single document.


● Use Markdown for formatting if submitting electronically.
● Include screenshots or logs for practical tasks where applicable.
● Submission deadline: 1 Day → 3D
● Condidat should be able to explain the work that been submitted

You might also like