AWS Certified Developer Associate DVA-C01 – Question340

An application is using a custom library to make HTTP calls directly to AWS service endpoints. The application is experiencing transient errors that are causing processes to stop when each error is first encountered. A request has been made to make the application more resilient by adding error retries and exponential backoff.
How should a developer implement the changes with MINIMAL custom code?

A.
Add a Retry-After HTTP header to API requests
B. Use the AWS CLI to configure the retry settings in a named profile
C. Change the custom library to retry on 5xx errors only
D. Use an AWS SDK and set retry-specific configurations

Correct Answer: B

Explanation:

AWS Certified Developer Associate DVA-C01 – Question339

A developer is creating an application to process a large number of requests. Requests must be processed in order, and each
request should be processed only once. How should Amazon SQS be deployed to achieve this?

A.
Configure First in First out (FIFO) delivery in a standard Amazon SQS queue to process requests.
B. Use an SQS FIFO queue to process requests.
C. Use the SetOrder attribute to ensure sequential request processing.
D. Convert the standard queue to a FIFO queue by renaming the queue to use the .fifo suffix.

AWS Certified Developer Associate DVA-C01 – Question338

A developer is planning to use an Amazon API Gateway and AWS Lambda to provide a REST API. The developer will have three distinct environments to manage: development, test, and production.
How should the application be deployed while minimizing the number of resources to manage?

A.
Create a separate API Gateway and separate Lambda function for each environment in the same Region.
B. Assign a Region for each environment and deploy API Gateway and Lambda to each Region.
C. Create one API Gateway with multiple stages with one Lambda function with multiple aliases.
D. Create one API Gateway and one Lambda function, and use a REST parameter to identify the environment.

AWS Certified Developer Associate DVA-C01 – Question337

A developer wants to ensure the Amazon EC2 instances in AWS Elastic Beanstalk execute a certain set of commands before the application is ready to use.
Which Elastic Beanstalk feature will allow the developer to accomplish this?

A.
Rolling update
B. Immutable update
C. User data
D. .ebextensions

AWS Certified Developer Associate DVA-C01 – Question336

A development team is creating a new application designed to run on AWS. While the test and production environments will run on Amazon EC2 instances, developers will each run their own environment on their laptops.
Which of the following is the simplest and MOST secure way to access AWS services from the local development machines?

A.
Use an IAM role to assume a role and execute API calls using the role.
B. Create an IAM user to be shared with the entire development team; provide the development team with the access key.
C. Create an IAM user for each developer on the team; provide each developer with a unique access key.
D. Set up a federation through an Amazon Cognito user pool.

Correct Answer: D

AWS Certified Developer Associate DVA-C01 – Question335

A developer is building a WebSocket API using Amazon API Gateway. The payload sent to this API is JSON that includes an action key. This key can have three different values: create, update, and remove. The developer must integrate with different routes based on the value of the action key of the incoming JSON payload.
How can the developer accomplish this task with the LEAST amount of configuration?

A.
Deploy the WebSocket API to three stages for the respective routes: create, update, and remove
B. Create a new route key and set the name as action
C. Set the value of the route selection expression to action
D. Set the value of the route selection expression to $request.body.action

Correct Answer: B

AWS Certified Developer Associate DVA-C01 – Question334

An application takes longer than expected to process an Amazon SQS message.
What should the developer do to the application so that other instances do not pick up the same message?

A.
Make a ReceiveMessage call to get the same message again from the queue
B. Issue a DeleteMessage call to delete the message from the queue
C. Use SendMessage to pass the message to the dead letter queue
D. Send a ChangeMessageVisibility call to extend VisibilityTimeout

Correct Answer: A

AWS Certified Developer Associate DVA-C01 – Question333

How can a developer use a debugger for AWS Lambda code that is deployed with AWS Serverless Application Model (AWS SAM)?

A.
Download the Lambda code locally and use the AWS CLI to execute it
B. Use the Lambda console to connect the debugger
C. Use AWS SAM to invoke a function locally in debug mode
D. Connect a third-party-compatible integrated development environment (IDE) to the Lambda debugger endpoint

AWS Certified Developer Associate DVA-C01 – Question332

A company is developing a serverless ecommerce web application. The application needs to make coordinated, all-or-nothing changes to multiple items in the company's inventory table in Amazon DynamoDB.
Which solution will meet these requirements?

A.
Enable transactions for the DynamoDB table. Use the BatchWriteItem operation to update the items.
B. Use the TransactWriteItems operation to group the changes. Update the items in the table.
C. Set up a FIFO queue using Amazon SQS. Group the changes in the queue. Update the table based on the grouped changes.
D. Create a transaction table in an Amazon Aurora DB cluster to manage the transactions. Write a backend process to sync the Aurora DB table and the DynamoDB table.

Correct Answer: B

Explanation:

AWS Certified Developer Associate DVA-C01 – Question331

An application running on multiple Amazon EC2 instances pulls messages from a standard Amazon SQS queue. A requirement for the application is that all messages must be encrypted at rest.
Developers are instructed to use methods that allow for centralized key management and minimize possible support requirements whenever possible.
Which of the following solutions supports these requirements?

A.
Encrypt individual messages by using client-side encryption with customer managed keys, then write to the SQS queue.
B. Encrypt individual messages by using SQS Extended Client and the Amazon S3 encryption client.
C. Create an SQS queue, and encrypt the queue by using sewer-side encryption with AWS KMS.
D. Create an SQS queue, and encrypt the queue by using client-side encryption.

Correct Answer: B