Amazon

AWS Certified Developer Associate practice test

Practice with 15 free Testara sample questions, or choose paid access to the full 428-question bank.

Provider
Amazon
Question bank
428
Free sample
15 questions
Publisher
Testara

About this practice material

This page covers Testara's practice question bank for AWS Certified Developer Associate, a certification listed under Amazon. Questions use original, exam-style scenarios and are not questions from the official certification exam.

Testara is an independent practice platform and is not affiliated with, endorsed by, or authorized by Amazon. The certification credential is issued by Amazon, not Testara. Certification and provider names belong to their respective owners.

Start practicing

The guest demo does not save an attempt. Sign in before buying access.

Try 15 questions free

Available without signing in

Free sample questions

These 15 questions and their explanations are server-rendered so you can inspect the material before opening the interactive demo.

  1. Question 1 · 1

    A gaming website gives users the ability to trade game items with each other on the platform. The platform requires both users' records to be updated and persisted in one transaction. If any update fails, the transaction must roll back. Which AWS solution can provide the transactional capability that is required for this feature?

    Choose one answer.

    • Amazon DynamoDB with operations made with the Consistent Read parameter set to true
    • Amazon ElastiCache for Memcached with operations made within a transaction block
    • Amazon DynamoDB with reads and writes made by using Transact* operations
    • Amazon Aurora MySQL with operations made within a transaction block
    • Amazon Athena with operations made within a transaction block
  2. Question 2 · 1

    A company hosts a three-tier web application on AWS behind an Amazon CloudFront distribution. A developer wants a dashboard to monitor error rates and anomalies of the CloudFront distribution with the shortest possible refresh interval. Which combination of slops should the developer take to meet these requirements? (Choose two.)

    Choose all answers that apply.

    • Activate real-time logs on the CloudFront distribution. Create a stream in Amazon Kinesis Data Streams.
    • Export the CloudFront logs to an Amazon S3 bucket. Detect anomalies and error rates with Amazon QuickSight.
    • Configure Amazon Kinesis Data Streams to deliver logs to Amazon OpenSearch Service (Amazon Elasticsearch Service). Create a dashboard in OpenSearch Dashboards (Kibana).
    • Create Amazon CloudWatch alarms based on expected values of selected CloudWatch metrics to detect anomalies and errors.
    • Design an Amazon CloudWatch dashboard of the selected CloudFront distribution metrics.
  3. Question 3 · 1

    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?

    Choose one answer.

    Question illustration 1
    • Perform a DynamoDB Query operation with the Id. If the price is >= 600, perform an UpdateItem operation to update the price.
    • Perform a DynamoDB UpdateItem operation with a condition expression of "Price >= 600".
    • Perform a DynamoDB UpdateItem operation with a condition expression of "ProductCategory IN ({"S": "Sporting Goods"}) and Price 600".
    • Perform a DynamoDB UpdateItem operation with a condition expression of "MIN Price = 500".
  4. Question 4 · 1

    A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream. The company recently observed slow processing of the records. A developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal. Which actions should the developer take to increase the processing speed? (Choose two.)

    Choose all answers that apply.

    • Increase the number of shards of the Kinesis data stream.
    • Decrease the timeout of the Lambda function.
    • Increase the memory that is allocated to the Lambda function.
    • Decrease the number of shards of the Kinesis data stream.
    • Increase the timeout of the Lambda function.
  5. Question 5 · 1

    A developer is making changes to a custom application that uses AWS Elastic Beanstalk. Which solutions will update the Elastic Beanstalk environment with the new application version after the developer completes the changes? (Choose two.)

    Choose all answers that apply.

    • Package the application code into a .zip file. Use the AWS Management Console to upload the zip file and deploy the packaged application.
    • Package the application code into a .tar file. Use the AWS Management Console to create a new application version from the .tar file. Update the environment by using the AWS CLI.
    • Package the application code into a .tar file. Use the AWS Management Console to upload the .tar file and deploy the packaged application.
    • Package the application code into a .zip file. Use the AWS CLI to create a new application version from the .zip file and to update the environment.
    • Package the application code into a .zip file. Use the AWS Management Console to create a new application version from the .zip file. Rebuild the environment by using the AWS CLI.
  6. Question 6 · 1

    A company has an application where reading objects from Amazon S3 is based on the type of user. The user types are registered user and guest user. The company has 25,000 users and is growing. Information is pulled from an S3 bucket depending on the user type. Which approaches are recommended to provide access to both user types? (Choose two.)

    Choose all answers that apply.

    • Provide a different access key and secret access key in the application code for registered users and guest users to provide read access to the objects.
    • Use S3 bucket policies to restrict read access to specific IAM users.
    • Use Amazon Cognito to provide access using authenticated and unauthenticated roles.
    • Create a new IAM user for each user and grant read access.
    • Use the AWS IAM service and let the application assume the different roles using the AWS Security Token Service (AWS STS) AssumeRole action depending on the type of user and provide read access to Amazon S3 using the assumed role.
  7. Question 7 · 1

    A developer is writing an application to analyze the traffic to a fleet of Amazon EC2 instances. The EC2 instances run behind a public Application Load Balancer (ALB). An HTTP server runs on each of the EC2 instances, logging all requests to a log file. The developer wants to capture the client public IP addresses. The developer analyzes the log files and notices only the IP address of the ALB. What must the developer do to capture the client public IP addresses in the log file?

    Choose one answer.

    • Add a Host header to the HTTP server log configuration file.
    • Install the Amazon CloudWatch Logs agent on each EC2 instance. Configure the agent to write to the log file.
    • Install the AWS X-Ray daemon on each EC2 instance. Configure the daemon to write to the log file.
    • Add an X-Forwarded-For header to the HTTP server log configuration file.
  8. Question 8 · 1

    A developer is writing a new AWS Serverless Application Model (AWS SAM) template with a new AWS Lambda function. The Lambda function runs complex code. The developer wants to test the Lambda function with more CPU power. What should the developer do to meet this requirement?

    Choose one answer.

    • Increase the runtime engine version.
    • Increase the timeout.
    • Increase the number of Lambda layers.
    • Increase the memory.
  9. Question 9 · 1

    A developer uses a single AWS CloudFormation template to configure the test environment and the production environment for an application. The developer handles environment-specific requirements in the CloudFormation template. The developer decides to update the Amazon EC2 Auto Scaling launch template with new Amazon Machine Images (AMIs) for each environment. The CloudFormation update for the new AMIs is successful in the test environment, but the update fails in the production environment. What are the possible causes of the CloudFormation update failure in the production environment? (Choose two.)

    Choose all answers that apply.

    • The new AMIs do not fulfill the specified conditions in the CloudFormation template.
    • The service quota for the number of EC2 vCPUs in the AWS Region has been exceeded.
    • The security group that is specified in the CloudFormation template does not exist.
    • CloudFormation does not recognize the template change as an update.
    • CloudFormation does not have sufficient IAM permissions to make the changes.
  10. Question 10 · 1

    A developer is creating a serverless web application and maintains different branches of code. The developer wants to avoid updating the Amazon API Gateway target endpoint each time a new code push is performed. What solution would allow the developer to perform a code push efficiently, without the need to update the API Gateway?

    Choose one answer.

    • Associate different AWS Lambda functions to an API Gateway target endpoint.
    • Create different stages in API Gateway. then associate API Gateway with AWS Lambda.
    • Create aliases and versions in AWS Lambda.
    • Tag the AWS Lambda functions with different names.
  11. Question 11 · 1

    A developer needs to deploy an application running on AWS Fargate using Amazon ECS. The application has environment variables that must be passed to a container for the application to initialize. How should the environment variables be passed to the container?

    Choose one answer.

    • Define an array that includes the environment variables under the environment parameter within the service definition.
    • Define an array that includes the environment variables under the environment parameter within the task definition.
    • Define an array that includes the environment variables under the entryPoint parameter within the task definition.
    • Define an array that includes the environment variables under the entryPoint parameter within the service definition.
  12. Question 12 · 1

    A developer must extend an existing application that is based on the AWS Serverless Application Model (AWS SAM). The developer has used the AWS SAM CLI to create the project. The project contains different AWS Lambda functions. Which combination of commands must the developer use to redeploy the AWS SAM application? (Choose two.)

    Choose all answers that apply.

    • sam init
    • sam validate
    • sam build
    • sam deploy
    • sam publish
  13. Question 13 · 1

    A developer creates a customer managed key for multiple AWS users to encrypt data in Amazon S3. The developer configures Amazon Simple Notification Service (Amazon SNS) to publish a message if key deletion is scheduled. The developer needs to preserve any SNS messages that cannot be delivered so that those messages can be reprocessed. Which AWS service or feature should the developer use to meet this requirement?

    Choose one answer.

    • Amazon Simple Email Service (Amazon SES)
    • AWS Lambda
    • Amazon Simple Queue Service (Amazon SQS)
    • Amazon CloudWatch alarm
  14. Question 14 · 1

    A developer manages an application that interacts with Amazon RDS. After observing slow performance with read queries, the developer implements Amazon ElastiCache to update the cache immediately following the primary database update. What will be the result of this approach to caching?

    Choose one answer.

    • Caching will increase the load on the database instance because the cache is updated for every database update.
    • Caching will slow performance of the read queries because the cache is updated when the cache cannot find the requested data.
    • The cache will become large and expensive because the infrequently requested data is also written to the cache.
    • Overhead will be added to the initial response time because the cache is updated only after a cache miss.
  15. Question 15 · 1

    A developer has a stateful web server on-premises that is being migrated to AWS. The developer must have greater elasticity in the new design. How should the developer re-factor the application to make it more elastic? (Choose two.)

    Choose all answers that apply.

    • Use pessimistic concurrency on Amazon DynamoDB.
    • Use Amazon CloudFront with an Auto Scaling group.
    • Use Amazon CloudFront with an AWS Web Application Firewall.
    • Store session state data in an Amazon DynamoDB table.
    • Use an ELB with an Auto Scaling group.

Each purchase applies to this certification. Prices are one-time payments, not monthly subscriptions.

Starter

$29 USD one time

Full access to one certification's question bank in standard practice mode for 60 days.

  • Full question bank for one certification
  • 60 days of access
  • Standard practice mode
  • Question notes and community discussions
  • Attempt scores and answer review

Professional

$49 USD one time

Full access to one certification's question bank, custom test controls and advanced analytics for 60 days.

  • Custom test builder
  • Timers and question selection
  • Randomized question and answer order
  • Advanced performance and weak-question analytics
  • Priority customer support
Try 15 questions free