λ AWS Lambda for DevOps - DOP-C02 Practice Questions

Study Lambda deployment automation, versioning, aliases, traffic shifting, event-driven automation, custom resources, and serverless operations.

9Questions Available
3Exam Domains

Practice Lambda Questions Now

Start a timed practice session focusing on AWS Lambda for DevOps topics from the DOP-C02 question bank.

Start DOP-C02 Practice Quiz →

DOP-C02 Lambda Question Bank (9 Questions)

Browse all 9 practice questions covering AWS Lambda for DevOps for the DOP-C02 certification exam. Answers are intentionally hidden on this page so you can self-test first before checking results in quiz mode.

  1. Question 1SDLC Automation

    A team needs to package and version their Python libraries for reuse across multiple Lambda functions. Libraries should be versioned and retrieved via pip. What is the correct AWS solution?

    AStore library code in S3 and download during Lambda execution
    BCreate a private PyPI repository in AWS CodeArtifact; publish versioned packages to CodeArtifact; Lambda build process installs packages via pip using CodeArtifact endpoint
    CInclude all library code in each Lambda deployment package
    DUse Lambda Layers for all shared libraries

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  2. Question 2SDLC Automation

    A company needs to deploy a Lambda function update with zero downtime. They want to gradually shift traffic from the old version to the new version over 10 minutes. What CodeDeploy configuration achieves this?

    ADelete old Lambda and create new one
    BUse CodeDeploy deployment group with deployment type LINEAR_10PERCENT_EVERY_1MINUTE — shifts 10% of traffic per minute from old to new Lambda alias over 10 minutes
    CManually update Lambda alias routing configuration
    DUse Lambda Blue/Green deployment directly

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  3. Question 3Configuration Management and IaC

    A company uses SSM Documents (Command and Automation) extensively. They want to version control all SSM documents and deploy changes via CI/CD. What is the CORRECT approach?

    AEdit SSM documents directly in the console
    BStore SSM document JSON/YAML in CodeCommit; CI/CD pipeline (CodePipeline + CodeBuild) uses aws ssm create-document or update-document API to deploy changes; documents are versioned in SSM with previous versions retained
    CExport SSM documents to S3 for version control
    DSSM documents are automatically version controlled

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  4. Question 4Configuration Management and IaC

    A company's CloudFormation stack includes a custom resource (Lambda-backed) that calls an external API during deployment. The external API is rate-limited to 1 request per second. CloudFormation calls the custom resource for many resources simultaneously, causing throttling. What resolves this?

    AReduce the number of custom resources
    BImplement exponential backoff with jitter in the Lambda custom resource function; use CloudFormation DependsOn to serialize custom resource deployments if they call the same API endpoint
    CUse CloudFormation Macros instead
    DIncrease the external API rate limit

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  5. Question 5Incident and Event Response

    A company uses multiple Lambda functions for an event-driven application. When one Lambda function fails, downstream functions should not be triggered. How should dead-letter queues be configured to prevent cascading failures?

    AEach Lambda has its own DLQ, cascading is automatic
    BFor synchronous invocations, the caller Lambda handles errors and decides whether to send to DLQ or propagate; for async, configure Lambda DLQ or destinations; use Step Functions to orchestrate multi-Lambda workflows with error handling at each step
    CEventBridge automatically prevents cascading failures
    DSQS FIFO queues prevent cascading failures

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  6. Question 6SDLC Automation

    A company uses CodeDeploy with AWS Lambda. After a successful deployment, they notice that old Lambda versions are accumulating and not being cleaned up. What configuration manages Lambda version cleanup?

    ACodeDeploy automatically removes old Lambda versions
    BConfigure ECR lifecycle policies for Lambda container images; for zip-based Lambda, implement a Lambda function triggered by CodeDeploy deployment success that calls DeleteFunction on old versions, keeping only N most recent
    CLambda automatically removes old versions after 30 days
    DUse ECR lifecycle policies for all Lambda versions

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  7. Question 7Configuration Management and IaC

    A DevOps team writes CDK stacks. They want to ensure specific CDK best practices are enforced during code review: all S3 buckets must use versioning, all VPCs must have flow logs, all Lambda functions must have reservedConcurrentExecutions set. What is the most automated enforcement?

    AChecklist-based manual code review
    BWrite CDK Aspects that enforce each practice during cdk synth; synthesize fails with descriptive errors if practices are violated; these run in CI before deployment
    CCloudFormation Guard post-synthesis
    DBoth B and C — Aspects for compile-time, Guard for deployment-time enforcement

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  8. Question 8Configuration Management and IaC

    A company's CloudFormation custom resource Lambda function needs to return values (e.g., generated password) back to CloudFormation for use in other resources. How should the Lambda return data?

    ACloudFormation custom resources cannot return values
    BThe Lambda function sends a HTTPS response to the CloudFormation-provided ResponseURL (S3 pre-signed URL) with a JSON body including Data object containing key-value pairs; other resources reference them via !GetAtt CustomResource.Key
    CReturn values via Lambda environment variables
    DStore values in SSM Parameter Store and reference via dynamic reference

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz
  9. Question 9SDLC Automation

    A DevOps team uses CodeDeploy for Lambda deployments. They want to immediately roll back if the error rate on the new Lambda alias exceeds 5% during deployment. What configuration implements this?

    AManual monitoring with manual rollback
    BConfigure a CloudWatch alarm on Lambda errors/invocations ratio; specify the alarm in CodeDeploy deploymentGroup alarmConfiguration; CodeDeploy rolls back automatically when the alarm triggers
    CUse Lambda destination configuration for automatic rollback
    DConfigure CodeDeploy deployment to check Lambda logs

    Answer hidden for practice.

    Use the interactive quiz to reveal the correct answer and explanation.

    Start DOP-C02 Quiz

Key Lambda Concepts for DOP-C02

lambdaserverlessaliasversiontraffic shiftingcustom resourceevent-drivenautomation

DOP-C02 Lambda Exam Tips

AWS Lambda for DevOps questions in DOP-C02 are typically scenario-based. Focus on CI/CD automation, reliability engineering, and feedback-driven operations. Priority concepts: lambda, serverless, alias, version, traffic shifting, custom resource.

What DOP-C02 Expects

  • Anchor your answer in choose auditable, automated release and operations patterns with strong rollback readiness.
  • Lambda scenarios for DOP-C02 are frequently mapped to Domain 1 (22%), Domain 2 (17%), Domain 4 (15%), so read the objective carefully before picking controls or architecture.
  • Expect multi-topic scenarios where Lambda interacts with IAM, networking, storage, or observability patterns rather than appearing as an isolated question.
  • When two options are both technically valid, prefer the choice that best aligns with the exam's operational scope (Professional) and vendor best practices.

High-Value Lambda Concepts

  • Know the core Lambda building blocks cold: lambda, serverless, alias, version.
  • Review the edge-case features and limits for traffic shifting, custom resource; these details are commonly used to differentiate answer choices.
  • Practice service-integration reasoning: how Lambda pairs with SAM, Deployment Strategies, Event-Driven in real deployment patterns.
  • For DOP-C02, explain why the chosen Lambda design meets reliability, security, and cost expectations better than the alternatives.

Common DOP-C02 Traps

  • Watch for manual promotion and approval logic where pipeline automation is expected.
  • Questions in SDLC Automation often include distractors that look correct for Lambda but violate least-privilege, durability, or availability requirements.
  • Avoid picking options purely by feature name; validate data path, failure handling, and governance impact before answering.
  • If the prompt hints at automation or repeatability, eliminate manual-only operational answers first.

Fast Review Checklist

  • Can you compare at least two Lambda implementation paths and justify which one best fits the scenario?
  • Can you map the chosen answer back to SDLC Automation (22%) outcomes for DOP-C02?
  • Can you explain security and access boundaries for Lambda without relying on default-open assumptions?
  • Can you describe how Lambda integrates with SAM and Deployment Strategies during failure, scaling, and monitoring events?

Exam Domains Covering Lambda

Related Resources

More DOP-C02 Study Resources