Home » Exam Preparation » Certification » AWS Certified Developer Associate Exam Dumps » Page 17

AWS Certified Developer Associate Exam Dumps

Question #161

A nightly batch job loads 1 million new records into a DynamoDB table. The records are only needed for one hour, and the table needs to be empty by the next night’s batch job.
Which is the MOST efficient and cost-effective method to provide an empty table?

  • A. Use DeleteItem using a ConditionExpression.
  • B. Use BatchWriteItem to empty all of the rows.
  • C. Write a recursive function that scans and calls out DeleteItem.
  • D. Create and then delete the table after the task has completed.

Correct Answer: A

Question #162

A company has an application that logs all information to Amazon S3. Whenever there is a new log file, an AWS Lambda function is invoked to process the log files. The code works, gathering all of the necessary information. However, when checking the Lambda function logs, duplicate entries with the same request ID are found.
What is causing the duplicate entries?

  • A. The S3 bucket name was specified incorrectly.
  • B. The Lambda function failed, and the Lambda service retired the invocation with a delay.
  • C. There was an S3 outage, which caused duplicate entries of the sale log file.
  • D. The application stopped intermittently and then resumed.

Correct Answer: B

Question #163

A company maintains a REST service using Amazon API Gateway and the API Gateway native API key validation. The company recently launched a new registration page, which allows users to sign up for the service. The registration page creates a new API key using CreateApiKey and sends the new key to the user. When the user attempts to call the API using this key, the user receives a 403 Forbidden error. Existing users are unaffected and can still call the API.
What code updates will grant these new users access to the API?

  • A. The createDeployment method must be called so the API can be redeployed to include the newly created API key.
  • B. The updateAuthorizer method must be called to update the API’s authorizer to include the newly created API key.
  • C. The importApiKeys method must be called to import all newly created API keys into the current stage of the API.
  • D. The createUsagePlanKey method must be called to associate the newly created API key with the correct usage plan. C

Correct Answer: Explanation

Question #164

A Developer is writing a mobile application that allows users to view images from an S3 bucket. The users must be able to log in with their Amazon login, as well as Facebook® and/or Google® accounts.
How can the Developer provide this authentication functionality?

  • A. Use Amazon Cognito with web identity federation.
  • B. Use Amazon Cognito with SAML-based identity federation.
  • C. Use AWS IAM Access/Secret keys in the application code to allow Get* on the S3 bucket.
  • D. Use AWS STS AssumeRole in the application code and assume a role with Get* permissions on the S3 bucket. A

Correct Answer: Explanation

Question #165

A Developer has created a Lambda function and is finding that the function is taking longer to complete than expected. After some debugging, the Developer has discovered that increasing compute capacity would improve performance.
How can the Developer increase the Lambda compute resources?

  • A. Run on a larger instance size with more compute capacity.
  • B. Increase the maximum execution time.
  • C. Specify a larger compute capacity when calling the Lambda function.
  • D. Increase the allocated memory for the Lambda function.

Correct Answer: C

Question #166

An e-commerce site allows returning users to log in to display customized web pages. The workflow is shown in the image below:
Website Workflow
An application is running on EC2 instances. Amazon RDS is used for the database that stores user accounts and preferences. The website freezes or is slow to load while waiting for the login step to complete. The remaining components of the site are well-optimized.
Which of the following techniques will resolve this issue? (Select Two.)

  • A. Implement the user login page as an asynchronous Lambda function.
  • B. Use Amazon ElastiCache for MemCached to cache user data.
  • C. Use Amazon Application Load Balancer to load balance the traffic to the website.
  • D. Call the database asynchronously so the code can continue executing.
  • E. Batch login requests from hundreds of users together as a single read request to the database. BD

Correct Answer: Explanation

Question #167

A Developer is building a mobile application and needs any update to user profile data to be pushed to all devices accessing the specific identity. The Developer does not want to manage a back end to maintain the user profile data.
What is the MOST efficient way for the Developer to achieve these requirements using Amazon Cognito?

  • A. Use Cognito federated identities.
  • B. Use a Cognito user pool.
  • C. Use Cognito Sync.
  • D. Use Cognito events.

Correct Answer: A

Question #168

A company is migrating a single-server, on-premises web application to AWS. The company intends to use multiple servers behind an Elastic Load Balancer
(ELB) to balance the load, and will also store session data in memory on the web server. The company does not want to lose that session data if a server fails or goes offline, and it wants to minimize user’s downtime.
Where should the company move session data to MOST effectively reduce downtime and make users’ session data more fault tolerant?

  • A. An Amazon ElastiCache for Redis cluster
  • B. A second Amazon EBS volume
  • C. The web server’s primary disk
  • D. An Amazon EC2 instance dedicated to session data

Correct Answer: A

Question #169

A Developer created configuration specifications for an AWS Elastic Beanstalk application in a file named healthcheckurl.yaml in the .ebextensions/directory of their application source bundle. The file contains the following:
healthcheckurl.yaml option settings
After the application launches, the health check is not being run on the correct path, event though it is valid.
What can be done to correct this configuration file?

  • A. Convert the file to JSON format.
  • B. Rename the file to a .config extension.
  • C. Change the configuration section from options_settings to resources.
  • D. Change the namespace of the option settings to a custom namespace. C

Correct Answer: Explanation
Reference:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/ebextensions.html

Question #170

A Developer is making changes to a custom application that is currently using AWS Elastic Beanstalk.
After the Developer completes the changes, what solutions will update the Elastic Beanstalk environment with the new application version? (Choose two.)

  • A. Package the application code into a .zip file, and upload, then deploy the packaged application from the AWS Management Console
  • B. Package the application code into a .tar file, create a new application version from the AWS Management Console, then update the environment by using AWS CLI
  • C. Package the application code into a .tar file, and upload and deploy the packaged application from the AWS Management Console
  • D. Package the application code into a .zip file, create a new application version from the packaged application by using AWS CLI, then update the environment by using AWS CLI
  • E. Package the application code into a .zip file, create a new application version from the AWS Management Console, then rebuild the environment by using AWS CLI

Correct Answer: CD

Leave a Comment