Amazon Web ServicesAssociate levelDVA-C02Page 4 of 4

DVA-C02 exam dumps: questions 301 to 398 of 398

Page 4 of the free DVA-C02 question bank for the AWS Certified Developer - Associate exam. Questions 301 to 398 are listed below, the first 5 in full with answers and explanations. Back to page 1 for the exam overview and FAQ.

Question bank last updated December 2024

Free DVA-C02 practice questions

Questions 301 to 305 of 398

Pick an answer before you open the explanation. Each question also has its own page with a permalink.

DVA-C02 Question 301

Single answer

You are tasked with deploying a serverless application on AWS that requires a Lambda function, an API Gateway endpoint, and an S3 bucket for static content. The team wants to use Infrastructure as Code (IaC) to manage the deployment. Which AWS service/tool is best suited for this use case, providing a simplified approach specifically tailored for serverless applications?

  1. A

    AWS CloudFormation

  2. B

    AWS Serverless Application Model (AWS SAM)

  3. C

    AWS Cloud Development Kit (AWS CDK)

  4. D

    AWS Amplify

Show answer and explanation

Correct answer: B

Explanation

AWS SAM (Serverless Application Model) is purpose-built for serverless application development and deployment. It extends AWS CloudFormation with simplified syntax and abstractions for common serverless resources, such as Lambda, API Gateway, and S3. While AWS CloudFormation and AWS CDK can also achieve the same result, SAM is specifically optimized for serverless use cases, making it the best choice in this scenario.

  • A. Incorrect.

    AWS CloudFormation is a powerful IaC tool but does not provide serverless-specific abstractions out of the box. AWS SAM is better suited for this serverless use case.

  • B. Correct.

    AWS SAM (Serverless Application Model) is specifically designed for building and deploying serverless applications, making it the ideal choice for this scenario.

  • C. Incorrect.

    AWS CDK can be used to define serverless resources, but it requires writing code and does not provide the same level of serverless-specific simplifications as AWS SAM.

  • D. Incorrect.

    AWS Amplify is focused on frontend and mobile application development and is not ideal for managing serverless backend resources like Lambda, API Gateway, or S3.

DVA-C02 Question 302

Single answer

A developer is tasked with deploying a serverless application on AWS. The application consists of a Lambda function, an API Gateway endpoint, and an Amazon DynamoDB table. The developer wants to automate the deployment process and manage infrastructure as code. Which AWS service or tool should the developer use to achieve this efficiently?

  1. A

    AWS CloudFormation

  2. B

    AWS Cloud Development Kit (AWS CDK)

  3. C

    AWS Serverless Application Model (AWS SAM)

  4. D

    AWS Amplify

Show answer and explanation

Correct answer: C

Explanation

AWS SAM (Serverless Application Model) is the best choice for this scenario because it is specifically designed to simplify the definition and deployment of serverless applications. It provides a higher-level abstraction for common serverless services like AWS Lambda, Amazon API Gateway, and Amazon DynamoDB, and integrates seamlessly with AWS CloudFormation for managing infrastructure as code. While other tools like AWS CloudFormation and AWS CDK can also achieve similar results, AWS SAM is purpose-built for serverless application use cases, making it the most efficient option in this scenario.

  • A. Incorrect.

    AWS CloudFormation can be used to define infrastructure as code, but it is not specifically optimized for serverless applications. Using AWS SAM would be more efficient for this use case.

  • B. Incorrect.

    AWS CDK is a powerful tool for defining cloud infrastructure using programming languages, but it is not purpose-built for serverless applications like AWS SAM.

  • C. Correct.

    AWS SAM is specifically designed for serverless application development and deployment. It simplifies the process of defining, deploying, and managing serverless resources like Lambda, API Gateway, and DynamoDB.

  • D. Incorrect.

    AWS Amplify is a development framework that simplifies front-end and mobile application development. It is not the best choice for managing serverless back-end infrastructure.

DVA-C02 Question 303

Single answer

You are developing a serverless application using AWS Lambda that processes images uploaded to an Amazon S3 bucket. You want a deployment strategy that allows you to define and manage the infrastructure as code, while also simplifying the creation, testing, and deployment of the Lambda function using pre-built templates. Which AWS tool would best meet these requirements?

  1. A

    AWS CloudFormation

  2. B

    AWS Cloud Development Kit (AWS CDK)

  3. C

    AWS Serverless Application Model (AWS SAM)

  4. D

    AWS Amplify

Show answer and explanation

Correct answer: C

Explanation

