AWS Certified Developer - Associate Free Sample Questions

20 free sample questions350 in the full practice test Other version: DVA-C02(212)

Try simulator

DVA-C01 Sample Questions

  1. Question 1

    The developer needs to create an application that supports Security Assertion Markup Language (SAML) and Facebook authentication. It must also allow access to AWS services, such as Amazon DynamoDB.
    Which AWS service or feature will meet these requirements with the LEAST amount of additional coding?

    Answer and explanation

    Correct answer: B

    Amazon Cognito identity pools provide temporary AWS credentials that allow authenticated users to access AWS services like DynamoDB. While user pools handle SAML and Facebook authentication, identity pools are required for AWS service access.

  2. Question 2

    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?

    Answer and explanation

    Correct answer: C

    Elastic Beanstalk .ebextensions configuration files allow you to run commands, install packages, and modify settings before your application starts. These configuration files are processed during environment deployment to customize EC2 instances.

  3. Question 3

    A Developer is using AWS CLI, but when running list commands on a large number of resources, it is timing out.
    What can be done to avoid this time-out?

    Answer and explanation

    Correct answer: C

    AWS CLI pagination automatically handles large result sets by breaking them into smaller chunks, preventing timeouts when listing many resources. Use --page-size to control chunk size and --max-items to limit total results returned.

  4. Question 4

    A developer is creating a script to automate the deployment process for a serverless application. The developer wants to use an existing AWS Serverless Application Model (AWS SAM) template for the application.
    What should the developer use for the project? (Choose two.)

    Answer and explanation

    Correct answer: E

    AWS SAM CLI provides sam package and sam deploy commands specifically designed for serverless applications. These commands handle S3 uploads and CloudFormation deployment automatically with SAM template transformations.

  5. Question 5

    An application is using Amazon DynamoDB as its data store, and should be able to read 100 items per second as strongly consistent reads. Each item is 5 KB in size.
    To what value should the table’s provisioned read throughput be set?

    50 read capacity units

    Answer and explanation

    Correct answer: C

    DynamoDB read capacity units are calculated as item size divided by 4KB for strongly consistent reads. For 5KB items (rounded up to 8KB), you need 2 RCUs per item. For 100 items per second: 100 × 2 = 200 read capacity units.

  6. Question 6

    You have an AWS Elastic Beanstalk application environment that is currently coupled with an Amazon RDS database instance. Due to changing requirements, you need to remove the database from the Elastic Beanstalk environment while keeping the application running. The database should remain operational and be managed independently. What is the recommended approach to achieve this?

    Answer and explanation

    Correct answer: A

    The Elastic Beanstalk CLI provides the eb config command to modify environment configuration and decouple RDS instances while preserving both the application and database.

  7. Question 7

    A Developer has created an S3 bucket s3://mycoolapp and has enabled server across logging that points to the folder s3://mycoolapp/logs. The Developer moved 100 KB of Cascading Style Sheets (CSS) documents to the folder s3://mycoolapp/css, and then stopped work. When the developer came back a few days later, the bucket was 50 GB.
    What is the MOST likely cause of this situation?

    Answer and explanation

    Correct answer: C

    S3 Cross-Region Replication automatically copies objects to another bucket, which would cause additional storage costs beyond the expected 100 KB.

  8. Question 8

    A developer is building an application using an Amazon API Gateway REST API backend by an AWS Lambda function that interacts with an Amazon DynamoDB table. During testing, the developer observes high latency when making requests to the API.
    How can the developer evaluate the end-to-end latency and identify performance bottlenecks?

    Answer and explanation

    Correct answer: D

    AWS X-Ray provides distributed tracing capabilities that allow you to track requests across API Gateway, Lambda, and DynamoDB, identifying performance bottlenecks and latency issues throughout the entire request path.

  9. Question 9

    AWS CodeBuild builds code for an application, creates the Docker image, pushes the image to Amazon Elastic Container Registry (Amazon ECR), and tags the image with a unique identifier.
    If the Developers already have AWS CLI configured on their workstations, how can the Docker images be pulled to the workstations?

    Answer and explanation

    Correct answer: D

    The get-login command provides a temporary authentication token that allows Docker to authenticate with ECR and pull images from the registry.

  10. Question 10

    An on-premises application makes repeated calls to store files to Amazon S3. As usage of the application has increased, “LimitExceeded” errors are being logged.
    What should be changed to fix this error?

    Answer and explanation

    Correct answer: C

    Exponential backoff is the AWS recommended best practice for handling rate limiting errors like LimitExceeded, gradually increasing delays between retries to reduce load on S3.

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 562 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon