0% found this document useful (0 votes)
2 views5 pages

Final Assignment Exam of DevOps

The document outlines a final assignment exam for DevOps, covering topics such as Agile vs. Waterfall methodologies, basic Linux commands, launching EC2 instances on AWS, CI/CD using Git and GitHub, and cross-region replication in S3. It emphasizes the advantages of Agile for evolving requirements and provides step-by-step instructions for various technical tasks. Each section offers practical guidance for implementing DevOps practices effectively.

Uploaded by

Ansh Kumar
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)
2 views5 pages

Final Assignment Exam of DevOps

The document outlines a final assignment exam for DevOps, covering topics such as Agile vs. Waterfall methodologies, basic Linux commands, launching EC2 instances on AWS, CI/CD using Git and GitHub, and cross-region replication in S3. It emphasizes the advantages of Agile for evolving requirements and provides step-by-step instructions for various technical tasks. Each section offers practical guidance for implementing DevOps practices effectively.

Uploaded by

Ansh Kumar
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/ 5

Final Assignment Exam of DevOps

Scenario: 1. Agile and Waterfall :


Answer 1 :
A.) If we are making a project then we will choose agile over
waterfall model because of the following reasons:
Waterfall Model:
Suitable for projects with fixed and well-defined requirements.
Offers high predictability with a sequential, document-driven
approach.
Formal client involvement through structured review processes.
Best for situations where changes are minimal or highly
controlled.
Agile Model:
Ideal for projects with evolving or unclear requirements.
Embraces adaptability, allowing for frequent changes during
development.
Encourages constant client collaboration for feedback and
ownership.
Iterative development provides quick visibility into the evolving
product.
B.) Adopting Agile for Evolving Requirements:
Adaptability: Agile excels in accommodating changing
requirements with its flexible and iterative approach.
Predictability: Agile offers dynamic predictability through short
cycles, adapting to evolving needs effectively.
Client Involvement: Continuous collaboration ensures prompt
feedback incorporation, enhancing client satisfaction.
Iterative Development: Incremental releases allow for early
visibility and adjustment based on evolving requirements.
Risk Mitigation: Agile's iterative nature identifies and addresses
issues early, mitigating risks associated with evolving
requirements

Linux Scripts:2. Linux Basic Commands


Answer 2 :
1. To Create a directory and navigate into it:

 mkdir exam_directory
 cd exam_directory

2. To Create two files inside the directory:

 touch file1.txt file2.txt

3. To Copy "file1.txt" to "file_copy.txt":


 cp file1.txt file_copy.txt
4. To Create a new user named "exam_user":

 sudo adduser exam_user

5. To Change ownership of "restricted.txt" to "exam_user" (Let us


assume that you have a file named "admin.txt"):
sudo chown exam_user admin.txt

Cloud-based : 3. EC2 and S3 :


Answer 3 :
Launch EC2 Instance with SSH Access
1. Login to AWS Console : Access AWS Management Console.
2.Navigate to EC2 : Go to EC2 service.
3. Launch Instance : Click "Launch Instances."
4. Choose Amazon Linux AMI : Select "Amazon Linux 2 AMI."
5. Configure and Add Storage : Adjust settings and storage as
needed.
6. Configure Security Group :
- Create or select a security group.
- Add inbound rule for SSH with your IP.
8. Check and Launch : Check settings and launch the instance.
9. Select Key Pair : Choose or create a key pair.
10. Connect to Instance : Use SSH to connect to the instance.
11. Ensure Only Your IP has SSH Access : Edit security group
rules to allow SSH only from your IP.
Now, you've launched an EC2 instance, configured SSH access,
and restricted it to your IP.
https://ap-south-
1.console.aws.amazon.com/ec2/home?region=ap-south-
1#Instances:instanceId=i-043427c138c62032a

CI/CD: 4. CICD using Git and GitHub


Answer 4 : https://github.com/divyanshuyadav2003/Final

AWS: 5. Cross-Region Replication:


Answer 5 :
Steps are the following :
1)Enable Versioning: Enable versioning for the source S3 bucket.
2)Create Destination Bucket: Create a destination S3 bucket in
the desired region.
3)Set Up Cross-Region Replication Rule:
In the source bucket's management settings, add a replication
rule.
-Configure source, destination, storage class, and other
options.
-Save the rule.
4)Verify Replication:
-Upload a test object to the source bucket.
-Check the destination bucket in the specified region for the
replicated object version.
5)Monitoring and Verification:
-Monitor replication status under the "Management" tab in the
S3 console.
-Ensure IAM roles and bucket policies have the necessary
permissions.
- Enable logging for audit purposes.

You might also like