AWS Certified Developer Associate (DVA-C02)

The AWS Certified Developer Associate (DVA-C02) were last updated on today.
  • Viewing page 6 out of 215 pages.
  • Viewing questions 26-30 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 #26 Topic 1

A developer is creating an AWS Lambda function. The Lambda function needs an external library to connect to a third-party solution. The external library is a collection of files with a total size of 100 MB. The developer needs to make the external library available to the Lambda execution environment and reduce the Lambda package space. Which solution will meet these requirements with the LEAST operational overhead?

  • A Create a Lambda layer to store the external library. Configure the Lambda function to use the layer.
  • B Create an Amazon S3 bucket. Upload the external library into the S3 bucket. Mount the S3 bucket folder in the Lambda function. Import the library by using the proper folder in the mount point.
  • C Load the external library to the Lambda function's /tmp directory during deployment of the Lambda package. Import the library from the /tmp directory.
  • D Create an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the EFS volume. Mount the EFS volume in the Lambda function. Import the library by using the proper folder in the mount point.
Suggested Answer: A
NOTE: Answer is :A
Explanation :Creating a Lambda Layer to store the external library not only makes it reusable but also reduces the Lambda package space. This option provides the least operational overhead among the options.
Question #27 Topic 1

A company is creating an application that processes .csv files from Amazon S3. A developer has created an S3 bucket. The developer has also created an AWS Lambda function to process the .csv files from the S3 bucket. Which combination of steps will invoke the Lambda function when a .csv file is uploaded to Amazon S3? (Choose two.)

  • A Create an Amazon EventBridge rule. Configure the rule with a pattern to match the S3 object created event.
  • B Schedule an Amazon EventBridge rule to run a new Lambda function to scan the S3 bucket.
  • C Add a trigger to the existing Lambda function. Set the trigger type to EventBridge. Select the Amazon EventBridge rule.
  • D Create a new Lambda function to scan the S3 bucket for recently added S3 objects.
  • E Add S3 Lifecycle rules to invoke the existing Lambda function.
Suggested Answer: AC
NOTE: Answer is :A, C
Explanation :This processing needs two steps: creating an Amazon EventBridge rule to match the S3 object created event, and then use this rule to trigger the existent Lambda function.
Question #28 Topic 1

A developer is creating an application that will store personal health information (PHI). The PHI needs to be encrypted at all times. An encrypted Amazon RDS for MySQL DB instance is storing the data. The developer wants to increase the performance of the application by caching frequently accessed data while adding the ability to sort or rank the cached datasets. Which solution will meet these requirements?

  • A Create an Amazon ElastiCache for Redis instance. Enable encryption of data in transit and at rest. Store frequently accessed data in the cache.
  • B Create an Amazon ElastiCache for Memcached instance. Enable encryption of data in transit and at rest. Store frequently accessed data in the cache.
  • C Create an Amazon RDS for MySQL read replica. Connect to the read replica by using SSL. Configure the read replica to store frequently accessed data.
  • D Create an Amazon DynamoDB table and a DynamoDB Accelerator (DAX) cluster for the table. Store frequently accessed data in the DynamoDB table.
Suggested Answer: A
NOTE: Answer is :A
Explanation :Amazon ElastiCache for Redis supports both in-transit and at-rest encryption, which is needed to protect the sensitive PHI data. It can also handle sorted sets, a feature needed by the developer.
Question #29 Topic 1

A developer maintains an Amazon API Gateway REST API. Customers use the API through a frontend UI and Amazon Cognito authentication. The developer has a new version of the API that contains new endpoints and backward-incompatible interface changes. The developer needs to provide beta access to other developers on the team without affecting customers. Which solution will meet these requirements with the LEAST operational overhead?

  • A Define a development stage on the API Gateway API. Instruct the other developers to point the endpoints to the development stage.
  • B Define a new API Gateway API that points to the new API application code. Instruct the other developers to point the endpoints to the new API.
  • C Implement a query parameter in the API application code that determines which code version to call.
  • D Specify new API Gateway endpoints for the API endpoints that the developer wants to add.
Suggested Answer: A
NOTE: Answer is :A
Explanation :Creating a new stage on API Gateway allows the different versions of the API to be managed separately, reducing operational overhead and risks to customers.
Question #30 Topic 1

An application is using Amazon Cognito user pools and identity pools for secure access. A developer wants to integrate the user-specific file upload and download features in the application with Amazon S3. The developer must ensure that the files are saved and retrieved in a secure manner and that users can access only their own files. The file sizes range from 3 KB to 300 MB. Which option will meet these requirements with the HIGHEST level of security?

  • A Use S3 Event Notifications to validate the file upload and download requests and update the user interface (UI).
  • B Save the details of the uploaded files in a separate Amazon DynamoDB table. Filter the list of files in the user interface (UI) by comparing the current user ID with the user ID associated with the file in the table.
  • C Use Amazon API Gateway and an AWS Lambda function to upload and download files. Validate each request in the Lambda function before performing the requested operation.
  • D Use an IAM policy within the Amazon Cognito identity prefix to restrict users to use their own folders in Amazon S3.
Suggested Answer: D
NOTE: Answer is :D
Explanation :IAM policies in conjunction with Amazon Cognito’s unique identifiers can provide fine grained access control for your S3 resources, including the ability to restrict access to user specific folders. This makes option D the choice with the highest level of security.