What types of applications have you deployed?
How should secrets be injected in Kubernetes?
Use Kubernetes Secrets instead of ConfigMaps. Secrets can be injected into pods via environment variables or mounted as files.
How to find which pod is using more resources?
Use the command <code>kubectl top pod --all-namespaces</code> to list resource usage by pods. Combine with <code>kubectl describe pod <pod-name></code> for detailed usage.
How to find which worker node is consuming more resources?
Use the command <code>kubectl top nodes</code> to see CPU and memory usage on each node.
What are the steps for configuring Prometheus and Grafana?
How to visualize metrics of 20 pods in Grafana?
Configure Grafana to use Prometheus as the data source. Use existing or create custom dashboards for metrics visualization.
What is Apache Kafka?
Apache Kafka is a distributed event streaming platform for building real-time data pipelines and streaming applications.
How to set up a Docker Hub private registry?
What is the difference between a hard link and a soft link?
What is the use of the break command in shell scripting?
The <code>break</code> command exits a loop prematurely when a specific condition is met.
How to count the number of 'devops' words in HTML files?
Use the command: <code>grep -o -i "devops" *.html | wc -l</code>.
- <code>grep</code> searches for 'devops' in HTML files.
- <code>wc -l</code> counts occurrences.
What is the terraform taint command?
The <code>terraform taint</code> command marks a resource for recreation during the next <code>terraform apply</code>. It destroys the resource and creates a new instance.
What is the syntax to taint a resource in Terraform?
<code>terraform taint <resource_address></code>
How do you secure a state file in Terraform?
What happens if you run terraform apply after deleting VMs manually?
Terraform will recreate the missing VMs to match the state defined in your configuration, resulting in 100 VMs again.
What is the syntax for for_each in Terraform?
<code>resource "aws_instance" "example" { for_each = var.instances ami = each.value["ami"] instance_type = each.value["instance_type"] tags = { Name = each.key } }</code>
What are the advantages of multi-stage builds in Docker?
What are the disadvantages of multi-stage builds in Docker?
How do you deploy containers on different hosts within a Docker cluster?
Use Docker Swarm or Kubernetes for orchestration.
How to deploy a web container on one host and a DB container on another in Docker Compose?
Use Docker Compose with separate service definitions for each host.
How do you deploy the web container on one host and the DB container on another using Docker Compose?
What is bridge networking in Docker?
What is host networking in Docker?
What are the steps to resolve merge conflicts?
What command changes the existing commit message?
Use: <code>git commit --amend -m 'New commit message'</code>. If pushed, use: <code>git push --force</code>.
What is session affinity?
What is pod affinity and its use case?
What is the difference between pod affinity and pod anti-affinity?
What is Pod Affinity in Kubernetes?
Running frontend and backend on the same node for low-latency communication.
What is Pod Anti-Affinity in Kubernetes?
Ensuring replicas of the same application are spread across different nodes to increase availability and fault tolerance.
What is a Readiness Probe?
Used to determine when a pod is ready to start accepting traffic.
What happens if a Readiness Probe fails?
The pod will be removed from the service endpoints, ensuring it does not receive traffic until it's ready.
What is a Liveness Probe?
Used to determine if a pod is still running.
What happens if a Liveness Probe fails?
Kubernetes will restart the pod, assuming it's in a failed state.
What is a simple Groovy pipeline for a Java Spring Boot application?
A pipeline that includes stages: Checkout, Build, Push, Approval, and Deploy.
What does the Checkout stage do in a Groovy pipeline?
It checks out the code from the specified Git repository.
What command is used to build a Java Spring Boot application in the pipeline?
sh './mvnw clean package'
What command is used to push a Docker image in the pipeline?
sh 'docker push your-docker-repo/java-spring-boot-app'
What action does the Approval stage require?
It requires user input for approval to deploy to production.
What command is used to deploy in the pipeline?
sh 'kubectl apply -f deployment.yaml'
How do you export test reports in Jenkins?
Use the Publish JUnit test result report post-build action to archive test reports.
What format should tests generate reports in for Jenkins?
Reports should be in standard formats like JUnit XML or HTML.
How do you scale pods in Kubernetes from 5 to 10?
Use the command: kubectl scale --replicas=10 deployment/<your-deployment-name>
What is the purpose of the terraform import command?
To import existing infrastructure resources into Terraform's state file.
What is the syntax for the terraform import command?
terraform import <resource_type>.<resource_name> <resource_id>
Where do you store the state file in AWS for Terraform?
In an S3 bucket.
How do you manage the state file in AWS?
Using S3 for storage and DynamoDB for locking.
What is the configuration for Terraform backend in AWS?
backend 's3' { bucket = 'my-terraform-state-bucket' key = 'path/to/my/terraform.tfstate' region = 'us-west-2' dynamodb_table = 'terraform-lock-table' encrypt = true }
What is one significant issue faced with Terraform?
Managing Terraform state with multiple teams working on the same infrastructure.
How was the Terraform state issue resolved?
By organizing the state management process.
What was a significant issue faced with Terraform?
Managing Terraform state with multiple teams working on the same infrastructure.
How was the Terraform state management issue resolved?
By organizing infrastructure into separate modules and using remote state management with proper locking mechanisms.
What are the types of storage accounts in AWS S3?
What does lifecycle management in S3 allow you to do?
Define rules to transition objects between storage classes or delete them after a certain period.
How can you set up lifecycle policies in S3?
Using the S3 Management Console, AWS CLI, or Terraform with a JSON configuration file.
What is the purpose of load balancers?
Distribute incoming network traffic across multiple servers.
What are the main types of load balancers?
What are the benefits of using load balancers?
Improve fault tolerance, scalability, and ensure high availability.
What are Auto Scaling Groups (ASG)?
Groups that automatically scale the number of instances based on demand.
How do ASGs maintain application performance?
By adjusting desired capacity based on metrics like CPU utilization.
Can you provide a simple Dockerfile example?
<code>Dockerfile FROM node:14 WORKDIR /app COPY package.json . RUN npm install COPY . . EXPOSE 3000 CMD ["npm", "start"]</code>
How do you expose an application in Kubernetes to the public internet?
Using a Kubernetes Service of type LoadBalancer or NodePort.
How do you access an application internally within a Kubernetes cluster?
By using a ClusterIP service.
What is the purpose of a ConfigMap in Kubernetes?
Store non-confidential configuration data in key-value pairs.
What services are considered for a CI/CD pipeline in AWS?
How would you manage unusually high traffic for an e-commerce application?
Ensure ASGs are configured to handle demand, verify load balancers distribute traffic, and enable caching (e.g., Amazon CloudFront).
What monitoring tools would be used to track performance metrics?
Monitoring tools like CloudWatch.
What is a strategy to reduce load on backend servers?
Enable caching (e.g., using Amazon CloudFront).
What tool is used to track performance metrics in AWS?
CloudWatch.
What does Auto Scaling do?
Automatically scales up instances to handle increased load.
What is the purpose of caching in AWS?
Reduces load on application servers.
What does Load Balancing do?
Distributes traffic evenly across available instances.
What is involved in Database Optimization?
Ensure database is properly configured for performance.
How to upgrade for high availability in AWS?
Deploy multiple instances across different Availability Zones (AZs).
What is the role of a Load Balancer for high availability?
Distributes traffic across multiple instances.
What should be configured to ensure traffic is routed to healthy instances?
Health checks.
What is a way to ensure data availability for databases?
Use Multi-AZ deployments for databases like RDS.
How to manage the backend RDS database during auto-scaling?
Enable Multi-AZ for high availability and automatic failover.
What are RDS Read Replicas used for?
Handle read-heavy traffic, reducing load on primary database.
How can you scale RDS based on workload?
Scale vertically (instance size) or horizontally (read replicas).
How to set up cross-account access for S3?
Create an IAM role in production account with necessary permissions.
What is established to allow QA account to assume a role?
A trust relationship.
What is used to grant access from the QA account to S3?
S3 bucket policies.
How can Account A access Account B’s S3 bucket?
Set up a bucket policy in Account B granting permissions to Account A.
What is needed for Account A to assume a role in Account B?
Create an IAM role in Account B with S3 permissions.
What are IAM Policies?
Sets of permissions defining allowed or denied actions.
What are IAM Roles?
Identities with specific permissions that can be assumed by entities.
What does the STS AssumeRole policy do?
Allows a user or service to assume a role in another account, providing temporary credentials.
How was a sudden traffic spike issue resolved?
Scaled database vertically and added read replicas, optimized slow queries.
What is the difference between CMD and ENTRYPOINT in Docker?
CMD provides default arguments for the container.
What is the difference between CMD and ENTRYPOINT in Docker?
What does ENTRYPOINT do in Docker?
Ensures a specific executable runs, e.g., <code>ENTRYPOINT ["python", "app.py"]</code> always executes <code>app.py</code>.
Have you ever managed an application single-handedly?
Yes, I managed applications by handling deployment, monitoring, troubleshooting, and scaling, including infrastructure setup and CI/CD pipelines.
What are the benefits of Infrastructure as Code (IaC)?
What are different ways to create Infrastructure as Code?
What is the difference between public and private networking?
What is a Docker registry and why do we need it?
What is a secrets manager?
A tool that securely stores sensitive information like API keys and passwords. Examples: AWS Secrets Manager, HashiCorp Vault, Azure Key Vault.
What is the secure way to manage sensitive information?
What is HashiCorp Vault used for?
Managing and securing secrets and sensitive data.
How do you inject secrets at runtime?
Use environment variables instead of storing them in code.
Where should you store sensitive data?
In encrypted databases or files.
What should be implemented for access control?
Strict access controls and auditing.
What is Kubernetes used for?
Deploying and managing containerized applications.
What tools are used to configure Kubernetes clusters?
Use tools like kubectl.
What does Kubernetes manage in terms of services?
It manages services, ingress, and networking.
What are Helm charts used for?
Packaging and deploying applications in Kubernetes.
What is the main purpose of Docker?
Developing, shipping, and running applications inside containers.
What is the main purpose of Kubernetes?
Automating deployment, scaling, and management of containerized applications.
What is the first step in an end-to-end deployment process?
Code Commit: Developers push code changes to version control.
What does a CI/CD pipeline do?
Builds code, runs tests, and creates a Docker image.
Where is the Docker image stored after creation?
It is pushed to a Docker registry.
What happens during the deployment phase?
The image is pulled from the registry and deployed.
What is monitored after deployment?
The application for performance and errors.
What strategies are used for updates in deployment?
Blue-green or canary deployment strategies.
How do you use Kubernetes instead of EC2?
Deploy applications on a Kubernetes cluster, set up EKS or another service.
What is Helm in relation to Kubernetes?
A package manager for managing Kubernetes applications.
How to handle multiple microservices on Kubernetes?
Use namespaces and manage deployment with Helm or CI/CD tools.
What is a bastion host?
A server in a public subnet that provides access to a private network.
What is a VPC?
A logically isolated section of a cloud provider's network.
What is VPC peering?
A network connection allowing traffic between two VPCs using private IPs.
What allows traffic to be routed between two VPCs?
Using private IP addresses.
What does CI/CD stand for?
Continuous Integration/Continuous Deployment.
What triggers CI/CD pipelines in the setup with Jira?
When a ticket is marked as 'Done' or moved to a specific workflow stage.
What tools can be used for code merging in CI/CD?
GitLab CI, GitHub Actions, Jenkins.
What types of tests are run in a CI/CD pipeline?
Unit, integration, and end-to-end tests.
What is the first step in setting up Nginx on a server?
Installation.
How do you install Nginx on Ubuntu/Debian?
Run: sudo apt-get update && sudo apt-get install nginx.
How do you install Nginx on CentOS/RHEL?
Run: sudo yum install nginx.
What file is edited to configure Nginx?
The configuration file at /etc/nginx/nginx.conf.
What command starts the Nginx service?
sudo systemctl start nginx.
What does a load balancer do?
Distributes incoming network traffic across multiple servers or services.
What is one benefit of a load balancer?
Increased fault tolerance.
What is Cloud NAT?
A NAT service in cloud environments allowing private instances to connect to the internet securely.
What is the primary function of a Cloud NAT gateway?
Provides outbound internet access for private network instances without exposing them.
How does the author see themselves fitting into the role?
By leveraging technical expertise in infrastructure management and cloud technologies.
What skills does the author bring to the team?
Problem-solving skills and a proactive approach to ensuring system reliability.
What was an instance of cost optimization you implemented?
Describe a situation where a production instance crashed.
What is blue-green deployment?
Why is blue-green deployment needed?
What is canary deployment?
What is rolling deployment?
What is A/B testing in deployment?
What are feature toggles?
What advanced AWS resources have you worked with?
How are hosted modules like AI/ML deployed in AWS?
What is containerization in AI/ML modules?
Packaging the modules into Docker containers for portability.
What is Infrastructure Provisioning?
Using IaC (e.g., CloudFormation) to set up necessary AWS resources.
What is Deployment Automation?
Using tools like AWS CodeDeploy to deploy containers to provisioned infrastructure.
What is Configuration Management?
Using tools like Ansible or Puppet to configure modules based on requirements.
What are Environment Variables used for?
To inject different configurations for different environments (development, testing, production).
What do Auto Scaling Groups do?
Automatically adjust the number of instances based on load.
What is the purpose of Elastic Load Balancing?
Distribute traffic across multiple instances for high availability.
What is Serverless Computing?
Using services like AWS Lambda to scale AI/ML workloads dynamically.
What technology did the author learn about?
Apache Kafka, a distributed streaming platform for real-time data processing.
What was the author's learning process for Kafka?
Read documentation, watched tutorials, experimented, and joined online communities.
What was the application of Kafka?
Implemented Kafka to handle high-volume event streams, improving processing efficiency.
What is a challenge faced by DevOps engineers?
Managing complex cloud environments with multiple services and dependencies.
What is a challenge related to automation?
Finding the right balance between automation and manual intervention.
What is a security challenge in DevOps?
Ensuring the security of cloud infrastructure and applications.
What is a collaboration challenge for DevOps engineers?
Working effectively with developers, operations teams, and stakeholders.
What is a challenge of continuous learning in DevOps?
Keeping up with the rapid pace of change in the cloud computing landscape.
What was the incident faced by the author?
A production application experienced slow performance due to a database query bottleneck.
How did the author resolve the incident?
Analyzed logs, profiled the database, identified the inefficient query, and optimized it.
What experience does the author have with large-scale databases?
Managed large-scale databases like MySQL and PostgreSQL, including backups and replication.
What tools did the author use for backups?
Used Percona XtraBackup for MySQL and pg_dump for PostgreSQL backups.
What strategy is used to prevent data loss in critical applications?
A multi-layered approach including redundancy, backups, and disaster recovery plans.
What is the role of redundancy in data loss prevention?
Use multiple data centers or cloud regions for replication and failover.
What is the importance of backups in critical applications?
Implement frequent and automated backups to multiple locations.
What does version control do in data loss prevention?
Tracks changes to data and maintains historical versions.
What does monitoring do in data loss prevention?
Monitors database health and performance to detect potential issues early.
What is a disaster recovery plan?
Develop a comprehensive plan to restore data and services in case of failure.
What is the purpose of monitoring in database management?
To monitor database health and performance to detect potential issues early.
What is a disaster recovery plan?
A comprehensive plan to restore data and services in case of an outage.
What types of cyberattacks have you faced?
Encountered security incidents like brute-force attacks and attempts to exploit vulnerabilities.
What are some precautions against cyberattacks?
What is vulnerability scanning?
Regularly scanning systems for vulnerabilities and patching them promptly.
What is the purpose of security monitoring?
Use SIEM tools to monitor for suspicious activity.
What is an incident response plan?
A plan to respond to security incidents effectively.
What are the networking setup rules you follow?
What are your daily responsibilities as a DevOps engineer?
What DevOps tools are you proficient with?
What does the CI/CD workflow involve?
How do you handle continuous delivery (CD)?
What methods do you use to check for code vulnerabilities?
What is Static Code Analysis?
Use tools like SonarQube or Snyk to analyze code for vulnerabilities and security issues.
What is Dynamic Code Analysis?
Use tools like Burp Suite or ZAP to test the application in runtime for vulnerabilities.
What is Security Scanning?
Use tools like AWS Inspector or Qualys to scan infrastructure and applications for vulnerabilities.
What are the Compute services in AWS?
What are the Storage services in AWS?
What are the Networking services in AWS?
What are the Database services in AWS?
What are the CI/CD services in AWS?
What are the Security services in AWS?
What are the Monitoring services in AWS?
How to access data in an S3 bucket from Account A when running in Account B?
How to provide access to an S3 bucket?
What are common S3 bucket permissions?
How can Instance 2 communicate with Instance 1 in a private subnet?
Use a NAT gateway or a bastion host.
How can an EC2 instance in a private subnet access the internet without a NAT gateway?
What is the typical latency for a load balancer?
Ranges from a few milliseconds to a few hundred milliseconds.
What are the monitoring steps for high load balancer latency?
How to reduce latency for an S3 hosted application?
What is the purpose of udFront?
To cache content at edge locations closer to users, reducing latency.
What are Regional Buckets used for?
Store data in S3 buckets in the same region as the users, minimizing network hops.
What do Content Delivery Networks (CDNs) do?
Distribute content across multiple locations, reducing latency for users worldwide.
What can be integrated with a CDN?
How to dynamically retrieve VPC details from AWS?
Use Terraform's data sources: 1. aws_vpc Data Source 2. aws_subnet Data Source 3. aws_security_group Data Source 4. aws_instance Data Source
How to manage unmanaged resources in Terraform?
Use Terraform import command to bring existing unmanaged resources under Terraform's control.
How to pass arguments to VPC during import?
Use the --var flag with the terraform import command: terraform import aws_vpc.example 'vpc-1234567890abcdef0' --var='cidr_block=10.0.0.0/16'
What is the master-slave architecture in Jenkins?
Distributes build tasks across multiple nodes (slaves) for: - Parallel Execution - Resource Optimization - Scalability
How to integrate LDAP with AWS and Jenkins?
What are key features of GitHub?
What are key features of Jenkins?
What are the benefits of CI/CD?
What are the uses of CI/CD?
What are the uses of CI/CD?
What is a GitHub workflow?
A GitHub workflow is a set of automated tasks triggered by events in a repository.
What tasks can you perform with GitHub workflows?
How do you handle merge conflicts in Git?
What steps to take when a build fails in Jenkins?
How can you execute jobs in AWS?
What are Ansible roles?
Ansible roles organize and reuse playbooks, encapsulating tasks, variables, and dependencies.
How do you use Ansible roles?
How do you ensure data persistence with Docker volumes?
What are the key differences between Docker and Kubernetes?
How do you securely store credentials in GitHub?
Where is the Jenkinsfile typically stored?
The Jenkinsfile is typically stored in the root directory of your Git repository.
How is pull request approval managed in GitHub?
GitHub provides features for managing pull request approvals, including required approvers.
Where is the Jenkinsfile typically stored?
In the root directory of your Git repository.
How is pull request approval managed in GitHub?
How do you execute a shell script within a Python script?
Use the subprocess module: <code>python import subprocess subprocess.run(['/path/to/script.sh'])</code>
How do you ensure data persistence with Docker volumes?
What are the key differences between Docker and Kubernetes?
How do you securely store credentials in GitHub?
How do you deploy an application in a Kubernetes cluster?
How do you communicate with a Jenkins server and a Kubernetes cluster?
How do you generate Kubernetes cluster credentials?
What can you update in Kubernetes besides Docker images?
What can you update in Kubernetes?
What types of pipelines are there in Jenkins?
How can you define environment variables in Jenkins pipeline?
What are artifacts in Jenkins?
How to separate packages for local Python deployment?
What are prerequisites before importing a VPC in Terraform?
How to handle manual policy added to an S3 bucket created by Terraform?
How to handle credentials for a PHP application in Docker?
What is the command for running container logs?
Use <code>docker logs <container_id or container_name></code>.
What is the capital of France?
Paris
Who was the first president of the United States?
George Washington
What is the largest planet in our solar system?
Jupiter
What is the formula for the area of a circle?
( A = \pi r^2 )
What is the formula for standard deviation?
( \sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}} )
What are the parts of a neuron?
Who were the first 5 presidents of the United States?
What types of applications have you deployed?
How should secrets be injected in Kubernetes?
Use Kubernetes Secrets instead of ConfigMaps. Secrets can be injected into pods via environment variables or mounted as files.
How to find which pod is using more resources?
Use the command <code>kubectl top pod --all-namespaces</code> to list resource usage by pods. Combine with <code>kubectl describe pod <pod-name></code> for detailed usage.
How to find which worker node is consuming more resources?
Use the command <code>kubectl top nodes</code> to see CPU and memory usage on each node.
What are the steps for configuring Prometheus and Grafana?
How to visualize metrics of 20 pods in Grafana?
Configure Grafana to use Prometheus as the data source. Use existing or create custom dashboards for metrics visualization.
What is Apache Kafka?
Apache Kafka is a distributed event streaming platform for building real-time data pipelines and streaming applications.
How to set up a Docker Hub private registry?
What is the difference between a hard link and a soft link?
What is the use of the break command in shell scripting?
The <code>break</code> command exits a loop prematurely when a specific condition is met.
How to count the number of 'devops' words in HTML files?
Use the command: <code>grep -o -i "devops" *.html | wc -l</code>.
- <code>grep</code> searches for 'devops' in HTML files.
- <code>wc -l</code> counts occurrences.
What is the terraform taint command?
The <code>terraform taint</code> command marks a resource for recreation during the next <code>terraform apply</code>. It destroys the resource and creates a new instance.
What is the syntax to taint a resource in Terraform?
<code>terraform taint <resource_address></code>
How do you secure a state file in Terraform?
What happens if you run terraform apply after deleting VMs manually?
Terraform will recreate the missing VMs to match the state defined in your configuration, resulting in 100 VMs again.
What is the syntax for for_each in Terraform?
<code>resource "aws_instance" "example" { for_each = var.instances ami = each.value["ami"] instance_type = each.value["instance_type"] tags = { Name = each.key } }</code>
What are the advantages of multi-stage builds in Docker?
What are the disadvantages of multi-stage builds in Docker?
How do you deploy containers on different hosts within a Docker cluster?
Use Docker Swarm or Kubernetes for orchestration.
How to deploy a web container on one host and a DB container on another in Docker Compose?
Use Docker Compose with separate service definitions for each host.
How do you deploy the web container on one host and the DB container on another using Docker Compose?
What is bridge networking in Docker?
What is host networking in Docker?
What are the steps to resolve merge conflicts?
What command changes the existing commit message?
Use: <code>git commit --amend -m 'New commit message'</code>. If pushed, use: <code>git push --force</code>.
What is session affinity?
What is pod affinity and its use case?
What is the difference between pod affinity and pod anti-affinity?
What is Pod Affinity in Kubernetes?
Running frontend and backend on the same node for low-latency communication.
What is Pod Anti-Affinity in Kubernetes?
Ensuring replicas of the same application are spread across different nodes to increase availability and fault tolerance.
What happens if a Readiness Probe fails?
The pod will be removed from the service endpoints, ensuring it does not receive traffic until it's ready.
What happens if a Liveness Probe fails?
Kubernetes will restart the pod, assuming it's in a failed state.
What is a simple Groovy pipeline for a Java Spring Boot application?
A pipeline that includes stages: Checkout, Build, Push, Approval, and Deploy.
What does the Checkout stage do in a Groovy pipeline?
It checks out the code from the specified Git repository.
What command is used to build a Java Spring Boot application in the pipeline?
sh './mvnw clean package'
What command is used to push a Docker image in the pipeline?
sh 'docker push your-docker-repo/java-spring-boot-app'
What action does the Approval stage require?
It requires user input for approval to deploy to production.
How do you export test reports in Jenkins?
Use the Publish JUnit test result report post-build action to archive test reports.
What format should tests generate reports in for Jenkins?
Reports should be in standard formats like JUnit XML or HTML.
How do you scale pods in Kubernetes from 5 to 10?
Use the command: kubectl scale --replicas=10 deployment/<your-deployment-name>
What is the purpose of the terraform import command?
To import existing infrastructure resources into Terraform's state file.
What is the syntax for the terraform import command?
terraform import <resource_type>.<resource_name> <resource_id>
What is the configuration for Terraform backend in AWS?
backend 's3' { bucket = 'my-terraform-state-bucket' key = 'path/to/my/terraform.tfstate' region = 'us-west-2' dynamodb_table = 'terraform-lock-table' encrypt = true }
What is one significant issue faced with Terraform?
Managing Terraform state with multiple teams working on the same infrastructure.
What was a significant issue faced with Terraform?
Managing Terraform state with multiple teams working on the same infrastructure.
How was the Terraform state management issue resolved?
By organizing infrastructure into separate modules and using remote state management with proper locking mechanisms.
What are the types of storage accounts in AWS S3?
What does lifecycle management in S3 allow you to do?
Define rules to transition objects between storage classes or delete them after a certain period.
How can you set up lifecycle policies in S3?
Using the S3 Management Console, AWS CLI, or Terraform with a JSON configuration file.
What are the main types of load balancers?
What are the benefits of using load balancers?
Improve fault tolerance, scalability, and ensure high availability.
What are Auto Scaling Groups (ASG)?
Groups that automatically scale the number of instances based on demand.
How do ASGs maintain application performance?
By adjusting desired capacity based on metrics like CPU utilization.
Can you provide a simple Dockerfile example?
<code>Dockerfile FROM node:14 WORKDIR /app COPY package.json . RUN npm install COPY . . EXPOSE 3000 CMD ["npm", "start"]</code>
How do you expose an application in Kubernetes to the public internet?
Using a Kubernetes Service of type LoadBalancer or NodePort.
How do you access an application internally within a Kubernetes cluster?
By using a ClusterIP service.
What is the purpose of a ConfigMap in Kubernetes?
Store non-confidential configuration data in key-value pairs.
What services are considered for a CI/CD pipeline in AWS?
How would you manage unusually high traffic for an e-commerce application?
Ensure ASGs are configured to handle demand, verify load balancers distribute traffic, and enable caching (e.g., Amazon CloudFront).
What is a strategy to reduce load on backend servers?
Enable caching (e.g., using Amazon CloudFront).
How to upgrade for high availability in AWS?
Deploy multiple instances across different Availability Zones (AZs).
What is the role of a Load Balancer for high availability?
Distributes traffic across multiple instances.
What is a way to ensure data availability for databases?
Use Multi-AZ deployments for databases like RDS.
How to manage the backend RDS database during auto-scaling?
Enable Multi-AZ for high availability and automatic failover.
How can you scale RDS based on workload?
Scale vertically (instance size) or horizontally (read replicas).
How to set up cross-account access for S3?
Create an IAM role in production account with necessary permissions.
How can Account A access Account B’s S3 bucket?
Set up a bucket policy in Account B granting permissions to Account A.
What is needed for Account A to assume a role in Account B?
Create an IAM role in Account B with S3 permissions.
What does the STS AssumeRole policy do?
Allows a user or service to assume a role in another account, providing temporary credentials.
How was a sudden traffic spike issue resolved?
Scaled database vertically and added read replicas, optimized slow queries.
What is the difference between CMD and ENTRYPOINT in Docker?
CMD provides default arguments for the container.
What is the difference between CMD and ENTRYPOINT in Docker?
What does ENTRYPOINT do in Docker?
Ensures a specific executable runs, e.g., <code>ENTRYPOINT ["python", "app.py"]</code> always executes <code>app.py</code>.
Have you ever managed an application single-handedly?
Yes, I managed applications by handling deployment, monitoring, troubleshooting, and scaling, including infrastructure setup and CI/CD pipelines.
What are the benefits of Infrastructure as Code (IaC)?
What are different ways to create Infrastructure as Code?
What is the difference between public and private networking?
What is a Docker registry and why do we need it?
What is a secrets manager?
A tool that securely stores sensitive information like API keys and passwords. Examples: AWS Secrets Manager, HashiCorp Vault, Azure Key Vault.
What is the secure way to manage sensitive information?
What is the main purpose of Docker?
Developing, shipping, and running applications inside containers.
What is the main purpose of Kubernetes?
Automating deployment, scaling, and management of containerized applications.
What is the first step in an end-to-end deployment process?
Code Commit: Developers push code changes to version control.
How do you use Kubernetes instead of EC2?
Deploy applications on a Kubernetes cluster, set up EKS or another service.
How to handle multiple microservices on Kubernetes?
Use namespaces and manage deployment with Helm or CI/CD tools.
What triggers CI/CD pipelines in the setup with Jira?
When a ticket is marked as 'Done' or moved to a specific workflow stage.
What does a load balancer do?
Distributes incoming network traffic across multiple servers or services.
What is Cloud NAT?
A NAT service in cloud environments allowing private instances to connect to the internet securely.
What is the primary function of a Cloud NAT gateway?
Provides outbound internet access for private network instances without exposing them.
How does the author see themselves fitting into the role?
By leveraging technical expertise in infrastructure management and cloud technologies.
What skills does the author bring to the team?
Problem-solving skills and a proactive approach to ensuring system reliability.
What was an instance of cost optimization you implemented?
Describe a situation where a production instance crashed.
What is blue-green deployment?
Why is blue-green deployment needed?
What is canary deployment?
What is rolling deployment?
What is A/B testing in deployment?
What are feature toggles?
What advanced AWS resources have you worked with?
How are hosted modules like AI/ML deployed in AWS?
What is containerization in AI/ML modules?
Packaging the modules into Docker containers for portability.
What is Infrastructure Provisioning?
Using IaC (e.g., CloudFormation) to set up necessary AWS resources.
What is Deployment Automation?
Using tools like AWS CodeDeploy to deploy containers to provisioned infrastructure.
What is Configuration Management?
Using tools like Ansible or Puppet to configure modules based on requirements.
What are Environment Variables used for?
To inject different configurations for different environments (development, testing, production).
What is the purpose of Elastic Load Balancing?
Distribute traffic across multiple instances for high availability.
What technology did the author learn about?
Apache Kafka, a distributed streaming platform for real-time data processing.
What was the author's learning process for Kafka?
Read documentation, watched tutorials, experimented, and joined online communities.
What was the application of Kafka?
Implemented Kafka to handle high-volume event streams, improving processing efficiency.
What is a challenge faced by DevOps engineers?
Managing complex cloud environments with multiple services and dependencies.
What is a challenge related to automation?
Finding the right balance between automation and manual intervention.
What is a security challenge in DevOps?
Ensuring the security of cloud infrastructure and applications.
What is a collaboration challenge for DevOps engineers?
Working effectively with developers, operations teams, and stakeholders.
What is a challenge of continuous learning in DevOps?
Keeping up with the rapid pace of change in the cloud computing landscape.
What was the incident faced by the author?
A production application experienced slow performance due to a database query bottleneck.
How did the author resolve the incident?
Analyzed logs, profiled the database, identified the inefficient query, and optimized it.
What experience does the author have with large-scale databases?
Managed large-scale databases like MySQL and PostgreSQL, including backups and replication.
What tools did the author use for backups?
Used Percona XtraBackup for MySQL and pg_dump for PostgreSQL backups.
What strategy is used to prevent data loss in critical applications?
A multi-layered approach including redundancy, backups, and disaster recovery plans.
What is the role of redundancy in data loss prevention?
Use multiple data centers or cloud regions for replication and failover.
What is the importance of backups in critical applications?
Implement frequent and automated backups to multiple locations.
What does version control do in data loss prevention?
Tracks changes to data and maintains historical versions.
What does monitoring do in data loss prevention?
Monitors database health and performance to detect potential issues early.
What is a disaster recovery plan?
Develop a comprehensive plan to restore data and services in case of failure.
What is the purpose of monitoring in database management?
To monitor database health and performance to detect potential issues early.
What is a disaster recovery plan?
A comprehensive plan to restore data and services in case of an outage.
What types of cyberattacks have you faced?
Encountered security incidents like brute-force attacks and attempts to exploit vulnerabilities.
What are some precautions against cyberattacks?
What is vulnerability scanning?
Regularly scanning systems for vulnerabilities and patching them promptly.
What are the networking setup rules you follow?
What are your daily responsibilities as a DevOps engineer?
What DevOps tools are you proficient with?
What does the CI/CD workflow involve?
How do you handle continuous delivery (CD)?
What methods do you use to check for code vulnerabilities?
What is Static Code Analysis?
Use tools like SonarQube or Snyk to analyze code for vulnerabilities and security issues.
What is Dynamic Code Analysis?
Use tools like Burp Suite or ZAP to test the application in runtime for vulnerabilities.
What is Security Scanning?
Use tools like AWS Inspector or Qualys to scan infrastructure and applications for vulnerabilities.
How to access data in an S3 bucket from Account A when running in Account B?
How to provide access to an S3 bucket?
What are common S3 bucket permissions?
How can Instance 2 communicate with Instance 1 in a private subnet?
Use a NAT gateway or a bastion host.
How can an EC2 instance in a private subnet access the internet without a NAT gateway?
What is the typical latency for a load balancer?
Ranges from a few milliseconds to a few hundred milliseconds.
What are the monitoring steps for high load balancer latency?
How to reduce latency for an S3 hosted application?
What is the purpose of udFront?
To cache content at edge locations closer to users, reducing latency.
What are Regional Buckets used for?
Store data in S3 buckets in the same region as the users, minimizing network hops.
What do Content Delivery Networks (CDNs) do?
Distribute content across multiple locations, reducing latency for users worldwide.
What can be integrated with a CDN?
How to dynamically retrieve VPC details from AWS?
Use Terraform's data sources: 1. aws_vpc Data Source 2. aws_subnet Data Source 3. aws_security_group Data Source 4. aws_instance Data Source
How to manage unmanaged resources in Terraform?
Use Terraform import command to bring existing unmanaged resources under Terraform's control.
How to pass arguments to VPC during import?
Use the --var flag with the terraform import command: terraform import aws_vpc.example 'vpc-1234567890abcdef0' --var='cidr_block=10.0.0.0/16'
What is the master-slave architecture in Jenkins?
Distributes build tasks across multiple nodes (slaves) for: - Parallel Execution - Resource Optimization - Scalability
How to integrate LDAP with AWS and Jenkins?
What are key features of Jenkins?
What are the uses of CI/CD?
What is a GitHub workflow?
A GitHub workflow is a set of automated tasks triggered by events in a repository.
What tasks can you perform with GitHub workflows?
How do you handle merge conflicts in Git?
What steps to take when a build fails in Jenkins?
How can you execute jobs in AWS?
What are Ansible roles?
Ansible roles organize and reuse playbooks, encapsulating tasks, variables, and dependencies.
How do you use Ansible roles?
How do you ensure data persistence with Docker volumes?
What are the key differences between Docker and Kubernetes?
How do you securely store credentials in GitHub?
Where is the Jenkinsfile typically stored?
The Jenkinsfile is typically stored in the root directory of your Git repository.
How is pull request approval managed in GitHub?
GitHub provides features for managing pull request approvals, including required approvers.
How is pull request approval managed in GitHub?
How do you execute a shell script within a Python script?
Use the subprocess module: <code>python import subprocess subprocess.run(['/path/to/script.sh'])</code>
How do you ensure data persistence with Docker volumes?
What are the key differences between Docker and Kubernetes?
How do you securely store credentials in GitHub?
How do you deploy an application in a Kubernetes cluster?
How do you communicate with a Jenkins server and a Kubernetes cluster?
How do you generate Kubernetes cluster credentials?
What can you update in Kubernetes besides Docker images?
What can you update in Kubernetes?
What types of pipelines are there in Jenkins?
How can you define environment variables in Jenkins pipeline?
What are artifacts in Jenkins?
How to separate packages for local Python deployment?
What are prerequisites before importing a VPC in Terraform?
How to handle manual policy added to an S3 bucket created by Terraform?
How to handle credentials for a PHP application in Docker?
What is the command for running container logs?
Use <code>docker logs <container_id or container_name></code>.
What is the formula for standard deviation?
( \sigma = \sqrt{\frac{\sum_{i=1}^{N}(x_i - \mu)^2}{N}} )
Who were the first 5 presidents of the United States?
Are you sure you want to delete 0 flashcard(s)? This cannot be undone.
Select tags to remove from 0 selected flashcard(s):
Loading tags...