Exams > Amazon > AWS Certified Developer Associate
AWS Certified Developer Associate
Page 19 out of 39 pages Questions 181-190 out of 390 questions
Question#181

A software engineer developed an AWS Lambda function in Node.js to do some CPU-intensive data processing. With the default settings, the Lambda function takes about 5 minutes to complete.

Which approach should a developer take to increase the speed of completion?

  • A. Instead of using Node.js. rewrite the Lambda function using Python.
  • B. Instead of packaging the libraries in the ZIP file with the function, move them to a Lambda layer and use the layer with the function.
  • C. Allocate the maximum available CPU units to the function.
  • D. Increase the available memory to the function.
Discover Answer Hide Answer

D

Question#182

A developer must build a mobile application that allows users to read and write data from an Amazon DynamoDB table to store user state for each unique user. The solution needs to limit data access to allow users access only to their own data.

Which solution below is the most secure?

  • A. Embed AWS access credentials into the application and create DynamoDB queries that limit user access.
  • B. Use Amazon Cognito identity pools to assign unique identifiers and provide user access.
  • C. Modify the DynamoDB table to allow public read and writes, then add client-side filtering.
  • D. Create a web portal for users to create an account on AWS Directory Service.
Discover Answer Hide Answer

C

Question#183

A developer is developing an application that uses signed requests (Signature Version 4) to call other AWS services. The developer has created a canonical request, has created the string to sign, and has calculated signing information.

Which methods could the developer use to complete a signed request? (Choose two.)

  • A. Add the signature to an HTTP header that is named Authorization
  • B. Add the signature to a session cookie
  • C. Add the signature to an HTTP header that is named Authentication
  • D. Add the signature to a query string parameter that is named X-Amz-Signature
  • E. Add the signature to an HTTP header that is named WWW-Authenticate
Discover Answer Hide Answer

AD

Question#184

A company has an Amazon S3 bucket containing premier content that it intends to make available to only paid subscribers of its website. The S3 bucket currently has default permissions of all objects being private to prevent inadvertent exposure of the premier content to non-paying website visitors.

How can the company limit the ability to download a premier content file in the S3 bucket to paid subscribers only?

  • A. Apply a bucket policy that allows anonymous users to download the content from the S3 bucket.
  • B. Generate a pre-signed object URL for the premier content file when a paid subscriber requests a download.
  • C. Add a bucket policy that requires multi-factor authentication for requests to access the S3 bucket objects.
  • D. Enable server-side encryption on the S3 bucket for data protection against the non-paying website visitors.
Discover Answer Hide Answer

B

Question#185

An application under development is required to store hundreds of video files. The data must be encrypted within the application prior to storage, with a unique key for each video file.

How should the Developer code the application?

  • A. Use the KMS Encrypt API to encrypt the data. Store the encrypted data key and data.
  • B. Use a cryptography library to generate an encryption key for the application. Use the encryption key to encrypt the data. Store the encrypted data.
  • C. Use the KMS GenerateDataKey API to get a data key. Encrypt the data with the data key. Store the encrypted data key and data.
  • D. Upload the data to an S3 bucket using server side-encryption with an AWS KMS key.
Discover Answer Hide Answer

C

Question#186

An organization is storing large files in Amazon S3, and is writing a web application to display meta-data about the files to end-users. Based on the metadata a user selects an object to download. The organization needs a mechanism to index the files and provide single-digit millisecond latency retrieval for the metadata.

What AWS service should be used to accomplish this?

  • A. Amazon DynamoDB
  • B. Amazon EC2
  • C. AWS Lambda
  • D. Amazon RDS
Discover Answer Hide Answer

A

Question#187

A developer is writing an application in AWS Lambda. To simplify testing and deployments, the developer needs the database connection string to be easily changed without modifying the Lambda code.

How can this requirement be met?

  • A. Store the connection string as a secret in AWS Secrets Manager.
  • B. Store the connection string in an IAM user account.
  • C. Store the connection string in AWS KMS.
  • D. Store the connection string as a Lambda layer.
Discover Answer Hide Answer

A

Question#188

A company has an AWS Lambda function that reads messages from an Amazon Simple Queue Service (Amazon SQS) queue by using the Amazon SQS API. The Lambda function is not processing all the messages successfully because of random failures of a third-party dependency. A developer needs to improve the reliability of the Lambda function so that the Lambda function will process each message successfully despite the failures of the third-party dependency.

Which solution will meet this requirement with the LEAST effort?

  • A. Move the call to the third-party dependency into an exception handling block. Write the message back to the SQS queue if a failure in the third-party dependency is caught in the exception handler.
  • B. Update the code in the Lambda function to remove calls to the SQS SDK ReceiveMessage function. Configure the Lambda function to use the SQS queue as an event source. Set the maxReceiveCount value on the SQS queue's redrive policy to at least 5.
  • C. Create a second SQS queue to use as a dead-letter queue. Configure a redrive policy on the original SQS queue to send failed messages to the dead-letter queue. Modify the Lambda function to read messages from both queues.
  • D. Create a second SQS queue to use as a dead-letter queue. Move the call to the third-party dependency into an exception handling block. Write the message to the dead-letter queue if a failure in the third-party dependency is caught in the exception handler.
Discover Answer Hide Answer

D

Question#189

A developer is building a new application that uses an Amazon DynamoDB table. The specification states that all items that are older than 48 hours must be removed.

Which solution will meet this requirement?

  • A. Create a new attribute that has the Number data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
  • B. Create a new attribute that has the String data type. Add a local secondary index (LSI) for this attribute, and enable TTL with an expiration of 48 hours. In the application code, set the value of this attribute to the current timestamp for each new item that is being inserted.
  • C. Create a new attribute that has the Number data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
  • D. Create a new attribute that has the String data type. Enable TTL on the DynamoDB table for this attribute. In the application code, set the value of this attribute to the current timestamp plus 48 hours for each new item that is being inserted.
Discover Answer Hide Answer

C

Question#190

A developer is designing a web application in which new users will use their email addresses to create accounts. Millions of users are expected to sign up. The application will store attributes for each user.

Which AWS service or feature should the developer implement to meet these requirements?

  • A. Amazon Cognito user pools
  • B. AWS Mobile Hub User File Storage
  • C. AWS AppSync
  • D. AWS Mobile Hub Cloud Logic
Discover Answer Hide Answer

B

chevron rightPrevious Nextchevron right