Question 415 of 510
Application Environment, Configuration and SecuritymediumMultiple SelectObjective-mapped

Quick Answer

The correct answers are overly permissive IAM roles assigned to the function and event injection via malformed input. Overly permissive IAM roles are a critical serverless security concern because AWS Lambda functions often inherit broad permissions to interact with other services, and if an attacker compromises the function, they can leverage those excessive privileges to escalate access or exfiltrate data. Event injection via malformed input is equally specific to serverless architectures: since Lambda functions are triggered by events from sources like API Gateway or S3, an attacker can craft malicious input that exploits the function’s event-handling logic, leading to unintended execution paths or data corruption—a risk distinct from traditional injection attacks because the event structure itself can be manipulated to bypass validation. On the CompTIA SecurityX CAS-004 exam, this topic tests your understanding of the shared responsibility model in serverless environments and the unique attack surfaces introduced by event-driven execution. A common trap is confusing general cloud security issues (like insecure APIs) with those that are architecturally specific to serverless functions. Memory tip: think “Lambda Loot” – Lambda’s Least-privilege IAM and Input validation are your two must-check defenses.

CAS-004 Serverless security concerns Practice Question

This CAS-004 practice question tests your understanding of application environment, configuration and security. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company is adopting a serverless architecture using AWS Lambda. Which of the following are security concerns specific to serverless functions? (Select TWO.)

Question 1mediummulti select
Full question →

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

Event injection via malformed input

Event injection via malformed input (B) is a specific serverless security concern because AWS Lambda functions are triggered by events from sources like API Gateway, S3, or DynamoDB Streams. An attacker can craft malicious input that exploits the function's event-handling logic, leading to unintended execution paths or data corruption. This differs from traditional injection attacks because the event structure itself can be manipulated to bypass validation.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Insecure deserialization of function input

    Why it's wrong here

    A general web vulnerability, not specific to serverless.

  • Container escape vulnerabilities

    Why it's wrong here

    Serverless functions run in isolated containers, but escape is more relevant to traditional containers.

  • SQL injection in the database

    Why it's wrong here

    A general web vulnerability, not specific to serverless.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The CAS-004 exam frequently reuses these exact scenarios with slightly different constraints.

Event injection via malformed inputCorrect answer
Insecure deserialization of function inputWrong answer — click to see why

Why this is wrong here

A general web vulnerability, not specific to serverless.

Container escape vulnerabilitiesWrong answer — click to see why

Why this is wrong here

Serverless functions run in isolated containers, but escape is more relevant to traditional containers.

SQL injection in the databaseWrong answer — click to see why

Why this is wrong here

A general web vulnerability, not specific to serverless.

Analysis generated from the official CAS-004blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

Common exam traps

Common exam trap: answer the scenario, not the keyword

CompTIA often tests the misconception that serverless functions are immune to injection attacks because they are 'stateless' or 'event-driven,' but the trap here is that event injection is a distinct attack vector where the event structure itself is the injection surface, not just the data within it.

Detailed technical explanation

How to think about this question

AWS Lambda functions run in a Firecracker microVM, which provides stronger isolation than containers by using a minimal KVM-based virtual machine; this prevents container escape attacks but introduces event injection risks because the function's execution context is entirely driven by the incoming event payload. A real-world scenario is a Lambda function that processes S3 object creation events: an attacker could upload a file with a crafted key that includes path traversal sequences (e.g., '../'), causing the function to read or write to unintended S3 prefixes. Under the hood, the event is a JSON object parsed by the Lambda runtime, and if the function lacks input validation, the attacker can inject arbitrary keys or values that alter control flow.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A small business has 20 workstations on the 192.168.1.0/24 network and one public IP from its ISP. The router uses PAT (NAT overload) so all 20 devices share one public address using different source ports. NAT questions test whether you understand the four address terms and which direction each translation applies.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CAS-004 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CAS-004 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CAS-004 question test?

Application Environment, Configuration and Security — This question tests Application Environment, Configuration and Security — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Event injection via malformed input — Event injection via malformed input (B) is a specific serverless security concern because AWS Lambda functions are triggered by events from sources like API Gateway, S3, or DynamoDB Streams. An attacker can craft malicious input that exploits the function's event-handling logic, leading to unintended execution paths or data corruption. This differs from traditional injection attacks because the event structure itself can be manipulated to bypass validation.

What should I do if I get this CAS-004 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This CAS-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 CAS-004 exam.