Amazon Web ServicesAssociate levelDVA-C02Page 2 of 4

DVA-C02 exam dumps: questions 101 to 200 of 398

Page 2 of the free DVA-C02 question bank for the AWS Certified Developer - Associate exam. Questions 101 to 200 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 101 to 105 of 398

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

DVA-C02 Question 101

Single answer

You are developing an e-commerce web application that uses Amazon ElastiCache to improve performance. The product catalog is stored in an Amazon RDS database, and users frequently request the same product data. You want to reduce the database load while ensuring that users always see the most up-to-date product information when they fetch product details. Which caching strategy is the most appropriate for this use case?

  1. A

    Write-through caching

  2. B

    Read-through caching

  3. C

    Lazy loading

  4. D

    Time-to-live (TTL) caching

Show answer and explanation

Correct answer: B

Explanation

Read-through caching is the best fit for this scenario because it checks the cache for requested data and fetches it from the database if it is not found, updating the cache in the process. This reduces database load and ensures users see the most up-to-date information. Other strategies like lazy loading or write-through caching do not fully meet the requirement of always serving the latest product data while minimizing database queries.

  • A. Incorrect.

    Write-through caching is not suitable in this case because it writes data to the cache when the database is updated, but the scenario involves reading frequently requested data, not writing it.

  • B. Correct.

    Read-through caching is the correct choice because it ensures that when data is requested, it is first checked in the cache, and if it's not there, it is fetched from the database and cached for subsequent requests. This reduces database load while keeping the cache updated with the latest data.

  • C. Incorrect.

    Lazy loading caches data only when it is requested for the first time, but it does not guarantee that the cache always has the latest data. This could lead to stale data being served to users, which does not meet the requirement of always showing the most up-to-date product information.

  • D. Incorrect.

    Time-to-live (TTL) caching is a mechanism to expire cached data after a specific duration, but it is not a standalone caching strategy. While TTL can complement a caching strategy, it does not address the need to ensure the cache always has the latest data.

DVA-C02 Question 102

Single answer

You are developing an e-commerce application that uses an Amazon ElastiCache cluster to improve the performance of frequently accessed product details. You want to implement a caching strategy that minimizes cache misses while ensuring that updates to the database are immediately reflected in the cache. Which caching strategy should you use?

  1. A

    Write-through caching

  2. B

    Read-through caching

  3. C

    Lazy loading

  4. D

    Time-to-live (TTL)

Show answer and explanation

Correct answer: A

Explanation

Write-through caching is the best strategy when you need to ensure that the cache is always updated immediately whenever the database is updated. This reduces the likelihood of cache misses and ensures that the cache remains consistent with the database, which is critical for applications requiring up-to-date data such as an e-commerce platform displaying product details.

  • A. Correct.

    Write-through caching updates the cache immediately whenever the underlying database is updated, ensuring the cache remains consistent with the database and minimizing cache misses.

  • B. Incorrect.

    Read-through caching loads data into the cache only when a cache miss occurs. This does not ensure immediate consistency between the cache and the database.

  • C. Incorrect.

    Lazy loading loads data into the cache only when it is requested and not found in the cache. While it reduces unnecessary writes to the cache, it can result in higher cache miss rates and does not immediately reflect database updates in the cache.

  • D. Incorrect.

    Time-to-live (TTL) is a mechanism to set an expiration time for cache entries. While it helps in controlling stale data, it is not a caching strategy by itself and does not ensure immediate consistency with the database.

DVA-C02 Question 103

Single answer

You are developing an e-commerce application that uses Amazon DynamoDB as the database and Amazon ElastiCache for caching frequently accessed product details. To improve performance while ensuring that the cache remains synchronized with the database, which caching strategy should you implement?

  1. A

    Write-through caching

  2. B

    Lazy loading

  3. C

    Read-through caching

  4. D

    Cache aside

Show answer and explanation

Correct answer: A

Explanation

In this scenario, the primary requirement is to ensure that the cache remains synchronized with the database to provide consistent data. Write-through caching is the best strategy for this use case as it ensures that every write operation to the database is also reflected in the cache. Other strategies, like lazy loading, read-through, or cache aside, either prioritize performance or rely on manual cache management but do not inherently ensure synchronization after writes.

  • A. Correct.

    Write-through caching ensures that every write operation to the database is immediately written to the cache as well, keeping the cache in sync with the database. This is suitable for scenarios where data consistency is critical.

  • B. Incorrect.

    Lazy loading caches the data only when it is requested and not found in the cache. While it reduces initial load on the cache, it doesn't ensure that the cache is always synchronized with the database.

  • C. Incorrect.

    Read-through caching involves fetching data directly from the cache, and if the data is not in the cache, it is fetched from the database and then written to the cache. This does not directly handle synchronization during a write operation.

  • D. Incorrect.

    Cache aside is a strategy where the application manages when to fetch and update the cache. It does not automatically synchronize the cache during database writes, which can lead to stale data in certain scenarios.

