Searching the best prompts from our community
Automate pipelines, manage infrastructure, and deploy faster using AI prompts for DevOps workflows.
Create reusable Terraform module for multi-cloud deployment (AWS/Azure). Features: 1. Networking layer (VPC/VNet). 2. Variables for customization (instance types, regions). 3. State management with remote backend (S3/Blob). 4. Security groups and firewall rules. 5. Load balancer configuration. 6. Ou...
Design scalable serverless architecture on AWS. Components: 1. API Gateway for request routing and throttling. 2. AWS Lambda for business logic execution. 3. Amazon DynamoDB for NoSQL data storage. 4. Amazon Cognito for user authentication. 5. AWS Step Functions for workflow orchestration. 6. Amazon...
Implement zero-downtime deployments with Kubernetes. Setup: 1. Create blue and green deployment manifests with identical specs. 2. Configure service selector to route traffic between environments. 3. Implement health checks and readiness probes. 4. Set up Helm charts for version management. 5. Creat...
Build robust CI/CD automation pipeline. Workflow: 1. Set up multi-stage builds (test, build, deploy). 2. Implement automated testing (unit, integration, e2e). 3. Add code quality checks (linting, security scanning). 4. Configure Docker image building and optimization. 5. Set up environment-specific ...
Develop comprehensive penetration testing plan. Stages: 1. Scope definition and rules of engagement. 2. Reconnaissance and information gathering (OSINT). 3. Vulnerability scanning (automated tools). 4. Exploitation phase (SQLi, XSS, privilege escalation). 5. Post-exploitation and lateral movement. 6...
Implement GitOps methodology using ArgoCD for declarative, Git-driven continuous delivery and application lifecycle management. GitOps principles: 1. Git as single source of truth: all configuration in version control, declarative infrastructure. 2. Automated deployment: git commits trigger deployme...
Deploy and manage API gateways with rate limiting, authentication, and security controls for microservices architecture. API Gateway features: 1. Request routing: path-based routing, host headers, query parameters, weighted routing for A/B testing. 2. Protocol translation: REST to GraphQL, HTTP to g...
Implement Infrastructure as Code using Terraform for scalable, repeatable infrastructure provisioning. Terraform best practices: 1. Module structure: reusable components, input variables, output values, documentation. 2. State management: remote backends (S3 + DynamoDB), state locking, team collabor...
Deploy and manage applications on Kubernetes with advanced orchestration and scaling strategies. Cluster architecture: 1. Master nodes: API server, etcd, controller manager, scheduler (minimum 3 for HA). 2. Worker nodes: kubelet, kube-proxy, container runtime (Docker/containerd). 3. Networking: CNI ...
Design load balancing and high availability systems for fault-tolerant, scalable application infrastructure. Load balancing strategies: 1. Application Load Balancer (ALB): Layer 7 routing, host/path-based routing, SSL termination. 2. Network Load Balancer (NLB): Layer 4 performance, static IP addres...
Implement centralized logging with ELK Stack (Elasticsearch, Logstash, Kibana) for comprehensive log analysis and troubleshooting. ELK Stack architecture: 1. Elasticsearch: distributed search engine, 3-node cluster minimum, data replication factor 1. 2. Logstash: log processing pipeline, input plugi...
Build comprehensive monitoring and observability infrastructure for production systems. Monitoring stack architecture: 1. Metrics: Prometheus for collection, Grafana for visualization, 15-second scrape intervals. 2. Logging: ELK Stack (Elasticsearch, Logstash, Kibana) or EFK (Fluentd instead of Logs...
Design and implement multi-cloud architecture for vendor independence, geographic distribution, and improved reliability. Multi-cloud benefits: 1. Vendor independence: avoid lock-in, negotiate better pricing, access best-of-breed services. 2. Geographic coverage: global presence, data sovereignty co...
Automate network infrastructure management using modern tools and practices for scalable, reliable networking. Network automation tools: 1. Ansible networking: multi-vendor support (Cisco, Juniper, Arista), configuration templates, idempotent operations. 2. NAPALM: vendor-agnostic API, configuration...
Implement automated performance testing using JMeter and cloud scaling for application performance validation. JMeter test automation: 1. Test plan structure: thread groups, samplers, listeners, assertions for validation. 2. Parameterization: CSV data files, random variables, dynamic request generat...
Implement secure secrets management using HashiCorp Vault for centralized credential storage and dynamic secrets generation. Vault architecture: 1. Cluster setup: 3-node cluster for high availability, integrated storage with Raft consensus. 2. Authentication methods: LDAP/AD integration, Kubernetes ...
Deploy and manage serverless applications using AWS Lambda with infrastructure automation and monitoring best practices. Lambda function optimization: 1. Runtime selection: Node.js 18+ for JavaScript, Python 3.9+ for data processing, Go for performance. 2. Memory allocation: 128MB-10GB, CPU scales p...
Deploy and manage microservices communication using Istio service mesh for traffic management, security, and observability. Istio architecture: 1. Data plane: Envoy proxy sidecars, automatic injection, traffic interception. 2. Control plane: Pilot (traffic management), Citadel (security), Galley (co...
Design robust CI/CD pipelines that automate software delivery with quality gates and rollback mechanisms. Pipeline stages: 1. Source control integration: GitHub/GitLab webhooks trigger builds on commits. 2. Build automation: compile code, dependency resolution, artifact generation. 3. Testing suite:...
Implement automated security and compliance controls for cloud infrastructure using policy-as-code and security scanning tools. Security frameworks: 1. CIS Controls: 18 critical security controls, automated implementation and monitoring. 2. NIST Cybersecurity Framework: identify, protect, detect, re...
Automate server configuration and application deployment using Ansible for consistent, repeatable infrastructure management. Ansible architecture: 1. Control node: Ansible installation, inventory management, playbook execution. 2. Managed nodes: SSH access, Python installation, no agent required. 3....
Implement FinOps practices for cloud cost optimization through automated monitoring, rightsizing, and resource governance. Cost monitoring automation: 1. Billing alerts: budget thresholds (80%, 90%, 100%), department-level tracking, project-based allocation. 2. Resource tagging: mandatory tags for c...
Implement secure container image management with vulnerability scanning, signing, and policy enforcement. Registry security: 1. Private registries: Harbor, AWS ECR, Google Container Registry with RBAC access control. 2. Image signing: Docker Content Trust, Notary for image authenticity verification....
Implement database DevOps with automated schema migrations, backup strategies, and zero-downtime deployments. Migration frameworks: 1. Flyway: version-based migrations, checksum validation, rollback support, team collaboration. 2. Liquibase: XML/YAML changesets, database-agnostic, conditional execut...
Build comprehensive DevOps metrics dashboards for measuring team performance and continuous improvement initiatives. DORA metrics (DevOps Research and Assessment): 1. Deployment frequency: daily deployments for elite teams, weekly for high performers. 2. Lead time for changes: <1 hour for elite team...
Integrate security testing throughout the DevOps pipeline with Static and Dynamic Application Security Testing tools. SAST (Static Application Security Testing): 1. Code analysis: SonarQube, Checkmarx, Veracode for vulnerability detection during build phase. 2. IDE integration: real-time security fe...
Foster DevOps culture and collaboration practices for successful digital transformation and team productivity. Cultural transformation: 1. Shared responsibility: developers participate in on-call rotations, operations involved in planning. 2. Blameless postmortems: focus on system improvement, learn...
Design integrated DevOps toolchain for seamless automation workflow from development to production deployment. Toolchain architecture: 1. Source control: Git (GitHub/GitLab/Bitbucket), branching strategies, merge request workflows. 2. CI/CD: Jenkins/GitLab CI/GitHub Actions, pipeline orchestration, ...
Master Docker containerization for microservices with optimization and security best practices. Dockerfile optimization: 1. Multi-stage builds: separate build and runtime environments, reduce image size by 70-80%. 2. Base image selection: Alpine Linux for minimal footprint, distroless for security. ...
Implement chaos engineering practices for system resilience testing and failure mode discovery through controlled experiments. Chaos engineering principles: 1. Hypothesis formation: define steady state behavior, predict impact of injected failures. 2. Controlled experiments: gradual scope increase, ...
Implement comprehensive backup and disaster recovery automation for business continuity and data protection. Backup strategies: 1. 3-2-1 rule: 3 copies of data, 2 different media types, 1 offsite location. 2. Recovery objectives: RTO (Recovery Time Objective) <4 hours, RPO (Recovery Point Objective)...
Deploy edge computing solutions with CDN optimization for improved performance and global content delivery. Edge architecture: 1. Edge locations: global distribution, 50+ locations worldwide, <50ms latency to users. 2. Edge functions: serverless compute at edge, request processing, content personali...
Conduct cloud infrastructure cost optimization. Analysis areas: 1. Right-sizing over-provisioned instances. 2. Reserved instances and savings plans. 3. Spot instances for non-critical workloads. 4. Unused resources (idle instances, unattached volumes). 5. Data transfer costs optimization. 6. Storage...
Deploy Istio service mesh on Kubernetes. Features: 1. Automatic sidecar injection for traffic management. 2. Mutual TLS for service-to-service encryption. 3. Traffic routing (canary deployments, A/B testing). 4. Circuit breaking and retry policies. 5. Distributed tracing with Jaeger. 6. Service-leve...
Design a comprehensive database backup strategy. Components: 1. Automated daily full backups. 2. Incremental backups every 6 hours. 3. Point-in-time recovery capability. 4. Offsite backup storage (S3 Glacier). 5. Encryption at rest and in transit. 6. Backup verification and integrity checks. 7. Docu...
Create a Jenkins declarative pipeline for Java application. Stages: 1. Checkout code from Git. 2. Build with Maven. 3. Run unit tests and code coverage (JaCoCo). 4. Static code analysis (SonarQube). 5. Build Docker image. 6. Push to container registry. 7. Deploy to Kubernetes. 8. Run smoke tests. Us...
Implement HashiCorp Vault for secrets management. Configuration: 1. Initialize and unseal Vault cluster. 2. Enable authentication methods (AppRole, Kubernetes). 3. Create policies for least-privilege access. 4. Store secrets (database credentials, API keys). 5. Dynamic secrets for databases (auto-ro...
Configure Nginx as a high-performance reverse proxy. Features: 1. Load balancing across backend servers (round-robin, least-conn). 2. SSL/TLS termination with Let's Encrypt. 3. HTTP/2 and gzip compression. 4. Rate limiting and DDoS protection. 5. Caching static assets. 6. WebSocket support. 7. Custo...
Build centralized logging with ELK stack (Elasticsearch, Logstash, Kibana). Pipeline: 1. Filebeat agents on application servers. 2. Logstash for log parsing and enrichment. 3. Elasticsearch cluster for storage and indexing. 4. Kibana for visualization and search. 5. Index lifecycle management for re...
Implement GitOps workflow using ArgoCD. Setup: 1. Install ArgoCD on Kubernetes cluster. 2. Connect Git repository as source of truth. 3. Create Application manifests for each microservice. 4. Configure automated sync policies. 5. Set up health checks and sync waves. 6. Implement progressive delivery...
Design a serverless application on AWS. Architecture: 1. API Gateway for HTTP endpoints. 2. Lambda functions for business logic (Node.js/Python). 3. DynamoDB for NoSQL storage. 4. S3 for file uploads with presigned URLs. 5. EventBridge for scheduled tasks. 6. SQS for async processing. 7. CloudWatch ...
Automate server provisioning with Ansible playbooks. Tasks: 1. Install and configure Nginx with SSL. 2. Set up firewall rules (UFW). 3. Configure automatic security updates. 4. Deploy application from Git repository. 5. Set up log rotation and monitoring agents. 6. Create system users with SSH keys....
Optimize Docker images using multi-stage builds. Techniques: 1. Separate build and runtime stages. 2. Use slim base images (alpine, distroless). 3. Leverage layer caching with proper ordering. 4. Copy only necessary artifacts to final stage. 5. Use .dockerignore to exclude files. 6. Run as non-root ...
Set up comprehensive monitoring with Prometheus and Grafana. Components: 1. Prometheus server with service discovery. 2. Node Exporter for system metrics. 3. Application instrumentation with custom metrics. 4. Alertmanager for notifications (PagerDuty, Slack). 5. Grafana dashboards for visualization...
Provision AWS infrastructure using Terraform. Resources to create: 1. VPC with public and private subnets across 3 AZs. 2. ECS Fargate cluster for containerized apps. 3. RDS PostgreSQL with Multi-AZ and automated backups. 4. Application Load Balancer with SSL certificate. 5. S3 bucket for static ass...
Create production-ready Kubernetes manifests for a microservice. Resources: 1. Deployment with rolling update strategy and resource limits. 2. Service (ClusterIP) for internal communication. 3. Ingress with TLS termination. 4. ConfigMap for environment variables. 5. Secret for sensitive data. 6. Hor...
Build a production-grade CI/CD pipeline using GitHub Actions. Workflow: 1. Trigger on push to main and pull requests. 2. Run linting and unit tests in parallel. 3. Build Docker image with caching. 4. Run integration tests against test environment. 5. Deploy to staging on main branch merge. 6. Manual...