A company wants to modernize a monolithic Rails app to serverless. They require strict control of outbound network access and need to reduce cold start impact. Which combination best fits, assuming workloads run on AWS?
Answer
Use an API Gateway → Lambda integration with VPC-enabled Lambda that routes egress through a NAT Gateway, then enable Provisioned Concurrency for critical endpoints
Explanation
VPC-enabled Lambda allows controlled egress and security group enforcement, while NAT Gateway provides controlled outbound internet access from private subnets. Provisioned Concurrency reduces cold-start latency for latency-sensitive endpoints.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
You must design a multi-region failover for an active-active application with low RTO. The system must avoid split-brain writes and keep data consistent for both regions. Which architecture meets the requirement best?
View question →
A platform team wants to build a Kubernetes-based service on AWS that must remain highly available across at least two AZs. They also need to limit blast radius when deployments fail, and require zero-downtime rollouts. Which managed AWS-native design is most aligned?
View question →
A company has strong compliance requirements for log immutability. They need central ingestion from multiple accounts, near-real-time alerting, and the ability to retain logs for 7 years. Which logging architecture is most appropriate?
View question →
An engineering team uses AWS Config to enforce security baselines. They also need continuous detection of drift from an IaC-defined state and must take automated remediation actions when drift occurs. Which AWS service combination is most appropriate?
View question →
You need to implement event-driven processing where producers publish domain events, consumers may scale independently, and some consumers occasionally fail and require replay without data loss. Which approach best satisfies reliability and replayability?
View question →
You are designing a distributed system with strict consistency requirements for user entitlements across services. The system must handle high write throughput and strong read-after-write behavior, and you want to avoid coordination bottlenecks. Which solution best fits?
View question →