Exams > Amazon > AWS Certified Developer Associate
AWS Certified Developer Associate
Page 9 out of 39 pages Questions 81-90 out of 390 questions
Question#81

A developer wants to use AWS CodeDeploy to deploy an Amazon Elastic Container Service (Amazon ECS) service.

What are the MINIMUM properties required in the 'resources' section of the AppSpec file for CodeDeploy to deploy the ECS service successfully?

  • A. name, alias currentversion, and targetversion
  • B. TaskDefinition, ContainerName, and PlatformVersion
  • C. TaskDefimtion, ContainerName, and ContainerPort
  • D. name, currentversion, NetworkConfiguration, and PlatformVersion
Discover Answer Hide Answer

A

Question#82

A company has deployed a single-page application on AWS. The application stores assets in an Amazon S3 bucket. The application has an Amazon CloudFront distribution that is configured with the S3 bucket as the origin. Amazon API Gateway APIs access AWS Lambda functions that store information in an Amazon DynamoDB table. The application ingests a payload that includes 20 fields of sensitive data.

Which combination of steps should a developer take to protect the sensitive data through its entire lifecycle in AWS? (Choose two.)

  • A. Create a [email protected] function to encrypt data when CloudFront processes a client request. Configure the distribution to invoke the [email protected] function when the origin request event occurs.
  • B. Generate an AWS Key Management Service (AWS KMS) customer managed key that [email protected] can use.
  • C. Create an SSL/TLS certificate in AWS Certificate Manager (ACM). Associate the certificate with the Network Load Balancer.
  • D. Set up a Network Load Balancer for API Gateway private integrations.
  • E. Store the data in the S3 bucket by using server-side encryption with Amazon S3 managed encryption keys (SSE-S3). Transfer the encrypted data from the S3 bucket to the DynamoDB table.
Discover Answer Hide Answer

BD

Question#83

A developer is writing an application that stores data in an Amazon DynamoDB table by using the Putltem API operation. The table has a partition key of streamID and has a sort key of seqID. The developer needs to make sure that the Putltem invocation does not overwrite the existing partition key and sort key.

Which condition expression will maintain the uniqueness of the partition key and the sort key?

  • A.
  • B.
  • C.
  • D.
Discover Answer Hide Answer

C

Question#84

A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table.

The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table.

What is the MOST likely cause of this issue?

  • A. The Lambda function's concurrency limit has been exceeded.
  • B. The DynamoDB table requires a global secondary index (GSI) to support writes.
  • C. The Lambda function does not have IAM permissions to write to DynamoDB.
  • D. The DynamoDB table is not running in the same Availability Zone as the Lambda function.
Discover Answer Hide Answer

C

Question#85

A development team wants to build a continuous integration/continuous delivery (CI/CD) pipeline. The team is using AWS CodePipeline to automate the code build and deployment. The team wants to store the program code to prepare for the CI/CD pipeline.

Which AWS service should the team use to store the program code?

  • A. AWS CodeDeploy
  • B. AWS CodeArtifact
  • C. AWS CodeCommit
  • D. Amazon CodeGuru
Discover Answer Hide Answer

B

Question#86

A developer supports an application that accesses data in an Amazon DynamoDB table. One of the item attributes is expiration Date in the timestamp format. The application uses this attribute to find items, archive them, and remove them from the table based on the timestamp value.

The application will be decommissioned soon, and the developer must find another way to implement this functionality. The developer needs a solution that will require the least amount of code to write.

Which solution will meet these requirements?

  • A. Enable TTL on the expirationDate attribute in the table. Create a DynamoDB stream. Create an AWS Lambda function to process the deleted items. Create a DynamoDB trigger for the Lambda function.
  • B. Create two AWS Lambda functions: one to delete the items and one to process the items. Create a DynamoDB stream. Use the DeleteItem API operation to delete the items based on the expirationDate attribute. Use the GetRecords API operation to get the items from the DynamoDB stream and process them.
  • C. Create two AWS Lambda functions: one to delete the items and one to process the items. Create an Amazon EventBridge (Amazon CloudWatch Events) scheduled rule to invoke the Lambda functions. Use the DeleteItem API operation to delete the items based on the expirationDate attribute. Use the GetRecords API operation to get the items from the DynamoDB table and process them.
  • D. Enable TTL on the expirationDate attribute in the table. Specify an Amazon Simple Queue Service (Amazon SQS) dead-letter queue as the target to delete the items. Create an AWS Lambda function to process the items.
Discover Answer Hide Answer

A

Question#87

A company has developed a new serverless application using AWS Lambda functions that will be deployed using the AWS Serverless Application Model (AWS SAM) CLI.

Which step should the developer complete prior to deploying the application?

  • A. Compress the application to a .zip file and upload it into AWS Lambda.
  • B. Test the new AWS Lambda function by first tracing it in AWS X-Ray.
  • C. Bundle the serverless application using a SAM package.
  • D. Create the application environment using the eb create my-env command.
Discover Answer Hide Answer

C

Question#88

A developer is working on an ecommerce website. The developer wants to review server logs without logging in to each of the application servers individually. The website runs on multiple Amazon EC2 instances, is written in Python, and needs to be highly available.

How can the developer update the application to meet these requirements with MINIMUM changes?

  • A. Rewrite the application to be cloud native and to run on AWS Lambda, where the logs can be reviewed in Amazon CloudWatch.
  • B. Set up centralized logging by using Amazon OpenSearch Service (Amazon Elasticsearch Service), Logstash, and OpenSearch Dashboards (Kibana).
  • C. Scale down the application to one larger EC2 instance where only one instance is recording logs.
  • D. Install the unified Amazon CloudWatch agent on the EC2 instances. Configure the agent to push the application logs to CloudWatch.
Discover Answer Hide Answer

B

Question#89

A company needs an event-management platform to accept registrations for an upcoming event. The platform must perform a single invocation of an existing AWS Lambda function 10 minutes after a user completes a new account registration.

Which solution will meet these requirements?

  • A. Add an item to an Amazon DynamoDB table. Set the item TTL to 10 minutes. Invoke the Lambda function when the TTL expires.
  • B. Create an ongoing Amazon EventBridge (Amazon CloudWatch Events) rule with a rate expression of 600 seconds. Create a rule/target to invoke the Lambda function.
  • C. Send a message to an Amazon Simple Queue Service (Amazon SQS) delay queue. Set the queue to 600 seconds. Configure the Lambda function with the queue as an event source.
  • D. Put a record in Amazon Kinesis Data Streams. Configure the Lambda function to use the data stream as an event source. Define the shard iterator AT_TIMESTAMP setting to 10 minutes.
Discover Answer Hide Answer

B

Question#90

How would a developer notify users when a new item is written to a DynamoDB table without affecting the provisioned throughput?

  • A. Set up a DynamoDB stream to trigger a Lambda function that sends an SNS notification to users.
  • B. Schedule an Amazon CloudWatch event to regularly trigger a Lambda function that scans the DynamoDB table.
  • C. Run a polling application that queries the DynamoDB table at one-second intervals and send SNS notification to users.
  • D. Embed a Lambda notification function in DynamoDB and configure DynamoDB to trigger the embedded Lambda function when changes are made.
Discover Answer Hide Answer

A

chevron rightPrevious Nextchevron right