DVA-C02 Question 104

Single answer

You are developing a high-traffic e-commerce application that uses an Amazon DynamoDB table to store product details. To improve performance and reduce read latency, you decide to integrate Amazon ElastiCache as a caching layer. Which caching strategy is most appropriate if you want to ensure that the cache always contains the most up-to-date product details whenever data is updated in DynamoDB?

  1. A

    Write-through caching

  2. B

    Read-through caching

  3. C

    Lazy loading

  4. D

    Cache-aside with time-to-live (TTL)

Show answer and explanation

Correct answer: A

Explanation

Write-through caching is the best choice when you need to ensure that the cache always contains the most up-to-date data. In this strategy, updates to the database are immediately mirrored in the cache, eliminating the risk of stale data. Other strategies, such as lazy loading or cache-aside, may result in stale data in the cache since they update the cache only after a cache miss or when TTL expires.

  • A. Correct.

    Write-through caching ensures that whenever data is written to the database, it is also written to the cache simultaneously. This guarantees that the cache is always up-to-date, making it the most appropriate strategy in this scenario.

  • B. Incorrect.

    Read-through caching is used to fetch data from the cache or the database when a read request is made. However, it does not ensure that the cache is updated when the database is updated, so this is not suitable for the given requirement.

  • C. Incorrect.

    Lazy loading populates the cache only when a cache miss occurs. While it reduces initial cache overhead, it does not ensure that the cache is updated when DynamoDB data changes, which makes it unsuitable for this scenario.

  • D. Incorrect.

    Cache-aside with time-to-live (TTL) allows data to expire after a set duration, requiring a database fetch on expiration. While it can reduce stale data, it does not guarantee immediate synchronization with DynamoDB upon updates.

DVA-C02 Question 105

Select 2

A developer is managing an Amazon S3 bucket used for storing large amounts of log data. The logs are frequently accessed for the first 30 days but rarely accessed afterward. To optimize costs, the developer wants to automatically transition these logs to a cheaper storage class after 30 days and delete them after 365 days. Which combination of lifecycle rules will achieve this?

  1. A

    Set a lifecycle rule to transition objects to the S3 Standard-IA storage class after 30 days and another rule to transition them to S3 Glacier Deep Archive after 365 days.

  2. B

    Set a lifecycle rule to transition objects to the S3 Standard-IA storage class after 30 days and another rule to expire objects after 365 days.

  3. C

    Set a lifecycle rule to transition objects to the S3 One Zone-IA storage class after 30 days and another rule to transition them to S3 Glacier after 365 days.

  4. D

    Set a lifecycle rule to transition objects to the S3 Intelligent-Tiering storage class after 30 days and another rule to expire objects after 365 days.

  5. E

    Set a lifecycle rule to transition objects to the S3 Glacier Deep Archive storage class after 30 days and another rule to expire objects after 365 days.

Show answer and explanation

Correct answers: B, D

Explanation

