Interview Q&A · 200 questions · 31 answered publicly

AWS Cloud Engineer Interview Questions

Ordered by how often they're asked. Sign in free to see every answer, rate your confidence and run timed mock interviews.

  1. Most asked When should you choose EC2 over alternatives?

    Summary

    Choose EC2 when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads.

    Longer Answer

    EC2 is best viewed as virtual-machine compute with full OS and networking control. It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service.

    For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ALB, NLB, ASG, EBS, EFS, SSM, IAM, CloudWatch, Route 53, Secrets Manager, and Systems Manager Patch Manager.

    Key Points

    • EC2 is best viewed as virtual-machine compute with full OS and networking control
    • It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service
    • For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ALB, NLB, ASG, EBS, EFS, SSM, IAM, CloudWatch, Route 53, Secrets Manager, and Systems Manager Patch Manager
    • For 'When should you choose EC2 over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ALB, NLB, ASG, EBS, EFS, SSM, IAM, CloudWatch, Route 53, Secrets Manager, and Systems Manager Patch Manager.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose EC2 when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads.
    Practical tradeoff For 'When should you choose EC2 over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ALB, NLB, ASG, EBS, EFS, SSM, IAM, CloudWatch, Route 53, Secrets Manager, and Systems Manager Patch Manager.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  2. Most asked What are the most important security controls for EC2?

    Summary

    Secure EC2 with least privilege, network boundaries, encryption, logging, and continuous configuration checks.

    Longer Answer

    The concrete controls for EC2 are IAM instance profiles, least-privilege security groups, IMDSv2, SSM Session Manager, encrypted EBS volumes, patching, and hardened AMIs. Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction.

    A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Key Points

    • The concrete controls for EC2 are IAM instance profiles, least-privilege security groups, IMDSv2, SSM Session Manager, encrypted EBS volumes, patching, and hardened AMIs
    • Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction
    • A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected
    • For 'What are the most important security controls for EC2?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Secure EC2 with least privilege, network boundaries, encryption, logging, and continuous configuration checks.
    Practical tradeoff For 'What are the most important security controls for EC2?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  3. Most asked When should you choose Lambda over alternatives?

    Summary

    Choose Lambda when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers.

    Longer Answer

    Lambda is best viewed as serverless function compute for event-driven execution. It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service.

    For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with API Gateway, EventBridge, SQS, SNS, DynamoDB Streams, Kinesis, Step Functions, S3 events, ALB, Secrets Manager, and CloudWatch.

    Key Points

    • Lambda is best viewed as serverless function compute for event-driven execution
    • It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service
    • For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with API Gateway, EventBridge, SQS, SNS, DynamoDB Streams, Kinesis, Step Functions, S3 events, ALB, Secrets Manager, and CloudWatch
    • For 'When should you choose Lambda over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with API Gateway, EventBridge, SQS, SNS, DynamoDB Streams, Kinesis, Step Functions, S3 events, ALB, Secrets Manager, and CloudWatch.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose Lambda when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers.
    Practical tradeoff For 'When should you choose Lambda over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with API Gateway, EventBridge, SQS, SNS, DynamoDB Streams, Kinesis, Step Functions, S3 events, ALB, Secrets Manager, and CloudWatch.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  4. Most asked How does Lambda scale, and what usually breaks first at high traffic?

    Summary

    Lambda scales through concurrency per function and account, event-source scaling rules, reserved/provisioned concurrency, and downstream backpressure, but high traffic usually exposes downstream limits first.

    Longer Answer

    The scaling model is only one layer. A design also has to protect databases, caches, queues, third-party APIs, IP capacity, connection pools, and account quotas from being overwhelmed.

    In interviews, describe both the scaling control plane and the bottleneck you would monitor first during a load test.

    Key Points

    • The scaling model is only one layer
    • A design also has to protect databases, caches, queues, third-party APIs, IP capacity, connection pools, and account quotas from being overwhelmed
    • In interviews, describe both the scaling control plane and the bottleneck you would monitor first during a load test
    • For 'How does Lambda scale, and what usually breaks first at high traffic?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. In interviews, describe both the scaling control plane and the bottleneck you would monitor first during a load test.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Lambda scales through concurrency per function and account, event-source scaling rules, reserved/provisioned concurrency, and downstream backpressure, but high traffic usually exposes downstream limits first.
    Practical tradeoff For 'How does Lambda scale, and what usually breaks first at high traffic?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. In interviews, describe both the scaling control plane and the bottleneck you would monitor first during a load test.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  5. Most asked What are the practical limitations of Lambda engineers should plan around?

    Summary

    The practical limitations of Lambda include timeout, memory/CPU sizing, package size, concurrency quotas, cold starts, payload limits, ephemeral storage, and VPC networking setup.

    Longer Answer

    Experienced engineers design with these limits visible in runbooks, alarms, load tests, and capacity plans. A limit is not a problem if the architecture has margin and a known response path.

    The answer should separate adjustable service quotas from hard architectural constraints, because the mitigation is different.

    Key Points

    • Experienced engineers design with these limits visible in runbooks, alarms, load tests, and capacity plans
    • A limit is not a problem if the architecture has margin and a known response path
    • The answer should separate adjustable service quotas from hard architectural constraints, because the mitigation is different
    • For 'What are the practical limitations of Lambda engineers should plan around?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. The answer should separate adjustable service quotas from hard architectural constraints, because the mitigation is different.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea The practical limitations of Lambda include timeout, memory/CPU sizing, package size, concurrency quotas, cold starts, payload limits, ephemeral storage, and VPC networking setup.
    Practical tradeoff For 'What are the practical limitations of Lambda engineers should plan around?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. The answer should separate adjustable service quotas from hard architectural constraints, because the mitigation is different.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  6. Most asked What are the most important security controls for Lambda?

    Summary

    Secure Lambda with least privilege, network boundaries, encryption, logging, and continuous configuration checks.

    Longer Answer

    The concrete controls for Lambda are least-privilege execution roles, resource policies, VPC access when needed, encrypted environment variables, Secrets Manager, code signing, and scoped event sources. Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction.

    A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Key Points

    • The concrete controls for Lambda are least-privilege execution roles, resource policies, VPC access when needed, encrypted environment variables, Secrets Manager, code signing, and scoped event sources
    • Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction
    • A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected
    • For 'What are the most important security controls for Lambda?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Secure Lambda with least privilege, network boundaries, encryption, logging, and continuous configuration checks.
    Practical tradeoff For 'What are the most important security controls for Lambda?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  7. Most asked Compare Lambda with adjacent AWS options for the same problem space.

    Summary

    Compare Lambda by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.

    Longer Answer

    The right AWS service is the one whose abstraction matches the workload. For Lambda, strengths are tied to work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers; weaknesses show up when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs.

    A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions.

    Key Points

    • The right AWS service is the one whose abstraction matches the workload
    • For Lambda, strengths are tied to work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers; weaknesses show up when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs
    • A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions
    • For 'Compare Lambda with adjacent AWS options for the same problem space.', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Compare Lambda by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
    Practical tradeoff A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions.

    Permalink

  8. Most asked When should you choose ECS Service over alternatives?

    Summary

    Choose ECS Service when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide.

    Longer Answer

    ECS Service is best viewed as managed container orchestration for long-running services and tasks. It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service.

    For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ECR, ALB, NLB, Cloud Map, App Mesh, IAM, Secrets Manager, SSM, CloudWatch, EventBridge, SQS, and CodeDeploy.

    Key Points

    • ECS Service is best viewed as managed container orchestration for long-running services and tasks
    • It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service
    • For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ECR, ALB, NLB, Cloud Map, App Mesh, IAM, Secrets Manager, SSM, CloudWatch, EventBridge, SQS, and CodeDeploy
    • For 'When should you choose ECS Service over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ECR, ALB, NLB, Cloud Map, App Mesh, IAM, Secrets Manager, SSM, CloudWatch, EventBridge, SQS, and CodeDeploy.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose ECS Service when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide.
    Practical tradeoff For 'When should you choose ECS Service over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with ECR, ALB, NLB, Cloud Map, App Mesh, IAM, Secrets Manager, SSM, CloudWatch, EventBridge, SQS, and CodeDeploy.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  9. Most asked What are the most important security controls for ECS Service?

    Summary

    Secure ECS Service with least privilege, network boundaries, encryption, logging, and continuous configuration checks.

    Longer Answer

    The concrete controls for ECS Service are task roles, execution roles, private subnets, security groups per service, secrets injection, image scanning, least-privilege IAM, and network boundaries. Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction.

    A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Key Points

    • The concrete controls for ECS Service are task roles, execution roles, private subnets, security groups per service, secrets injection, image scanning, least-privilege IAM, and network boundaries
    • Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction
    • A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected
    • For 'What are the most important security controls for ECS Service?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Secure ECS Service with least privilege, network boundaries, encryption, logging, and continuous configuration checks.
    Practical tradeoff For 'What are the most important security controls for ECS Service?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  10. Most asked Compare ECS Service with adjacent AWS options for the same problem space.

    Summary

    Compare ECS Service by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.

    Longer Answer

    The right AWS service is the one whose abstraction matches the workload. For ECS Service, strengths are tied to you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide; weaknesses show up when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.

    A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions.

    Key Points

    • The right AWS service is the one whose abstraction matches the workload
    • For ECS Service, strengths are tied to you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide; weaknesses show up when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS
    • A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions
    • For 'Compare ECS Service with adjacent AWS options for the same problem space.', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Compare ECS Service by workload fit: control, operational burden, scaling behavior, latency, networking, and cost.
    Practical tradeoff A good comparison names at least one alternative and explains the tradeoff rather than reciting service definitions.

    Permalink

  11. Most asked When should you choose VPC over alternatives?

    Summary

    Choose VPC when you need controlled network boundaries, private subnets, routing, security segmentation, private service access, or hybrid connectivity.

    Longer Answer

    VPC is best viewed as isolated virtual network foundation for AWS workloads. It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service.

    For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda VPC access, RDS, ElastiCache, PrivateLink, Transit Gateway, Route 53 Resolver, Network Firewall, ALB, NLB, and Direct Connect.

    Key Points

    • VPC is best viewed as isolated virtual network foundation for AWS workloads
    • It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service
    • For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda VPC access, RDS, ElastiCache, PrivateLink, Transit Gateway, Route 53 Resolver, Network Firewall, ALB, NLB, and Direct Connect
    • For 'When should you choose VPC over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda VPC access, RDS, ElastiCache, PrivateLink, Transit Gateway, Route 53 Resolver, Network Firewall, ALB, NLB, and Direct Connect.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose VPC when you need controlled network boundaries, private subnets, routing, security segmentation, private service access, or hybrid connectivity.
    Practical tradeoff For 'When should you choose VPC over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda VPC access, RDS, ElastiCache, PrivateLink, Transit Gateway, Route 53 Resolver, Network Firewall, ALB, NLB, and Direct Connect.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  12. Most asked What are the most important security controls for VPC?

    Summary

    Secure VPC with least privilege, network boundaries, encryption, logging, and continuous configuration checks.

    Longer Answer

    The concrete controls for VPC are security groups, NACLs, route isolation, private subnets, VPC endpoints, flow logs, network firewall, least-routable design, and controlled ingress/egress. Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction.

    A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Key Points

    • The concrete controls for VPC are security groups, NACLs, route isolation, private subnets, VPC endpoints, flow logs, network firewall, least-routable design, and controlled ingress/egress
    • Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction
    • A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected
    • For 'What are the most important security controls for VPC?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Secure VPC with least privilege, network boundaries, encryption, logging, and continuous configuration checks.
    Practical tradeoff For 'What are the most important security controls for VPC?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  13. Most asked When should you choose ALB over alternatives?

    Summary

    Choose ALB when you need HTTP routing, TLS termination, host/path rules, target health checks, WebSockets, redirects, fixed responses, or routing to EC2/ECS/Lambda targets.

    Longer Answer

    ALB is best viewed as Layer 7 application load balancer for HTTP and HTTPS traffic. It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service.

    For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda targets, ACM, WAF, Cognito/OIDC auth, CloudWatch, S3 access logs, Route 53, Global Accelerator, and CodeDeploy.

    Key Points

    • ALB is best viewed as Layer 7 application load balancer for HTTP and HTTPS traffic
    • It fits when the workload characteristics align with its strengths rather than when a team simply defaults to a familiar service
    • For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda targets, ACM, WAF, Cognito/OIDC auth, CloudWatch, S3 access logs, Route 53, Global Accelerator, and CodeDeploy
    • For 'When should you choose ALB over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda targets, ACM, WAF, Cognito/OIDC auth, CloudWatch, S3 access logs, Route 53, Global Accelerator, and CodeDeploy.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose ALB when you need HTTP routing, TLS termination, host/path rules, target health checks, WebSockets, redirects, fixed responses, or routing to EC2/ECS/Lambda targets.
    Practical tradeoff For 'When should you choose ALB over alternatives?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. For this question, mention the business and operational drivers: control, scaling shape, security boundaries, cost model, and how the service integrates with EC2, ECS, Lambda targets, ACM, WAF, Cognito/OIDC auth, CloudWatch, S3 access logs, Route 53, Global Accelerator, and CodeDeploy.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  14. Most asked What are the most important security controls for ALB?

    Summary

    Secure ALB with least privilege, network boundaries, encryption, logging, and continuous configuration checks.

    Longer Answer

    The concrete controls for ALB are ACM TLS certificates, security groups, WAF, listener policies, HTTP to HTTPS redirects, target security groups, and access log controls. Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction.

    A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Key Points

    • The concrete controls for ALB are ACM TLS certificates, security groups, WAF, listener policies, HTTP to HTTPS redirects, target security groups, and access log controls
    • Security design should cover identity, ingress, egress, secrets, auditability, patching/configuration, and blast-radius reduction
    • A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected
    • For 'What are the most important security controls for ALB?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Secure ALB with least privilege, network boundaries, encryption, logging, and continuous configuration checks.
    Practical tradeoff For 'What are the most important security controls for ALB?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer avoids vague 'use IAM' language and names who can call what, from where, with which credentials, and how violations are detected.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  15. Most asked EC2 vs Lambda: when should each be the primary compute layer?

    Summary

    Choose between Lambda vs EC2 by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers. It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs. EC2 fits when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads. It is weaker when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers
    • It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs
    • EC2 fits when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads
    • For 'EC2 vs Lambda: when should each be the primary compute layer?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between Lambda vs EC2 by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  16. Most asked ECS Service vs Lambda for APIs: what are the key scaling and operations tradeoffs?

    Summary

    Choose between Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers. It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs. ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide. It is weaker when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers
    • It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs
    • ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide
    • For 'ECS Service vs Lambda for APIs: what are the key scaling and operations tradeoffs?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  17. Most asked API Gateway vs ALB for HTTP APIs: how do you decide?

    Summary

    Choose between API Gateway vs ALB by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    API Gateway fits when you need managed authentication hooks, request validation, throttling, usage plans, API keys, transformations, stages, or direct Lambda/service integration. It is weaker when you need ultra-low-cost high-throughput simple HTTP routing, long-lived streaming, large payloads, or full load-balancer control. ALB fits when you need HTTP routing, TLS termination, host/path rules, target health checks, WebSockets, redirects, fixed responses, or routing to EC2/ECS/Lambda targets. It is weaker when you need static IPs, ultra-low latency Layer 4 pass-through, non-HTTP protocols, or API-management features such as usage plans and request validation.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • API Gateway fits when you need managed authentication hooks, request validation, throttling, usage plans, API keys, transformations, stages, or direct Lambda/service integration
    • It is weaker when you need ultra-low-cost high-throughput simple HTTP routing, long-lived streaming, large payloads, or full load-balancer control
    • ALB fits when you need HTTP routing, TLS termination, host/path rules, target health checks, WebSockets, redirects, fixed responses, or routing to EC2/ECS/Lambda targets
    • For 'API Gateway vs ALB for HTTP APIs: how do you decide?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between API Gateway vs ALB by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  18. Most asked When should ECS Service be fronted by ALB instead of API Gateway?

    Summary

    Choose between API Gateway vs ECS Service vs ALB by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    API Gateway fits when you need managed authentication hooks, request validation, throttling, usage plans, API keys, transformations, stages, or direct Lambda/service integration. It is weaker when you need ultra-low-cost high-throughput simple HTTP routing, long-lived streaming, large payloads, or full load-balancer control. ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide. It is weaker when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS. ALB fits when you need HTTP routing, TLS termination, host/path rules, target health checks, WebSockets, redirects, fixed responses, or routing to EC2/ECS/Lambda targets. It is weaker when you need static IPs, ultra-low latency Layer 4 pass-through, non-HTTP protocols, or API-management features such as usage plans and request validation.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • API Gateway fits when you need managed authentication hooks, request validation, throttling, usage plans, API keys, transformations, stages, or direct Lambda/service integration
    • It is weaker when you need ultra-low-cost high-throughput simple HTTP routing, long-lived streaming, large payloads, or full load-balancer control
    • ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide
    • For 'When should ECS Service be fronted by ALB instead of API Gateway?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between API Gateway vs ECS Service vs ALB by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  19. Most asked How do you avoid NAT bottlenecks in private-subnet architectures using ECS or Lambda?

    Summary

    Choose between Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers. It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs. ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide. It is weaker when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers
    • It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs
    • ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide
    • For 'How do you avoid NAT bottlenecks in private-subnet architectures using ECS or Lambda?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  20. Most asked How do you secure east-west traffic in a VPC for ECS and EC2 workloads?

    Summary

    Choose between EC2 vs ECS Service vs VPC by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    EC2 fits when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads. It is weaker when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms. ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide. It is weaker when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS. VPC fits when you need controlled network boundaries, private subnets, routing, security segmentation, private service access, or hybrid connectivity. It is weaker when you are designing a purely managed public service with no private networking needs, though most production AWS environments still rely on VPC design somewhere.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • EC2 fits when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads
    • It is weaker when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms
    • ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide
    • For 'How do you secure east-west traffic in a VPC for ECS and EC2 workloads?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between EC2 vs ECS Service vs VPC by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  21. Most asked When should VPC endpoints be mandatory in this architecture?

    Summary

    Choose between EC2 vs Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.

    Longer Answer

    EC2 fits when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads. It is weaker when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms. Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers. It is weaker when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs. ECS Service fits when you want container packaging, predictable services, background workers, sidecars, custom runtimes, or more runtime control than functions provide. It is weaker when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.

    A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Key Points

    • EC2 fits when you need OS-level control, custom agents, specialized runtimes, long-running processes, or migration compatibility with existing server workloads
    • It is weaker when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms
    • Lambda fits when work is event-driven, stateless, bursty, short-to-medium duration, and benefits from not managing servers
    • For 'When should VPC endpoints be mandatory in this architecture?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target. Then map that constraint to the service rather than picking by habit.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Choose between EC2 vs Lambda vs ECS Service by matching the workload shape to each service's control model, scaling behavior, operational burden, latency needs, and cost model.
    Practical tradeoff A strong tradeoff answer names the deciding constraint first: request volume, duration, cold-start tolerance, private networking, protocol needs, team operations model, compliance boundary, and failure recovery target.

    Permalink

  22. Most asked When is EC2 a poor fit, and what would you pick instead?

    Summary

    EC2 is a poor fit when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms.

    Longer Answer

    Avoiding EC2 is not a criticism of the service; it means the workload asks for a different abstraction. The wrong choice usually creates unnecessary cost, latency, operational work, or quota pressure.

    A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Key Points

    • Avoiding EC2 is not a criticism of the service; it means the workload asks for a different abstraction
    • The wrong choice usually creates unnecessary cost, latency, operational work, or quota pressure
    • A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape
    • For 'When is EC2 a poor fit, and what would you pick instead?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea EC2 is a poor fit when the workload is short-lived, event-driven, highly spiky, or better served by managed containers or serverless platforms.
    Practical tradeoff For 'When is EC2 a poor fit, and what would you pick instead?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  23. Most asked How do you make EC2 highly available across AZ failures?

    Summary

    Make EC2 highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.

    Longer Answer

    For EC2, the service-specific pattern is multi-AZ Auto Scaling behind an ALB or NLB with stateless instances and externalized state. Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment.

    A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Key Points

    • For EC2, the service-specific pattern is multi-AZ Auto Scaling behind an ALB or NLB with stateless instances and externalized state
    • Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment
    • A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage
    • For 'How do you make EC2 highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Make EC2 highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.
    Practical tradeoff For 'How do you make EC2 highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  24. Most asked How do you optimize cost for EC2 without hurting reliability?

    Summary

    Optimize EC2 cost by matching capacity to demand, removing idle work, and using the pricing dimensions that matter for the service.

    Longer Answer

    For EC2, the main cost levers are rightsizing, Graviton where compatible, Savings Plans, Reserved Instances, Spot for interruptible capacity, schedules, and idle-resource cleanup. Cost work should preserve SLOs, security, and recovery goals rather than simply shrinking resources.

    The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade.

    Key Points

    • For EC2, the main cost levers are rightsizing, Graviton where compatible, Savings Plans, Reserved Instances, Spot for interruptible capacity, schedules, and idle-resource cleanup
    • Cost work should preserve SLOs, security, and recovery goals rather than simply shrinking resources
    • The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade
    • For 'How do you optimize cost for EC2 without hurting reliability?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Optimize EC2 cost by matching capacity to demand, removing idle work, and using the pricing dimensions that matter for the service.
    Practical tradeoff For 'How do you optimize cost for EC2 without hurting reliability?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  25. Most asked When is Lambda a poor fit, and what would you pick instead?

    Summary

    Lambda is a poor fit when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs.

    Longer Answer

    Avoiding Lambda is not a criticism of the service; it means the workload asks for a different abstraction. The wrong choice usually creates unnecessary cost, latency, operational work, or quota pressure.

    A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Key Points

    • Avoiding Lambda is not a criticism of the service; it means the workload asks for a different abstraction
    • The wrong choice usually creates unnecessary cost, latency, operational work, or quota pressure
    • A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape
    • For 'When is Lambda a poor fit, and what would you pick instead?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Lambda is a poor fit when you need long-running execution, stable low-latency warm capacity without provisioned concurrency, heavy local state, custom kernel/runtime control, or very large package/runtime needs.
    Practical tradeoff For 'When is Lambda a poor fit, and what would you pick instead?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  26. Most asked How do you make Lambda highly available across AZ failures?

    Summary

    Make Lambda highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.

    Longer Answer

    For Lambda, the service-specific pattern is regional managed availability with stateless handlers, durable event sources, retries, DLQs/destinations, and idempotent processing. Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment.

    A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Key Points

    • For Lambda, the service-specific pattern is regional managed availability with stateless handlers, durable event sources, retries, DLQs/destinations, and idempotent processing
    • Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment
    • A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage
    • For 'How do you make Lambda highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Make Lambda highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.
    Practical tradeoff For 'How do you make Lambda highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  27. Most asked How do you optimize cost for Lambda without hurting reliability?

    Summary

    Optimize Lambda cost by matching capacity to demand, removing idle work, and using the pricing dimensions that matter for the service.

    Longer Answer

    For Lambda, the main cost levers are right-sizing memory, reducing duration, avoiding chatty invocations, using Graviton runtimes where supported, and choosing provisioned concurrency only when latency requires it. Cost work should preserve SLOs, security, and recovery goals rather than simply shrinking resources.

    The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade.

    Key Points

    • For Lambda, the main cost levers are right-sizing memory, reducing duration, avoiding chatty invocations, using Graviton runtimes where supported, and choosing provisioned concurrency only when latency requires it
    • Cost work should preserve SLOs, security, and recovery goals rather than simply shrinking resources
    • The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade
    • For 'How do you optimize cost for Lambda without hurting reliability?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Optimize Lambda cost by matching capacity to demand, removing idle work, and using the pricing dimensions that matter for the service.
    Practical tradeoff For 'How do you optimize cost for Lambda without hurting reliability?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. The best answer ties cost to unit economics, such as cost per request, job, tenant, or environment, and pairs savings with guardrails so reliability does not quietly degrade.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  28. Most asked When is ECS Service a poor fit, and what would you pick instead?

    Summary

    ECS Service is a poor fit when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.

    Longer Answer

    Avoiding ECS Service is not a criticism of the service; it means the workload asks for a different abstraction. The wrong choice usually creates unnecessary cost, latency, operational work, or quota pressure.

    A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Key Points

    • Avoiding ECS Service is not a criticism of the service; it means the workload asks for a different abstraction
    • The wrong choice usually creates unnecessary cost, latency, operational work, or quota pressure
    • A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape
    • For 'When is ECS Service a poor fit, and what would you pick instead?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea ECS Service is a poor fit when the workload is a tiny event handler better suited to Lambda, or you need Kubernetes-specific APIs and ecosystem integration better served by EKS.
    Practical tradeoff For 'When is ECS Service a poor fit, and what would you pick instead?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A strong answer names the replacement, such as Lambda, ECS, EC2, ALB, API Gateway, Step Functions, SQS, CloudFront, or a managed database feature, and ties that replacement to the workload shape.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  29. Most asked How do you make ECS Service highly available across AZ failures?

    Summary

    Make ECS Service highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.

    Longer Answer

    For ECS Service, the service-specific pattern is tasks spread across AZs behind an ALB/NLB, health checks, minimum healthy percentages, and externalized state. Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment.

    A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Key Points

    • For ECS Service, the service-specific pattern is tasks spread across AZs behind an ALB/NLB, health checks, minimum healthy percentages, and externalized state
    • Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment
    • A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage
    • For 'How do you make ECS Service highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Make ECS Service highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.
    Practical tradeoff For 'How do you make ECS Service highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  30. Most asked How do you make VPC highly available across AZ failures?

    Summary

    Make VPC highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.

    Longer Answer

    For VPC, the service-specific pattern is multi-AZ subnets, per-AZ NAT gateways where needed, redundant VPN/Direct Connect, highly available endpoints, and no single-AZ routing chokepoints. Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment.

    A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Key Points

    • For VPC, the service-specific pattern is multi-AZ subnets, per-AZ NAT gateways where needed, redundant VPN/Direct Connect, highly available endpoints, and no single-AZ routing chokepoints
    • Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment
    • A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage
    • For 'How do you make VPC highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Make VPC highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.
    Practical tradeoff For 'How do you make VPC highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  31. Most asked How do you make ALB highly available across AZ failures?

    Summary

    Make ALB highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.

    Longer Answer

    For ALB, the service-specific pattern is enable at least two AZs, keep healthy targets in each AZ, use target group health checks, and avoid single-AZ backend dependencies. Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment.

    A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Key Points

    • For ALB, the service-specific pattern is enable at least two AZs, keep healthy targets in each AZ, use target group health checks, and avoid single-AZ backend dependencies
    • Multi-AZ is not just a checkbox; traffic routing, health checks, capacity, data stores, and network egress must all survive an AZ impairment
    • A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage
    • For 'How do you make ALB highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service

    Comparison / Tradeoffs

    Aspect Notes
    Core idea Make ALB highly available by designing across multiple Availability Zones and removing single-AZ stateful dependencies.
    Practical tradeoff For 'How do you make ALB highly available across AZ failures?', interviewers are looking for a decision process: state the requirement, name the AWS mechanism, describe the limit or failure mode, and explain how you would verify it in production. A good answer includes a failure test: disable or drain one AZ path in a non-production environment and verify users see no meaningful outage.

    Use the comparison table to show that you understand tradeoffs rather than memorizing a single preferred service. |

    Permalink

  32. How does EC2 scale, and what usually breaks first at high traffic?
  33. What are the practical limitations of EC2 engineers should plan around?
  34. What observability setup is required to operate EC2 in production?
  35. Compare EC2 with adjacent AWS options for the same problem space.
  36. How do you perform capacity planning for EC2?
  37. What failure modes are most common with EC2, and how do you mitigate them?
  38. When should you choose API Gateway over alternatives?
  39. How does API Gateway scale, and what usually breaks first at high traffic?
  40. What are the practical limitations of API Gateway engineers should plan around?
  41. What are the most important security controls for API Gateway?
  42. What observability setup is required to operate API Gateway in production?
  43. Compare API Gateway with adjacent AWS options for the same problem space.
  44. How do you perform capacity planning for API Gateway?
  45. What failure modes are most common with API Gateway, and how do you mitigate them?
  46. What observability setup is required to operate Lambda in production?
  47. How do you perform capacity planning for Lambda?
  48. What failure modes are most common with Lambda, and how do you mitigate them?
  49. How does ECS Service scale, and what usually breaks first at high traffic?
  50. What are the practical limitations of ECS Service engineers should plan around?
  51. What observability setup is required to operate ECS Service in production?
  52. How do you perform capacity planning for ECS Service?
  53. What failure modes are most common with ECS Service, and how do you mitigate them?
  54. How does VPC scale, and what usually breaks first at high traffic?
  55. What are the practical limitations of VPC engineers should plan around?
  56. What observability setup is required to operate VPC in production?
  57. Compare VPC with adjacent AWS options for the same problem space.
  58. How do you perform capacity planning for VPC?
  59. What failure modes are most common with VPC, and how do you mitigate them?
  60. How does ALB scale, and what usually breaks first at high traffic?
  61. What are the practical limitations of ALB engineers should plan around?
  62. What observability setup is required to operate ALB in production?
  63. Compare ALB with adjacent AWS options for the same problem space.
  64. How do you perform capacity planning for ALB?
  65. What failure modes are most common with ALB, and how do you mitigate them?
  66. How do ALB, ECS Service, and VPC boundaries work together in a microservice architecture?
  67. How should you design a public API with API Gateway + Lambda + VPC-based dependencies?
  68. What are the biggest quota interactions across API Gateway, Lambda, and downstream services?
  69. How do you choose between EC2 Auto Scaling and ECS Service Auto Scaling?
  70. What failure isolation strategy works best across VPC, ALB target groups, and compute tiers?
  71. How do you do blue/green safely for ECS services behind ALB?
  72. What is the cleanest migration path from EC2 monolith to API Gateway + Lambda or ECS services?
  73. How do you model cost across EC2, Lambda, API Gateway, ECS, and ALB for traffic growth?
  74. What metrics should trigger scaling or incident response across this stack?
  75. How do you prevent retry storms between API Gateway, Lambda, ECS clients, and dependencies?
  76. How do you plan multi-account AWS Cloud Engineer environments for these services?
  77. What does a robust DR plan look like for ALB + API Gateway + Lambda/ECS + VPC?
  78. What common architecture interview mistakes happen with these six services?
  79. How do you reduce tail latency when using EC2?
  80. What deployment strategy is safest for EC2 in production?
  81. How do you design disaster recovery for workloads built on EC2?
  82. How do you handle throttling and backpressure with EC2?
  83. How does stateful vs stateless design impact EC2 architecture?
  84. What networking path decisions matter most when deploying EC2?
  85. How do you validate resilience assumptions for EC2?
  86. How should IAM boundaries be designed around EC2?
  87. What quota and runbook practices are required for EC2?
  88. How do you manage versioning and compatibility for systems using EC2?
  89. What operational maturity signals show EC2 is production-ready?
  90. What are the highest-risk integration points when EC2 connects with other AWS services?
  91. How do compliance and audit requirements change how you run EC2?
  92. Describe a real-world tradeoff decision involving EC2.
  93. What should incident response look like for outages involving EC2?
  94. What performance tuning levers matter most for EC2?
  95. How do Region choices affect EC2 architecture decisions?
  96. How do you design private access patterns for EC2?
  97. What anti-patterns should teams avoid when adopting EC2?
  98. When is API Gateway a poor fit, and what would you pick instead?
  99. How do you make API Gateway highly available across AZ failures?
  100. How do you reduce tail latency when using API Gateway?
  101. How do you optimize cost for API Gateway without hurting reliability?
  102. What deployment strategy is safest for API Gateway in production?
  103. How do you design disaster recovery for workloads built on API Gateway?
  104. How do you handle throttling and backpressure with API Gateway?
  105. How does stateful vs stateless design impact API Gateway architecture?
  106. What networking path decisions matter most when deploying API Gateway?
  107. How do you validate resilience assumptions for API Gateway?
  108. How should IAM boundaries be designed around API Gateway?
  109. What quota and runbook practices are required for API Gateway?
  110. How do you manage versioning and compatibility for systems using API Gateway?
  111. What operational maturity signals show API Gateway is production-ready?
  112. What are the highest-risk integration points when API Gateway connects with other AWS services?
  113. How do compliance and audit requirements change how you run API Gateway?
  114. Describe a real-world tradeoff decision involving API Gateway.
  115. What should incident response look like for outages involving API Gateway?
  116. What performance tuning levers matter most for API Gateway?
  117. How do Region choices affect API Gateway architecture decisions?
  118. How do you design private access patterns for API Gateway?
  119. What anti-patterns should teams avoid when adopting API Gateway?
  120. How do you reduce tail latency when using Lambda?
  121. What deployment strategy is safest for Lambda in production?
  122. How do you design disaster recovery for workloads built on Lambda?
  123. How do you handle throttling and backpressure with Lambda?
  124. How does stateful vs stateless design impact Lambda architecture?
  125. What networking path decisions matter most when deploying Lambda?
  126. How do you validate resilience assumptions for Lambda?
  127. How should IAM boundaries be designed around Lambda?
  128. What quota and runbook practices are required for Lambda?
  129. How do you manage versioning and compatibility for systems using Lambda?
  130. What operational maturity signals show Lambda is production-ready?
  131. What are the highest-risk integration points when Lambda connects with other AWS services?
  132. How do compliance and audit requirements change how you run Lambda?
  133. Describe a real-world tradeoff decision involving Lambda.
  134. What should incident response look like for outages involving Lambda?
  135. What performance tuning levers matter most for Lambda?
  136. How do Region choices affect Lambda architecture decisions?
  137. How do you design private access patterns for Lambda?
  138. What anti-patterns should teams avoid when adopting Lambda?
  139. How do you reduce tail latency when using ECS Service?
  140. How do you optimize cost for ECS Service without hurting reliability?
  141. What deployment strategy is safest for ECS Service in production?
  142. How do you design disaster recovery for workloads built on ECS Service?
  143. How do you handle throttling and backpressure with ECS Service?
  144. How does stateful vs stateless design impact ECS Service architecture?
  145. What networking path decisions matter most when deploying ECS Service?
  146. How do you validate resilience assumptions for ECS Service?
  147. How should IAM boundaries be designed around ECS Service?
  148. What quota and runbook practices are required for ECS Service?
  149. How do you manage versioning and compatibility for systems using ECS Service?
  150. What operational maturity signals show ECS Service is production-ready?
  151. What are the highest-risk integration points when ECS Service connects with other AWS services?
  152. How do compliance and audit requirements change how you run ECS Service?
  153. Describe a real-world tradeoff decision involving ECS Service.
  154. What should incident response look like for outages involving ECS Service?
  155. What performance tuning levers matter most for ECS Service?
  156. How do Region choices affect ECS Service architecture decisions?
  157. How do you design private access patterns for ECS Service?
  158. What anti-patterns should teams avoid when adopting ECS Service?
  159. When is VPC a poor fit, and what would you pick instead?
  160. How do you reduce tail latency when using VPC?
  161. How do you optimize cost for VPC without hurting reliability?
  162. What deployment strategy is safest for VPC in production?
  163. How do you design disaster recovery for workloads built on VPC?
  164. How do you handle throttling and backpressure with VPC?
  165. How does stateful vs stateless design impact VPC architecture?
  166. What networking path decisions matter most when deploying VPC?
  167. How do you validate resilience assumptions for VPC?
  168. How should IAM boundaries be designed around VPC?
  169. What quota and runbook practices are required for VPC?
  170. How do you manage versioning and compatibility for systems using VPC?
  171. What operational maturity signals show VPC is production-ready?
  172. What are the highest-risk integration points when VPC connects with other AWS services?
  173. How do compliance and audit requirements change how you run VPC?
  174. Describe a real-world tradeoff decision involving VPC.
  175. What should incident response look like for outages involving VPC?
  176. What performance tuning levers matter most for VPC?
  177. How do Region choices affect VPC architecture decisions?
  178. How do you design private access patterns for VPC?
  179. What anti-patterns should teams avoid when adopting VPC?
  180. When is ALB a poor fit, and what would you pick instead?
  181. How do you reduce tail latency when using ALB?
  182. How do you optimize cost for ALB without hurting reliability?
  183. What deployment strategy is safest for ALB in production?
  184. How do you design disaster recovery for workloads built on ALB?
  185. How do you handle throttling and backpressure with ALB?
  186. How does stateful vs stateless design impact ALB architecture?
  187. What networking path decisions matter most when deploying ALB?
  188. How do you validate resilience assumptions for ALB?
  189. How should IAM boundaries be designed around ALB?
  190. What quota and runbook practices are required for ALB?
  191. How do you manage versioning and compatibility for systems using ALB?
  192. What operational maturity signals show ALB is production-ready?
  193. What are the highest-risk integration points when ALB connects with other AWS services?
  194. How do compliance and audit requirements change how you run ALB?
  195. Describe a real-world tradeoff decision involving ALB.
  196. What should incident response look like for outages involving ALB?
  197. What performance tuning levers matter most for ALB?
  198. How do Region choices affect ALB architecture decisions?
  199. How do you design private access patterns for ALB?
  200. What anti-patterns should teams avoid when adopting ALB?