Courseiva
Continuous Improvement for Existing SolutionseasyMultiple SelectObjective-mapped

SAP-C02 Continuous Improvement for Existing Solutions Practice Question

A company has an AWS Lambda function that processes messages from an SQS queue. The function is experiencing timeouts. Which TWO changes could help resolve the timeout issue? (Choose 2)

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 Lambda function timeout.

Increasing the Lambda function timeout (option C) allows the function more time to complete processing of SQS messages, directly addressing timeout errors. Increasing memory allocation (option D) also increases CPU and network throughput, which can speed up execution and prevent timeouts. Option A (increasing batch size) would process more messages per invocation, potentially worsening timeouts. Option B (enabling SQS encryption) does not affect timeout. Option E (decreasing visibility timeout) would cause messages to reappear in the queue sooner, which does not resolve the Lambda timeout issue.

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 batch size in the SQS event source mapping.

    Why it's wrong here

    Batch size affects number of messages per invocation, not timeout.

  • Enable SQS queue encryption.

    Why it's wrong here

    Encryption does not affect timeout.

  • Increase the Lambda function timeout.

    Why this is correct

    Allows longer execution.

  • Increase the Lambda function memory allocation.

    Why this is correct

    More memory provides more CPU power, speeding up execution.

  • Decrease the SQS visibility timeout.

    Why it's wrong here

    Decreasing visibility timeout may cause message reprocessing.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

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

One of 1,660 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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 SAP-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 SAP-C02 exam.