During a black-box assessment of a client's AWS-based serverless API, you manage to upload a ZIP file containing a Python backdoor that replaces the handler code of one Lambda function. Almost immediately the function reverts to its original state, and your payload disappears. Which AWS feature most likely caused this behavior by automatically restoring the pristine version of the function package?
When an AWS Lambda function is deployed through AWS Serverless Application Model (SAM), CloudFormation, or other IaC pipelines, the code package is stored in an immutable version managed by AWS Lambda. If any change is made outside the deployment pipeline-such as a tester overwriting the handler file inside the execution environment-the next invocation will launch a fresh read-only copy of the most recently published version from Amazon S3. This auto-healing occurs because Lambda containers are ephemeral; every invocation can be served by a new container that is rebuilt from the stored deployment package. The feature responsible for providing that clean copy is the read-only code package of each Lambda version, which is automatically mounted by the Lambda service. Other services listed do not themselves overwrite function code: CodeDeploy handles traffic shifting between versions but does not rewrite the package; CloudTrail only logs API calls; and GuardDuty is a threat-detection service with no remediation capability.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does 'immutable versioned deployment package' mean in AWS Lambda?
Open an interactive chat with Bash
Why are AWS Lambda containers ephemeral?
Open an interactive chat with Bash
How does Amazon S3 integrate with AWS Lambda for deployment package storage?
Open an interactive chat with Bash
What is the AWS Lambda immutable versioned deployment package?
Open an interactive chat with Bash
How does AWS Lambda launch a clean copy of a function for each invocation?
Open an interactive chat with Bash
Why is the AWS Lambda code package mounted read-only?
Open an interactive chat with Bash
Certified Ethical Hacker (CEH)
Cloud Computing
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .