Exams > Amazon > AWS Certified Developer Associate
AWS Certified Developer Associate
Page 18 out of 39 pages Questions 171-180 out of 390 questions
Question#171

A company has three different environments: Development. QA, and Production. The company wants to deploy its code first in the Development environment, then QA, and then Production.

Which AWS service can be used to meet this requirement?

  • A. Use AWS CodeCommit to create multiple repositories to deploy the application.
  • B. Use AWS CodeBuild to create, configure, and deploy multiple build application projects.
  • C. Use AWS Data Pipeline to create multiple data pipeline provisions to deploy the application.
  • D. Use AWS CodeDeploy to create multiple deployment groups.
Discover Answer Hide Answer

A

Question#172

A developer is creating a template that uses AWS CloudFormation to deploy an application. The application is serverless and uses Amazon API Gateway. Amazon DynamoDB, and AWS Lambda.

Which AWS service or tool should the developer use to define serverless resources in YAML?

  • A. CloudFormation serverless intrinsic functions
  • B. AWS Elastic Beanstalk
  • C. AWS Serverless Application Model (AWS SAM)
  • D. AWS Cloud Development Kit (AWS CDK)
Discover Answer Hide Answer

C

Question#173

An application adds a processing date to each transaction that it receives. The application writes each transaction to an Amazon DynamoDB table by using the PutItem operation. Each transaction has a unique ID (transactionID). Sometimes the application receives transactions more than once.

A developer notices that duplicate transactions in DynamoDB have the latest processing date instead of the date when the transaction was first received. Duplicate records happen infrequently, and most of the transactions are unique.

What is the MOST cost-effective solution that the developer can implement to ensure that PutItem does not update an existing record?

  • A. Call the GetItem operation first to confirm that the record does not exist. Then call PutItem.
  • B. Enable the TTL attribute on the DynamoDB table.
  • C. Implement a conditional put by using the attribute_exists(transactionID) condition expression.
  • D. Implement a conditional put by using the attribute_not_exists(transactionID) condition expression.
Discover Answer Hide Answer

B

Question#174

A developer is building a static, client-side rendered website that is powered by ReactJS. The code has no server-side generated components and does not need to run any programming languages on the server. However, the code serves static HTML, CSS, and JavaScript to the client on each request. The developer’s solution to host the website must maximize performance and cost-effectiveness.

Which combination of AWS services or resources should the developer use to meet these requirements?

  • A. Application Load Balancer and Amazon EC2
  • B. Amazon API Gateway and AWS Lambda
  • C. Amazon CloudFront and Amazon S3
  • D. Amazon CloudFront and AWS Elastic Beanstalk
Discover Answer Hide Answer

C

Question#175

A developer has written an application that runs on Amazon EC2 instances. The developer is adding functionality for the application to write objects to an Amazon S3 bucket.

Which policy must the developer modify to allow the instances to write these objects?

  • A. The IAM policy that is attached to the EC2 instance profile role.
  • B. The session policy that is applied to the EC2 instance role session.
  • C. The AWS Key Management Service (AWS KMS) key policy that is attached to the EC2 instance profile role.
  • D. The Amazon VPC endpoint policy.
Discover Answer Hide Answer

A

Question#176

A developer uses the Amazon S3 ListObjectsV2 API call to retrieve and list object keys from an S3 bucket. The list can contain thousands of keys, and the retrieval often returns more than the max-keys maximum value. The code must handle any number of returned results.

How can the developer modify the code to handle any number of returns?

  • A. Set max-keys in the ListObjectsV2 API call to the expected number of returned objects.
  • B. Set max-keys in the ListObjectsV2 API call to -1.
  • C. Run an S3 Select query to retrieve and list object keys from the bucket.
  • D. When applicable, repeat the ListObjectsV2 API call by using NextContinuationToken.
Discover Answer Hide Answer

C

Question#177

A developer is writing an application that runs on Amazon EC2 instances in an Auto Scaling group The application data is stored in an Amazon DynamoDB table and records are constantly updated by all instances. An instance sometimes retrieves old data. The developer wants to correct this by making sure the reads are strongly consistent.

How can the developer accomplish this?

  • A. Set ConsistentRead to true when calling GetItem.
  • B. Create a new DynamoDB Accelerator (DAX) table
  • C. Set Consistency to strong when calling UpdateTable.
  • D. Use the GetShardIterator command.
Discover Answer Hide Answer

A

Question#178

A development team sets up a project's file directory structure in AWS CodeCommit. The team plans to use AWS CodeBuild and AWS CodeDeploy. The team creates the necessary configuration files for CodeBuild and CodeDeploy. The team wants to name and place these files according to service defaults.

Where should the team place the CodeBuild and CodeDeploy files?

  • A. A directory named "aws" under the route source directory
  • B. A directory named "deploy" under the root source directory
  • C. A directory named "scripts" under the root source directory
  • D. The root of the source directory
Discover Answer Hide Answer

C

Question#179

A software company must ensure that documents that are uploaded by users are securely stored in Amazon S3. The documents must be encrypted at rest in Amazon S3. The company wants to avoid client-side encryption and does not want to manage the security infrastructure. In addition, the company wants control over the keys that are used for encryption at rest.

Which solution for encryption keys should a developer use to meet these requirements?

  • A. Amazon S3 managed keys
  • B. Application-level encryption with customer-provided encryption keys that are stored in an on-premises hardware security module (HSM)
  • C. AWS Key Management Service (AWS KMS) customer managed keys
  • D. IAM access keys
Discover Answer Hide Answer

B

Question#180

In a move toward using microservices, a company's management team has asked all development teams to build their services so that API requests depend only on that service's data store. One team is building a Payments service which has its own database; the service needs data that originates in the Accounts database. Both are using Amazon DynamoDB.

What approach will result in the simplest, decoupled, and reliable method to get near-real time updates from the Accounts database?

  • A. Use Amazon Glue to perform frequent ETL updates from the Accounts database to the Payments database.
  • B. Use Amazon ElastiCache in Payments, with the cache updated by triggers in the Accounts database.
  • C. Use Amazon Kinesis Data Firehose to deliver all changes from the Accounts database to the Payments database.
  • D. Use Amazon DynamoDB Streams to deliver all changes from the Accounts database to the Payments database.
Discover Answer Hide Answer

D

chevron rightPrevious Nextchevron right