AWS SAM (Serverless Application Model) is the best tool for this scenario because it is tailored specifically for serverless applications. It extends AWS CloudFormation with simplified syntax for defining serverless resources and includes features for local testing, packaging, and deploying Lambda functions. While other tools like AWS CloudFormation and AWS CDK can handle serverless deployments, they do not provide the same level of simplicity and serverless-specific capabilities as AWS SAM.

  • A. Incorrect.

    AWS CloudFormation allows you to define and provision infrastructure as code, but it does not provide serverless-specific templates or tools for simplifying the deployment of Lambda functions.

  • B. Incorrect.

    AWS CDK allows you to define infrastructure as code using programming languages, but while it supports serverless architectures, it does not provide out-of-the-box serverless-specific features like AWS SAM.

  • C. Correct.

    AWS SAM is specifically designed for serverless applications and provides pre-built templates, simplified deployment mechanisms, and testing capabilities for AWS Lambda and other serverless resources.

  • D. Incorrect.

    AWS Amplify is intended for building and deploying full-stack web and mobile applications, and it is not specifically designed for serverless infrastructure management or deployment of Lambda functions.

DVA-C02 Question 304

Single answer

You are developing a serverless application using AWS Lambda. Your function has several dependencies from third-party Python libraries. The deployment package size exceeds the maximum Lambda deployment package size limit of 50 MB when compressed. Which approach should you take to successfully deploy your Lambda function?

  1. A

    Use AWS Lambda Layers to include your dependencies separately from the function code.

  2. B

    Compress the deployment package further using advanced compression algorithms to reduce the size.

  3. C

    Upload the deployment package to an S3 bucket and reference it directly in the Lambda function configuration.

  4. D

    Split the Lambda function into smaller functions to reduce the size of individual deployment packages.

Show answer and explanation

Correct answer: A

Explanation

When the deployment package size exceeds the Lambda limit, using AWS Lambda Layers is the recommended solution. Layers allow you to package and manage dependencies separately from your function code, reducing the size of the deployment package and enabling reusability across multiple functions.

  • A. Correct.

    Correct. AWS Lambda Layers allow you to include external dependencies separately from your function's deployment package, helping you manage large dependencies effectively.

  • B. Incorrect.

    Incorrect. While compression reduces size, it is unlikely to sufficiently reduce the size beyond AWS Lambda's limits if the package already exceeds the 50 MB compressed limit.

  • C. Incorrect.

    Incorrect. AWS Lambda does not natively support referencing deployment packages directly from S3. The deployment package must still adhere to Lambda's size limits.

  • D. Incorrect.

    Incorrect. Splitting the function may not address the core issue of large dependencies. This approach also increases architectural complexity unnecessarily.

DVA-C02 Question 305

Select 2

You are developing an AWS Lambda function to process image uploads. The function uses a custom library for image manipulation that is not included in the default AWS Lambda runtime. The library requires specific native dependencies. How should you package and deploy the Lambda function to ensure all dependencies are included and compatible?

  1. A

    Use the AWS Management Console to directly paste the function code and rely on Lambda to automatically install the required dependencies.

  2. B

    Package the function code and dependencies into a ZIP file locally, ensuring the dependencies are compiled for the Lambda runtime environment, and upload it to Lambda.

  3. C

    Use AWS Serverless Application Model (SAM) or AWS CloudFormation to package and deploy the Lambda function without explicitly handling the dependencies.

  4. D

    Use a Docker container image to package the function code and dependencies, ensuring they are compatible with the Lambda runtime environment, and deploy the image to Lambda.

Show answer and explanation

Correct answers: B, D

Explanation

AWS Lambda supports two main deployment packaging options: ZIP archives and container images. For ZIP deployments, you must ensure all dependencies, including native ones, are included and compatible with the Lambda runtime environment. For container image deployments, you can package your function code and dependencies into a Docker image, which provides more flexibility for custom dependencies and runtime compatibility. Both approaches are valid for handling native dependencies, but using the AWS Management Console or relying solely on SAM/CloudFormation does not handle dependency packaging.

  • A. Incorrect.

    AWS Lambda does not automatically install dependencies for code pasted directly into the Management Console. Instead, you must package and include dependencies yourself.

  • B. Correct.

    Packaging the function code and dependencies into a ZIP file locally is a valid method, but you must ensure the dependencies are compiled for the Lambda runtime environment (e.g., Amazon Linux).

  • C. Incorrect.

    While SAM and CloudFormation can help deploy Lambda functions, they do not automatically package native dependencies or ensure compatibility with the runtime.

  • D. Correct.

    Using a Docker container image is another valid approach, especially for functions with custom dependencies, as you can build the image to include all necessary libraries and ensure compatibility with the Lambda runtime environment.

Timed practice exam

Take a DVA-C02 practice test under exam conditions

65 questions in 130 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam

DVA-C02 practice questions 301 to 398 of 398

