Courseiva
Troubleshooting and OptimizationeasyMultiple SelectObjective-mapped

DVA-C02 Troubleshooting and Optimization Practice Question

Which TWO actions can help reduce Lambda cold start times? (Choose two.)

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Increase the memory allocated to the function.

Increasing memory also increases CPU, which speeds up initialization. Option C is correct because using Provisioned Concurrency keeps environments warm. Option A is incorrect because larger deployment packages increase cold start. Option D is incorrect because VPC adds network overhead, increasing cold start. Option E is incorrect because reducing the function timeout does not affect cold start time; timeout limits execution duration, not initialization.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Increase the deployment package size.

    Why it's wrong here

    Cold start time scales with the size of the code package because the runtime must download, unpack, and load the code before executing. Larger deployment packages increase initialization time, not decrease it, so this option actually worsens cold starts. To reduce cold starts, keep the package lean by minimizing dependencies and using layers only when necessary.

  • Increase the memory allocated to the function.

    Why this is correct

    Lambda allocates CPU proportionally to the amount of memory configured, so more memory means more CPU power available during initialization. This speeds up tasks like loading the runtime, unpacking code, and running static initializers, thereby shortening the cold start duration. It is a practical tuning knob, though it increases cost per invocation.

  • Use Provisioned Concurrency.

    Why this is correct

    This initializes execution environments ahead of time and keeps them warm, so invocations skip the cold start initialization phase. It allocates pre-warmed instances that handle requests immediately, effectively eliminating latency from environment setup and code loading. This is a direct, guaranteed way to reduce cold starts, especially for latency-sensitive workloads.

  • Place the function in a VPC.

    Why it's wrong here

    This does not reduce cold starts; it typically increases them because Lambda must attach an elastic network interface (ENI) to your VPC, adding several seconds to initialization. The ENI creation happens during the cold start phase, incurring extra overhead. Using a VPC is for secure access to private resources, not for performance, and you can mitigate the latency by using VPC endpoints or a NAT gateway, but those don't eliminate the ENI setup delay.

  • Reduce the function timeout.

    Why it's wrong here

    The timeout setting caps how long an invocation can run; it has no impact on the initialization phase before your handler executes. Cold start measures the time to create the environment, load code, and run initializers, which happens before the timeout applies. Reducing the timeout might cause faster failures but does not accelerate environment provisioning.

Quick reference

Cloud Service Model Comparison

ModelYou ManageProvider ManagesExamples
IaaSOS, runtime, apps, dataHardware, hypervisor, networkingEC2, Azure VMs, GCP Compute Engine
PaaSApps and dataOS, runtime, middleware, hardwareElastic Beanstalk, Azure App Service
SaaSData and settings onlyEverything elseMicrosoft 365, Salesforce, Workday
FaaS / ServerlessFunction code onlyInfra, scaling, runtimeLambda, Azure Functions, Cloud Run
CaaSContainers and appsKubernetes, OS, hardwareEKS, AKS, GKE

About these practice questions

Courseiva writes every DVA-C02 question from scratch — 724 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DVA-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DVA-C02 exam.