To optimize costs while meeting the requirements, the logs should be transitioned to a cheaper storage tier like S3 Standard-IA or S3 Intelligent-Tiering after 30 days when they are rarely accessed. After 365 days, the logs should be automatically deleted to comply with the retention policy. Options 2 and 4 achieve this by using lifecycle rules to transition to appropriate storage tiers and expire the objects after the required time.

  • A. Incorrect.

    Incorrect: While transitioning to S3 Glacier Deep Archive is cost-effective, transitioning after 365 days does not match the requirement to delete the logs after 365 days.

  • B. Correct.

    Correct: This rule transitions objects to the S3 Standard-IA class after 30 days for cost optimization and deletes them after 365 days, aligning perfectly with the requirements.

  • C. Incorrect.

    Incorrect: Transitioning objects to S3 One Zone-IA is riskier as it stores data in a single Availability Zone, and transitioning to S3 Glacier after 365 days does not meet the requirement of deleting the logs after 365 days.

  • D. Correct.

    Correct: Transitioning objects to S3 Intelligent-Tiering is a valid cost-optimization strategy for infrequent access, and expiring the objects after 365 days ensures the logs are deleted as required.

  • E. Incorrect.

    Incorrect: Transitioning to S3 Glacier Deep Archive after 30 days is unnecessary for logs that are still frequently accessed during that period, and expiring them after 365 days is correct but not the most cost-effective solution for this use case.

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 101 to 200 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. 101.You are developing an e-commerce web application that uses Amazon ElastiCache to improve performance. The...
  2. 102.You are developing an e-commerce application that uses an Amazon ElastiCache cluster to improve the...
  3. 103.You are developing an e-commerce application that uses Amazon DynamoDB as the database and Amazon ElastiCache...
  4. 104.You are developing a high-traffic e-commerce application that uses an Amazon DynamoDB table to store product...
  5. 105.A developer is managing an Amazon S3 bucket used for storing large amounts of log data. The logs are...
  6. 106.You are developing an application that stores large amounts of data in Amazon S3. Some of the data is...
  7. 107.You are developing an application that stores large amounts of user-generated content on Amazon S3. To...
  8. 108.Your company stores a large volume of log files in an Amazon S3 bucket. These logs are accessed frequently...
  9. 109.A developer is building a real-time data analytics application on AWS that processes streaming data from IoT...
  10. 110.An application running on Amazon EC2 handles real-time video processing. The processed video files need to be...
  11. 111.A company is deploying a containerized application on Amazon ECS. The application requires high-speed...
  12. 112.A developer is designing an application that processes large volumes of log files, which are required only...
  13. 113.You are developing an application that stores sensitive customer data in an Amazon S3 bucket. To meet strict...
  14. 114.You are developing a serverless application using AWS Lambda and API Gateway. The API handles sensitive...
  15. 115.A developer is creating a serverless application using AWS Lambda. The Lambda function will need to access an...
  16. 116.You are developing a serverless application using AWS Lambda, and you need to ensure that your Lambda...
  17. 117.You are developing a serverless application using AWS Lambda and API Gateway. The application needs to...
  18. 118.You are developing a serverless application using AWS Lambda that requires secure access to a DynamoDB table....
  19. 119.You are developing a serverless application on AWS that uses Amazon API Gateway, AWS Lambda, and Amazon...
  20. 120.You are developing a serverless application using AWS Lambda and API Gateway. The application needs to allow...
  21. 121.A developer is building a serverless application using AWS Lambda to process user-uploaded images. The...
  22. 122.You are developing a serverless application on AWS and need to ensure that your AWS Lambda function can...
  23. 123.You are developing a serverless application using AWS Lambda. The application processes images uploaded to an...
  24. 124.You are developing a serverless application using AWS Lambda to process images uploaded to an S3 bucket. The...
  25. 125.A company is building a web application that allows users to log in using their existing social media...
  26. 126.A company is building a customer-facing web application that requires users to log in with their existing...
  27. 127.A company is building a web application that allows users to log in using their existing corporate...
  28. 128.A company is building a web application where users can sign in using their existing social identity...
  29. 129.You are developing a serverless application on AWS that uses Amazon API Gateway to expose RESTful APIs and...
  30. 130.An e-commerce application hosted on AWS needs to authenticate users and grant temporary access to certain...
  31. 131.A developer is building a serverless application using AWS API Gateway and AWS Lambda. The application needs...
  32. 132.A developer is building a web application that uses Amazon API Gateway to expose backend APIs. The APIs...
  33. 133.Your company is building a web application where users can sign up, log in, and access various resources...
  34. 134.Your company is building a mobile application that requires user authentication and authorization. You need...
  35. 135.You are developing a mobile application where users need to sign in using their email and password....
  36. 136.A development team is building a mobile application that requires user authentication and access to AWS...
  37. 137.You are developing an application that stores files in an S3 bucket. The application runs on an EC2 instance...
  38. 138.A developer is building an application that uses an Amazon S3 bucket to store and serve static assets. The...
  39. 139.A developer is working on a serverless application that uses AWS Lambda to process data stored in an S3...
  40. 140.You are developing a serverless application using AWS Lambda and Amazon S3. Your Lambda function needs to...
  41. 141.A development team is building a serverless application using AWS Lambda functions, Amazon S3, and Amazon...
  42. 142.A company is using AWS to host its application. The development team is required to access resources such as...
  43. 143.A company is developing a serverless application using AWS Lambda. The application requires access to an S3...
  44. 144.You are designing an application that uses Amazon S3 to store files. The application has three user groups:...
  45. 145.You are developing an application that stores its data in an Amazon S3 bucket. The application needs to grant...
  46. 146.You are developing a web application that allows users to upload and share images. The images are stored in...
  47. 147.You are developing a photo-sharing application that stores user-uploaded images in an Amazon S3 bucket. The...
  48. 148.You are developing a photo-sharing application where users can upload and share images. The images are stored...
  49. 149.You are developing an application that uses AWS Lambda to process data from an Amazon S3 bucket. The Lambda...
  50. 150.A developer is working on an application hosted in AWS that requires access to an S3 bucket to read and write...
  51. 151.You are developing a serverless application using AWS Lambda. Your function needs to read data from an S3...
  52. 152.You are developing a serverless application on AWS and have created an AWS Lambda function that needs to read...
  53. 153.A development team wants to create fine-grained access control for their application running on AWS. They are...
  54. 154.Your team is working on implementing fine-grained access control for an application running on AWS. A...
  55. 155.Your development team needs to grant permissions to an AWS Lambda function to access an S3 bucket. The team...
  56. 156.A developer is setting up IAM permissions for a new application in AWS. The developer wants to use a policy...
  57. 157.You are developing an application that runs on Amazon EC2 instances and uses Amazon S3 for storing...
  58. 158.A company is building a serverless web application using AWS Lambda, API Gateway, and DynamoDB. They want to...
  59. 159.A company is building an application that uses an Amazon S3 bucket to store user-uploaded images. The...
  60. 160.A development team is building an application that needs to upload and retrieve objects from an Amazon S3...
  61. 161.A developer is building an application that stores sensitive customer data in an Amazon S3 bucket. The...
  62. 162.You are developing an application hosted on Amazon EC2 instances that stores sensitive customer data in an...
  63. 163.A developer is building an application that stores sensitive customer data in an Amazon S3 bucket. To meet...
  64. 164.You are developing a serverless application using AWS Lambda, and your function processes sensitive data that...
  65. 165.A developer is building a serverless application on AWS and needs to store application configuration settings...
  66. 166.You are developing a serverless application using AWS Lambda and need to ensure that your function can...
  67. 167.Your company is building a serverless application using AWS Lambda and Amazon DynamoDB. The application...
  68. 168.A developer is building a serverless application using AWS Lambda. The application requires connecting to an...
  69. 169.A developer is building an application that stores sensitive customer data in an Amazon S3 bucket. Compliance...
  70. 170.You are developing an application that stores sensitive customer data in Amazon S3. The application must...
  71. 171.You are developing a serverless application that stores sensitive customer data in an Amazon S3 bucket. The...
  72. 172.A developer is designing a serverless application that stores sensitive customer information in an Amazon...
  73. 173.You are developing an application that needs to securely communicate with multiple internal microservices...
  74. 174.A development team is building a secure internal web application that requires SSL/TLS encryption. The team...
  75. 175.You are developing a secure internal application that requires mutual TLS (mTLS) to authenticate clients and...
  76. 176.Your organization is hosting a secure web application on Amazon ECS using an Application Load Balancer (ALB)....
  77. 177.You are developing an application that uses AWS KMS to encrypt sensitive data. To ensure that your encryption...
  78. 178.You are developing an application that uses an AWS KMS (Key Management Service) Customer Managed Key (CMK) to...
  79. 179.You have an application running on AWS that uses a customer-managed AWS KMS key to encrypt sensitive data...
  80. 180.You are developing an application that uses an AWS KMS customer-managed key (CMK) to encrypt sensitive data....
  81. 181.An AWS developer is designing a secure file upload system for an S3 bucket. The system must ensure that the...
  82. 182.You are developing an application that processes sensitive customer data and stores it in an Amazon S3...
  83. 183.A developer is building a secure file upload application that stores sensitive data in Amazon S3. The...
  84. 184.Your application stores sensitive data in an Amazon S3 bucket. To meet compliance requirements, the data must...
  85. 185.You are developing an application that encrypts sensitive data using AWS Key Management Service (AWS KMS)....
  86. 186.A developer is designing an application that requires encryption for sensitive data stored in Amazon S3. They...
  87. 187.You are developing an application that encrypts sensitive customer data using AWS Key Management Service (AWS...
  88. 188.A developer is working on an application that requires encryption using AWS Key Management Service (AWS KMS)....
  89. 189.You are building a serverless application on AWS, and the application requires access to an external API. The...
  90. 190.You are developing an AWS Lambda function that processes credit card transactions. To comply with security...
  91. 191.You are developing a serverless application using AWS Lambda, and your function needs to connect to an RDS...
  92. 192.You are developing an application that requires access to an Amazon S3 bucket to store and retrieve sensitive...
  93. 193.You are developing a serverless application using AWS Lambda and Amazon DynamoDB. Your application requires...
  94. 194.You are developing a serverless application using AWS Lambda. The application needs to process large batches...
  95. 195.You are developing a serverless application using AWS Lambda and Amazon S3. Your Lambda function processes...
  96. 196.You are developing a serverless application using AWS Lambda. The Lambda function processes messages from an...
  97. 197.You are developing a serverless application that processes sensitive customer data, including personally...
  98. 198.You are developing an application that processes sensitive user data, including personally identifiable...
  99. 199.You are developing a healthcare application on AWS that stores and processes patient data, including...
  100. 200.Your application stores customer data in Amazon S3 and processes it using AWS Lambda. The data includes...