Every question has a page with the answer and explanation. Numbers are stable, so you can bookmark or share them. The bank is split into 4 pages of up to 100 questions.

  1. 301.You are tasked with deploying a serverless application on AWS that requires a Lambda function, an API Gateway...
  2. 302.A developer is tasked with deploying a serverless application on AWS. The application consists of a Lambda...
  3. 303.You are developing a serverless application using AWS Lambda that processes images uploaded to an Amazon S3...
  4. 304.You are developing a serverless application using AWS Lambda. Your function has several dependencies from...
  5. 305.You are developing an AWS Lambda function to process image uploads. The function uses a custom library for...
  6. 306.You are developing a serverless application using AWS Lambda. Your function requires a third-party library...
  7. 307.You are developing an AWS Lambda function written in Python, and it has multiple dependencies, including some...
  8. 308.You are developing an API with Amazon API Gateway and have deployed it to multiple stages: dev, staging, and...
  9. 309.You have an API deployed in AWS API Gateway with multiple stages: 'dev', 'test', and 'prod'. You want to...
  10. 310.You are developing a serverless application using Amazon API Gateway and AWS Lambda. You have deployed...
  11. 311.You are developing a serverless application using AWS API Gateway and Lambda. Your application has multiple...
  12. 312.You are deploying a new version of your application hosted on Amazon ECS using AWS CodeDeploy. The...
  13. 313.You are deploying a new version of your application on Amazon ECS using an Application Load Balancer. The...
  14. 314.You are deploying a new version of a critical microservice in your application using AWS Elastic Beanstalk....
  15. 315.You are working on deploying a new version of your application hosted on an Amazon ECS cluster. The...
  16. 316.Your application uses an Amazon S3 bucket to store and serve static content. Recently, users have reported...
  17. 317.A developer has deployed a Lambda function that processes data from an Amazon S3 bucket. However, the...
  18. 318.A developer has deployed an AWS Lambda function that processes data from an Amazon S3 bucket. The function...
  19. 319.A developer has deployed a Lambda function that processes events from an Amazon SQS queue. The function is...
  20. 320.A developer is troubleshooting an issue where a Lambda function periodically fails when processing messages...
  21. 321.Your team is experiencing increased latency in an AWS Lambda function that processes data from an S3 bucket....
  22. 322.Your development team is troubleshooting a latency issue in an AWS Lambda function that processes messages...
  23. 323.You are a developer troubleshooting a performance issue in an AWS Lambda function that processes data from an...
  24. 324.You are building an application that processes images uploaded by users. The images are stored in an Amazon...
  25. 325.You are developing a serverless application using AWS Lambda, and your function needs access to an Amazon S3...
  26. 326.You are developing a serverless application using AWS Lambda. The application processes images uploaded to an...
  27. 327.You are developing a serverless application using AWS Lambda. The application processes images uploaded to an...
  28. 328.Your team has deployed a serverless application using AWS Lambda, Amazon API Gateway, and Amazon DynamoDB....
  29. 329.An e-commerce application running on AWS is experiencing intermittent performance issues. As a developer, you...
  30. 330.A development team is running a critical serverless application on AWS Lambda with an Amazon API Gateway...
  31. 331.You are developing a serverless application on AWS using AWS Lambda. The application processes real-time user...
  32. 332.You are developing a serverless application that logs all API requests to Amazon CloudWatch Logs. You want to...
  33. 333.You are a developer tasked with analyzing your application's logs in Amazon CloudWatch Logs. You need to...
  34. 334.You are developing a serverless application that uses Amazon CloudWatch Logs to monitor and troubleshoot your...
  35. 335.You are a developer tasked with analyzing application logs stored in Amazon CloudWatch Logs. You need to...
  36. 336.You are developing a serverless application using AWS Lambda and need to visualize application performance...
  37. 337.You are developing a serverless application on AWS and need to create real-time data visualizations for...
  38. 338.You are developing a serverless application on AWS that processes large amounts of user behavior data in...
  39. 339.You are developing a serverless application using AWS Lambda and want to ensure your code complies with AWS...
  40. 340.You are developing a serverless application using AWS Lambda. During a recent code review, your team...
  41. 341.You are developing a serverless application using AWS Lambda and have integrated your code repository with...
  42. 342.As a developer, you are tasked with ensuring the codebase for your serverless application adheres to security...
  43. 343.Your application running on Amazon EC2 instances behind an Application Load Balancer (ALB) is returning an...
  44. 344.You are developing an application that uses Amazon API Gateway to expose RESTful APIs. During testing, you...
  45. 345.You are developing a serverless application on AWS Lambda that interacts with an Amazon API Gateway endpoint....
  46. 346.You are developing an application that interacts with an Amazon API Gateway endpoint. During testing, you...
  47. 347.You are developing an application using the AWS SDK for Python (Boto3) to upload files to an S3 bucket....
  48. 348.You are developing a serverless application using AWS Lambda and the AWS SDK for Python (boto3). During...
  49. 349.A developer is using the AWS SDK for Python (Boto3) to interact with an S3 bucket. While uploading a file,...
  50. 350.You are developing an application using the AWS SDK for Python (Boto3) to interact with an Amazon S3 bucket....
  51. 351.You are a developer troubleshooting a distributed application using AWS X-Ray. After enabling X-Ray tracing...
  52. 352.You are developing a serverless application using AWS Lambda, API Gateway, and DynamoDB. You enable AWS X-Ray...
  53. 353.Your team has implemented AWS X-Ray in a microservices-based application running on Amazon ECS. After...
  54. 354.You are a developer building a microservices-based application on AWS. You have integrated AWS X-Ray into the...
  55. 355.You are developing a serverless application using AWS Lambda and want to monitor its performance and...
  56. 356.You are developing a serverless application using AWS Lambda and need to implement observability to monitor...
  57. 357.You are developing a serverless application using AWS Lambda that interacts with multiple AWS services. The...
  58. 358.You are developing a serverless application using AWS Lambda and need to implement observability to monitor...
  59. 359.A developer is deploying an application on Amazon ECS using the Fargate launch type. The application needs to...
  60. 360.You are developing a serverless application using AWS Lambda. The application processes records from an...
  61. 361.You are developing a serverless application that uses AWS Lambda to process data from an Amazon S3 bucket....
  62. 362.Your team is developing a serverless application using AWS Lambda. The application processes uploaded images...
  63. 363.You are developing a microservices-based application running on Amazon ECS with AWS Fargate. The application...
  64. 364.You are developing a microservices-based application hosted on AWS, and you need to analyze the latency and...
  65. 365.You are developing a serverless application on AWS using AWS Lambda and API Gateway. The application is...
  66. 366.You are developing a microservices application deployed on Amazon ECS. The application consists of multiple...
  67. 367.A developer is building a serverless application on AWS and needs to troubleshoot performance issues and...
  68. 368.A development team is working on a serverless application hosted in AWS. They are trying to ensure smooth...
  69. 369.Your team is developing a serverless application using AWS Lambda, Amazon API Gateway, and DynamoDB. During a...
  70. 370.You are developing a serverless application on AWS and need to ensure you can effectively troubleshoot...
  71. 371.You are developing a serverless application on AWS and need to ensure logs are structured in a way that makes...
  72. 372.You are developing a serverless application using AWS Lambda and need to ensure that your logs are structured...
  73. 373.You are developing a serverless application using AWS Lambda and need to implement structured logging to make...
  74. 374.A developer is building a serverless application using AWS Lambda. To simplify debugging and enable better...
  75. 375.A developer is working on a serverless application deployed using AWS Lambda. The application processes...
  76. 376.You are developing a serverless application using AWS Lambda and Amazon API Gateway. You want to monitor the...
  77. 377.You are developing a microservices-based application hosted on AWS. Each service publishes custom application...
  78. 378.You are developing a serverless application using AWS Lambda, and you want to monitor the execution duration...
  79. 379.You are developing a serverless application using AWS Lambda that processes images uploaded to an Amazon S3...
  80. 380.You are developing a serverless application using AWS Lambda. The application processes high volumes of image...
  81. 381.You are developing a serverless e-commerce application using AWS Lambda. The application processes thousands...
  82. 382.A developer is working on an e-commerce application that experiences high traffic during seasonal sales. The...
  83. 383.A developer is building a serverless application that processes images uploaded to an Amazon S3 bucket. The...
  84. 384.You are developing a serverless application using AWS Lambda. The Lambda function processes data from an...
  85. 385.You are developing a serverless application using AWS Lambda and Amazon DynamoDB. The Lambda function...
  86. 386.You are developing a serverless application on AWS and need to process messages from an SQS queue. Each...
  87. 387.An e-commerce application running on AWS experiences high read traffic for product catalog data. The product...
  88. 388.A company is running a web application that experiences high read traffic for certain database queries. To...
  89. 389.A developer is working on an ecommerce application hosted on AWS. The application frequently retrieves...
  90. 390.Your application uses an Amazon RDS database to fetch frequently accessed, read-only data. The application is...
  91. 391.You are developing a serverless application using AWS Lambda that processes a batch of incoming messages from...
  92. 392.You are developing an e-commerce application where customers can place orders. To handle high concurrency...
  93. 393.You are developing a serverless application using AWS Lambda to process orders. The Lambda function is...
  94. 394.You are developing an application that processes orders from an SQS queue. The application must ensure that...
  95. 395.You are designing a serverless application where users upload images, and each upload triggers a processing...
  96. 396.Your application processes user-uploaded files and uses Amazon SQS to store metadata about the files....
  97. 397.You are developing a serverless application that processes user-uploaded images. The application uses an...
  98. 398.A developer is designing a serverless application that processes customer orders. The application needs to:...