Exams > Amazon > AWS Certified Developer Associate
AWS Certified Developer Associate
Page 2 out of 39 pages Questions 11-20 out of 390 questions
Question#11

A developer received the following error message during an AWS CloudFormation deployment:
DELETE_FAILED (The following resource(s) failed to delete: [ASGInstanceRolel2345678].)
Which action should the developer take to resolve this error?

  • A. Contact AWS Support to report an issue with the Auto Scaling Groups (ASG) service.
  • B. Add a DependsOn attribute to the ASGInstanceRole12345678 resource in the CloudFormation template. Then delete the stack.
  • C. Modify the CloudFormation template to retain the ASGInstanceRolel2345678 resource. Then manually delete the resource after deployment.
  • D. Add a force parameter when calling CloudFormation with the role-arn of ASGInstanceRolel2345678.
Discover Answer Hide Answer

C

Question#12

An application runs on multiple EC2 instances behind an ELB.
Where is the session data best written so that it can be served reliably across multiple requests?

  • A. Write data to Amazon ElastiCache.
  • B. Write data to Amazon Elastic Block Store.
  • C. Write data to Amazon EC2 Instance Store.
  • D. Write data to the root filesystem.
Discover Answer Hide Answer

C

Question#13

A company is using continuous integration/continuous delivery (CI/CD) systems. A developer must automate the deployment of an application software package to Amazon EC2 instances and virtual servers that run on premises.
Which AWS service should the developer use to meet these requirements?

  • A. AWS Cloud9
  • B. AWS CodeBuild
  • C. AWS Elastic Beanstalk
  • D. AWS CodeDeploy
Discover Answer Hide Answer

D

Question#14

A software company is using AWS CodeBuild to build an application. The buildspec runs the application build and creates a Docker image that contains the application. The company needs to push the Docker image to Amazon Elastic Container Registry (Amazon ECR) only upon the completion of each successful build.
Which solution meets these requirements?

  • A. Change the buildspec by adding a post_build phase that uses the commands block to push the Docker image.
  • B. Change the buildspec by adding a post_build phase that uses the finally block to push the Docker image.
  • C. Specify the Docker image in the buildspec's artifacts sequence with an action to push the image.
  • D. Use a batch build to define a build matrix. Use the batch build to push the Docker image.
Discover Answer Hide Answer

C

Question#15

A company is using Amazon RDS as the backend database for its application. After a recent marketing campaign, a surge of read requests to the database increased the latency of data retrieval from the database.
The company has decided to implement a caching layer in front of the database. The cached content must be encrypted and must be highly available.
Which solution will meet these requirements?

  • A. Amazon CloudFront
  • B. Amazon ElastiCache for Memcached
  • C. Amazon ElastiCache for Redis in cluster mode
  • D. Amazon DynamoDB Accelerator (DAX)
Discover Answer Hide Answer

C

Question#16

A company has an application that runs on AWS Elastic Beanstalk in a load-balanced environment. The company needs to update the instance types in the environment to a more recent generation of instance types. The company must minimize downtime during the deployment of this configuration change.
Which deployment options will meet these requirements? (Choose two.)

  • A. Disabled
  • B. Rolling based on Health
  • C. Immutable
  • D. All at once
  • E. Canary
Discover Answer Hide Answer

CE

Question#17

Given the source code for an AWS Lambda function in the local file store.py containing a handler function called get_store and the following AWS
CloudFormation template:

What should be done to prepare the template so that it can be deployed using the AWS CLI command aws cloudformation deploy?

  • A. Use aws cloudformation compile to base64 encode and embed the source file into a modified CloudFormation template.
  • B. Use aws cloudformation package to upload the source code to an Amazon S3 bucket and produce a modified CloudFormation template.
  • C. Use aws lambda zip to package the source file together with the CloudFormation template and deploy the resulting zip archive.
  • D. Use aws serverless create-package to embed the source file directly into the existing CloudFormation template.
Discover Answer Hide Answer

B

Question#18

A company is developing a report implemented using AWS Step Functions. Amazon CloudWatch shows errors in the Step Functions task state machine. To troubleshoot each task, the state input needs to be included along with the error message in the state output.
Which coding practice can preserve both the original input and the error for the state?

  • A. Use ResultPath in a Catch statement to include the error with the original input.
  • B. Use InputPath in a Catch statement and set the value to null.
  • C. Use ErrorEquals in a Retry statement to include the error with the original input.
  • D. Use OutputPath in a Retry statement and set the value to $.
Discover Answer Hide Answer

B

Question#19

A developer is receiving HTTP 400: ThrottlingException errors intermittently when calling the Amazon CloudWatch API. When a call fails, no data is retrieved.
What best practice should first be applied to address this issue?

  • A. Contact AWS Support for a limit increase.
  • B. Use the AWS CLI to get the metrics.
  • C. Analyze the applications and remove the API call.
  • D. Retry the call with exponential backoff.
Discover Answer Hide Answer

C

Question#20

A company has an online order website that uses Amazon DynamoDB to store item inventory. A sample of the inventory object is as follows:

A developer needs to reduce all inventory prices by 100 as long as the resulting price would not be less than 500.
What should the developer do to make this change with the LEAST number of calls to DynamoDB?

  • A. Perform a DynamoDB Query operation with the Id. If the price is >= 600, perform an UpdateItem operation to update the price.
  • B. Perform a DynamoDB UpdateItem operation with a condition expression of "Price >= 600".
  • C. Perform a DynamoDB UpdateItem operation with a condition expression of "ProductCategory IN ({"S": "Sporting Goods"}) and Price 600".
  • D. Perform a DynamoDB UpdateItem operation with a condition expression of "MIN Price = 500".
Discover Answer Hide Answer

A

chevron rightPrevious Nextchevron right