AWS Certified Developer Associate (DVA-C02)

The AWS Certified Developer Associate (DVA-C02) were last updated on today.
  • Viewing page 7 out of 215 pages.
  • Viewing questions 31-35 out of 1,075 questions
Disclaimers:
  • - ExamTopics website is not related to, affiliated with, endorsed or authorized by Amazon.and Azure
  • - Trademarks, certification & product names are used for reference only and belong to Amazon.and Azure

Topic 1 - Exam A

Question #31 Topic 1

A developer is integrating Amazon ElastiCache in an application. The cache will store data from a database. The cached data must populate real-time dashboards. Which caching strategy will meet these requirements?

  • A A read-through cache
  • B A write-behind cache
  • C A lazy-loading cache
  • D A write-through cache
Suggested Answer: A
NOTE: Answer is :A
Explanation :A read-through cache is the best option because it aims to minimize missed cache reads. The application will fetch the necessary data in real time from the database and cache it for subsequent requests. This is essential for real-time dashboards that need to reflect the most up-to-date data.
Question #32 Topic 1

A developer is writing an application for a company. The application will be deployed on Amazon EC2 and will use an Amazon RDS for Microsoft SQL Server database. The company's security team requires that database credentials are rotated at least weekly. How should the developer configure the database credentials for this application?

  • A Create a database user. Store the user name and password in an AWS Systems Manager Parameter Store secure string parameter. Enable rotation of the AWS Key Management Service (AWS KMS) key that is used to encrypt the parameter.
  • B Enable IAM authentication for the database. Create a database user for use with IAM authentication. Enable password rotation.
  • C Create a database user. Store the user name and password in an AWS Secrets Manager secret that has daily rotation enabled.
  • D Use the EC2 user data to create a database user. Provide the user name and password in environment variables to the application.
Suggested Answer: C
NOTE: Answer is :C
Explanation :AWS Secrets Manager protects access to applications, services, and IT resources. This without the upfront investment and on-going maintenance costs of operating your own infrastructure. The AWS Secrets Manager accomplishes the rotation function without any additional programming. Therefore, it's the best choice for credentials' rotation on a daily basis, which will definitely meet the company's requirement of at least a weekly rotation.
Question #33 Topic 1

A developer has written code for an application and wants to share it with other developers on the team to receive feedback. The shared application code needs to be stored long-term with multiple versions and batch change tracking. Which AWS service should the developer use?

  • A AWS CodeBuild
  • B Amazon S3
  • C AWS CodeCommit
  • D AWS Cloud9
Suggested Answer: C
NOTE: Answer is :C
Explanation :AWS CodeCommit is a version control system that hosts Git repositories and acts as a source for AWS's other fully-managed deployment services. It is designed to keep track of code changes from various developers, coupled with functionalities for code collaboration and review. While AWS CodeBuild is a build service, Amazon S3 is a storage service, and Cloud9 is an integrated development environment (IDE) service, they don't offer robust version control and collaboration tools on par with CodeCommit.
Question #34 Topic 1

A company is building a web application on AWS. When a customer sends a request, the application will generate reports and then make the reports available to the customer within one hour. Reports should be accessible to the customer for 8 hours. Some reports are larger than 1 MB. Each report is unique to the customer. The application should delete all reports that are older than 2 days. Which solution will meet these requirements with the LEAST operational overhead?

  • A Generate the reports and then store the reports as Amazon DynamoDB items that have a specified TTL. Generate a URL that retrieves the reports from DynamoDB. Provide the URL to customers through the web application.
  • B Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption. Attach the reports to an Amazon Simple Notification Service (Amazon SNS) message. Subscribe the customer to email notifications from Amazon SNS.
  • C Generate the reports and then store the reports in an Amazon S3 bucket that uses server-side encryption. Generate a presigned URL that contains an expiration date Provide the URL to customers through the web application. Add S3 Lifecycle configuration rules to the S3 bucket to delete old reports.
  • D Generate the reports and then store the reports in an Amazon RDS database with a date stamp. Generate an URL that retrieves the reports from the RDS database. Provide the URL to customers through the web application. Schedule an hourly AWS Lambda function to delete database records that have expired date stamps.
Suggested Answer: C
NOTE: Answer is :C
Explanation :The answer is C because Amazon S3 provides simple and secure storage for the generated reports with the feature of server-side encryption. Presigned URLs can be used to grant time-limited access to the customer for the reports. The S3 Lifecycle configuration can be an efficient and automatic way to handle deletion of older reports, meeting the requirement of deleting reports that are older than 2 days.
Question #35 Topic 1

A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table. What is the MOST likely cause of this issue?

  • A The Lambda function's concurrency limit has been exceeded.
  • B DynamoDB table requires a global secondary index (GSI) to support writes.
  • C The Lambda function does not have IAM permissions to write to DynamoDB.
  • D The DynamoDB table is not running in the same Availability Zone as the Lambda function.
Suggested Answer: C
NOTE: Answer is :C
Explanation :AWS Lambda function needs IAM permissions to write to DynamoDB. Without these permissions, the function may be invoked, but it will fail when it tries to write to the DynamoDB table.