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

Report an error

Related questions

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 customer requires that all data at rest in an S3 data lake be encrypted with customer-managed keys (CMKs). They must also ensure that new objects uploaded by multiple accounts always use those keys, even if writers are misconfigured. Which control strategy is best?

View question →

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 →

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 →

Your application runs in multiple accounts and uses cross-account roles. During incident response, you must ensure that temporary elevated access cannot be abused beyond a short window and must be auditable. Which approach best meets these requirements?

View question →

QuestionBack to list