My Interview Experience for DevOps Profile Sept 2018
Hello All,
Recently I faced one interview for DevOps profile, I was asked a couple of questions related to AWS, Linux and DevOps tools. I am sharing my experience here for you guys, thinking this would help you…
Q-1:- Can we mount 1 EBS (Elastic Block Storage) to multiple EC2?
Ans: NO, One EBS Can be mounted to one Instance only.
Q-2:- IF not what is the solution for this?
Ans: EFS (Elastic File System) is the solution for this, You can mount EFS on multiple Instances at the same time for sharing data.
Q-3:- How will you push data to EFS?
ANS: You can use RSYNC and AWS EFS Client to push data, EFS is better in term of speed of data transfer. EFS client provides 5 times throughput that Rsync.
Q-4:- What is the Difference Between Rsync and EFS Agent?
Ans: Data Transfer speed is the main difference between both.
Q-5:- How to mount files from physical server to Docker container?
Ans: Docker provides VOLUME option to expose physical disk inside the container.
Q-6:-If you have an ec2 running in Singapore (OR ANY OTHER REGION) how will you migrate to another region?
ANS: Create Snapshot >> Copy Snapshot to the desired Region >> Create AMI (Amazon Machine Image) out of Snap >> Provision your Instance using this AMI.
Q-7:-What does the reboot — no-reboot option meanwhile creating the snapshot?
Ans: If you don’t reboot your instance while creating a SNAPSHOT, data consistency issue will be there.
Q-8:- What if any page gives 404 (page not found) error?
Ans: Just check your config files: location directive in Nginx and Directory directive in Apache.
Q-9:- What is the difference between AWS direct connect and VPN (Virtual Private Network)?
Ans: For AWS DCC you cannot select your desired ISP as AWS as an agreement with specific vendors, wherein you can select any ISP for internet connection and create your VPN tunnel.
Q-10:- Type of VPC (Virtual Private Cloud)and How to create VPC?
Ans: Please check given link as this is described there, this will take longer to explain.
Q-11:- What is the difference between private and public subnet?
Ans: You can run the internet in your public subnet wherein no internet access is given for Private subnet.
Q-12:- How to access the INTERNET on the private subnet?
Ans: You can use NAT GW or NAT Instance to access the internet.
Q-13: What is the difference between NAT GW / Nat Instance?
Ans: Keep this in mind that Your NAT Instance can become the bottleneck for your internet speed wherein NAT GW provides high throughput.
Q-14:- How to suspend the auto-scaling group for 2 hours?
Ans: #aws autoscaling suspend-processes — auto-scaling-group-name my-asg
Above command can be used to suspend your autoscaling group.
Q-15:- What could be the issue if we are unable to create read-replica of RDS?
Ans: If you have no backups enabled for your RDS, you shall not be able to create Read Replica of your RDS.
Q-16:- What all Modules have you used for Ansible?
Ans: You can discuss all the modules you know, like: copy, archive, pause, shall, package etc…
Q-17: What is the use of Ansible module run-once?
Ans: This will run a command on your destination server once only when your playbook is executed.
You can find all answers in details here on this link is given below:-
https://youtu.be/h6GYhkBGxN4