Courseiva
Deployment →easyMultiple Choice

CV0-004 Deployment Practice Question

A cloud architect is designing a serverless application on AWS Lambda. The function needs to process messages from an SQS queue. Which event trigger should be configured for the Lambda function?

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

✓

SQS trigger

AWS Lambda can be triggered by SQS messages. By configuring an SQS trigger, Lambda automatically polls the queue and invokes the function with each message.

Answer analysis

Option-by-option breakdown

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

  • ✗

    API Gateway

    Why it's wrong here

    API Gateway invokes Lambda synchronously from inbound HTTP requests, not from queued messages. It is tempting because it is the standard Lambda trigger for REST APIs, and it would be correct for exposing the function as an HTTP endpoint to clients.

  • ✓

    SQS trigger

    Why this is correct

    An SQS trigger uses event source mapping, letting Lambda poll the queue and invoke the function with batched messages. This pull-based integration handles scaling and failed-message handling natively, matching the requirement to process queue messages.

  • ✗

    S3 bucket event

    Why it's wrong here

    S3 bucket events fire on object creation or deletion, so they never deliver SQS queue messages to the function. It is tempting because S3 notifications are a common Lambda trigger, and it would be correct for processing uploaded objects such as images or logs.

  • ✗

    EventBridge rule

    Why it's wrong here

    EventBridge rules match events from AWS services or schedules, not the SQS message stream itself. It is tempting because EventBridge integrates with Lambda broadly, and it would be correct for cron-style schedules or reacting to SaaS and AWS service events.

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

This CV0-004 question is part of Courseiva's 834-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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 CV0-004 practice question is part of Courseiva's free CompTIA 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 CV0-004 exam.