00:20:00

AWS Certified Developer Associate Practice Test (DVA-C02)

Use the form below to configure your AWS Certified Developer Associate Practice Test (DVA-C02). The practice test can be configured to only include certain exam objectives and domains. You can choose between 5-100 questions and set a time limit.

Logo for AWS Certified Developer Associate DVA-C02
Questions
Number of questions in the practice test
Free users are limited to 20 questions, upgrade to unlimited
Seconds Per Question
Determines how long you have to finish the practice test
Exam Objectives
Which exam objectives should be included in the practice test

AWS Certified Developer Associate DVA-C02 Information

AWS Certified Developer - Associate showcases knowledge and understanding of core AWS services, uses, and basic AWS architecture best practices, and proficiency in developing, deploying, and debugging cloud-based applications by using AWS. Preparing for and attaining this certification gives certified individuals more confidence and credibility. Organizations with AWS Certified developers have the assurance of having the right talent to give them a competitive advantage and ensure stakeholder and customer satisfaction.

The AWS Certified Developer - Associate (DVA-C02) exam is intended for individuals who perform a developer role. The exam validates a candidate’s ability to demonstrate proficiency in developing, testing, deploying, and debugging AWS Cloud-based applications. The exam also validates a candidate’s ability to complete the following tasks:

  • Develop and optimize applications on AWS.
  • Package and deploy by using continuous integration and continuous delivery (CI/CD) workflows.
  • Secure application code and data.
  • Identify and resolve application issues.
AWS Certified Developer Associate DVA-C02 Logo
  • Free AWS Certified Developer Associate DVA-C02 Practice Test

  • 20 Questions
  • Unlimited time
  • Development with AWS Services
    Security
    Deployment
    Troubleshooting and Optimization
Question 1 of 20

Your company runs an online retail application built from multiple microservices. Customers now report check-out failures. You enable AWS X-Ray and inspect the service map, which shows a spike in faults on the edge between the payment-processing service and the inventory service. What does this spike most likely indicate, and what should be your first troubleshooting action?

  • It probably reflects a transient network glitch after deployment; monitor the system for a day or two before taking action.

  • It means the inventory service is under-provisioned; immediately add more compute and memory to that service.

  • Tracing overhead is slowing requests, so disabling X-Ray should help restore normal checkout performance.

  • The spike shows repeated errors during interactions between the two services; examine their traces and CloudWatch logs to find the root cause.

Question 2 of 20

Your application frequently reads user profile data that can experience sudden spikes in traffic, while profile updates occur only occasionally. To reduce database load and latency you plan to add a cache. You also want to minimize operating costs and ensure profiles are not served stale for long periods. Which caching approach best satisfies these requirements?

  • Employ a lazy-loading caching strategy with an appropriate time-to-live (TTL) to maintain freshness

  • Avoid caching and continue to serve all reads directly from the database

  • Implement write-through caching to keep the cache synchronized with every database update

  • Use a read-through caching layer so the cache automatically fetches data on a miss

Question 3 of 20

When you use the AWS SDK for Python (Boto3) to perform an operation on an Amazon S3 bucket that does not exist, which botocore exception class is actually raised by the SDK (before you inspect the error code in the response)?

  • BucketNotFound

  • ClientError

  • S3BucketMissing

  • NoSuchBucket

Question 4 of 20

A developer is building a new mobile application and needs to implement a feature that allows users to sign up and sign in with their email address and a password. After a successful sign-in, the application must receive a JSON Web Token (JWT) to manage the user's session. Which AWS service should the developer use to meet these specific authentication requirements?

  • Amazon Cognito Identity Pools

  • Amazon Cognito User Pools

  • AWS Identity and Access Management (IAM) Users

  • AWS Security Token Service (STS)

Question 5 of 20

A company is rolling out a new application on AWS that will handle sensitive customer information. The security team mandates that all customer data must be encrypted not only when stored (at rest) but also as it moves between services (in transit). Which of the following solutions should the development team implement to ensure compliance with the security team's mandate?

  • Use Amazon S3 with Server-Side Encryption (SSE) and leverage HTTPS for data in transit.

  • Encrypt sensitive database columns at rest and ensure IAM policies for database access are in place.

  • Apply strict IAM policies to control access to data but rely on the application to handle encryption.

  • Use built-in database encryption at rest and rely on network ACLs for data in transit.

Question 6 of 20

Your team is working on a microservices architecture that necessitates the ability to rigorously validate the environment's configuration data before it is pushed to production to avoid potential disruptions caused by misconfiguration. Which service should they implement to facilitate the pre-deployment validation of configurations and ensure safe deployment?

  • AWS Systems Manager Parameter Store

  • AWS Secrets Manager

  • AWS AppConfig

  • AWS CodeDeploy

Question 7 of 20

A company needs to update its web application running on AWS without disrupting the user experience. Which deployment strategy should they employ to ensure that only a portion of users are directed to the new version initially, thereby allowing for performance and stability monitoring before the new version is fully deployed?

  • All-at-once deployment

  • Blue/green deployment

  • Rolling deployment

  • Canary deployment

Question 8 of 20

Your development team is tasked with optimizing a backend AWS Lambda function for an online sports trivia game. The Lambda function will receive player responses through Amazon API Gateway and needs to process them efficiently during high-traffic events such as live sports matches. Considering the need to adhere to stateless design principles, which method should you employ to temporarily store session-specific data needed within a single game?

  • Store session-specific data in Amazon ElastiCache for Redis.

  • Persist session-specific data in Amazon DynamoDB with short expiry TTL.

  • Write session-specific data to Amazon Elastic File System (EFS) mounted to the Lambda function.

  • Maintain temporary game state using Lambda environment variables.

Question 9 of 20

A developer has configured an Amazon API Gateway to trigger an AWS Lambda function. After a recent deployment, API logs indicate that API Gateway is failing to invoke the function due to a misconfigured integration. The error suggests that while the API Gateway endpoint exists, it cannot get a valid response from the upstream Lambda function it's configured to proxy to. Which HTTP status code is the client most likely receiving?

  • 400 Bad Request

  • 404 Not Found

  • 502 Bad Gateway

  • 500 Internal Server Error

Question 10 of 20

A team wants to automate the deployment of their web service across several stages. The source code, once integrated, must be automatically transferred to a testing stage. Following successful verification by the quality assurance team, an explicit sign-off is required before the changes are delivered to the end users. Which approach within their CI/CD process should the team implement to fulfill this requirement?

  • Incorporate a step for manual approvals following the automated testing within the pipeline

  • Establish a step for manual approvals before initiating any tests

  • Utilize infrastructure as code management services to integrate a manual approval requirement

  • Rely on automated testing to authorize the transition to the user-facing environment

Question 11 of 20

A company is developing a serverless payment API that triggers an AWS Lambda function to process credit-card charges. Because of intermittent network failures, the frontend may automatically retry failed HTTP requests. Which mechanism should the developer add to each API request so that a customer is never charged more than once if a retry occurs?

  • Record the timestamp for each operation and only process requests if subsequent submissions occur after a specific time interval.

  • Generate a unique identifier for each operation, allowing the service to detect and ignore retries of transactions that have already been executed.

  • Track the status codes from previous submissions and use them to determine if the operation should be retried.

  • Integrate a distributed tracing service to handle de-duplication of transaction requests.

Question 12 of 20

A developer has built a web application that retrieves product details from an Amazon DynamoDB table. During promotional events the application experiences spikes in read requests, which could exceed the table's provisioned read-capacity units and throttle requests. The developer wants to add a fully managed caching layer that is purpose-built for DynamoDB, delivers microsecond latency, and requires only minimal application changes. Which AWS service should the developer use?

  • Amazon DynamoDB Accelerator (DAX)

  • Amazon RDS Read Replica

  • AWS DataSync

  • Amazon ElastiCache

Question 13 of 20

Your company is preparing to deploy a web application using Amazon Elastic Container Service (ECS). The application is containerized, and you are responsible for deploying new image updates with minimal downtime. Which service should you use to store and manage your Docker container images to seamlessly integrate with ECS and track the image versions?

  • Amazon Elastic Block Store (EBS)

  • AWS Lambda

  • Amazon Elastic Container Registry (ECR)

  • Amazon Simple Storage Service (S3)

Question 14 of 20

During the development stages of a serverless application, a developer is looking to test the request and response behavior as if the back-end was already implemented. What service feature should the developer use to create this simulated environment to validate the front-end integration?

  • Employ AWS Step Functions to replicate the back-end logic

  • Use AWS CloudFormation to provision mock integration resources

  • Leverage Amazon EventBridge to schedule mock events for the integration

  • Configure Amazon API Gateway mock integrations for simulating the necessary endpoints

Question 15 of 20

A software engineer is tasked with enabling an application, hosted on a virtual server, to interact with a cloud object storage service for uploading and downloading data. The engineer needs to implement a secure method of authentication that obviates the need to hardcode or manually input long-term credentials. What is the most appropriate strategy to achieve this while adhering to security best practices?

  • Manually enter the user credentials for the service at the start of each application session on the virtual server.

  • Assign a role to the virtual server that grants appropriate permissions to interact with the object storage service.

  • Hardcode the service user's access credentials in the source code of the application on the virtual server.

  • Save the service user's access credentials in a text file on the root directory of the virtual server for the application to use.

Question 16 of 20

A developer is building a serverless application using AWS Lambda functions and Amazon API Gateway. To streamline deployment, the developer needs a tool that uses a declarative template to define the application's resources, including functions, APIs, and event source mappings. The tool must also support managing separate configurations for different environments like 'dev' and 'prod'. Which AWS tool is the most appropriate choice?

  • AWS CodeDeploy

  • AWS Serverless Application Model (SAM)

  • AWS Cloud Development Kit (CDK)

  • AWS CloudFormation

Question 17 of 20

A software development team is implementing a set of microservices that will be exposed to their clients through endpoints. They are looking to adopt best practices for testing newly developed features without affecting the live production environment accessed by their customers. What is the most effective method to achieve this within the service that provides the endpoints?

  • Create a new deployment stage with specific configurations for the microservices that are separate from production settings

  • Reuse the production endpoints for testing by applying request filtering based on a custom header to differentiate traffic

  • Generate a clone of the existing production environment and make code changes directly there to validate new features

  • Implement feature toggles in the production codebase to switch between production and development configurations

Question 18 of 20

Which service should be used if a developer needs to ensure that code changes are automatically compiled, tested, and deployed to a staging environment upon committing updates to the version control system?

  • CodeDeploy

  • Simple Storage Service (S3)

  • CodePipeline

  • CodeBuild

Question 19 of 20

A developer needs to update an important backend service used for processing data. This service is critical, and any downtime must be avoided. The developer wants to transition the traffic gradually to observe the new behavior without disrupting the current users. What deployment technique should be applied to achieve this zero-downtime update and facilitate observability and quick rollback if issues arise?

  • Introduce a new version of the service and leverage the progressive traffic shifting feature to incrementally route user requests, monitoring the update's stability before redirecting all traffic.

  • Directly overwrite the current service code with the new update, relying on the underlying system to manage the transition seamlessly.

  • Configure a brand-new endpoint in the managed API service, directing a copy of incoming requests to the updated backend version for testing.

  • Modify the service's environment properties to point to the new version, which will transparently divert the traffic.

Question 20 of 20

A developer needs to ensure that a serverless function, which is responsible for processing incoming messages, will redirect failed executions to a separate storage service for later analysis. Which feature should the developer configure to BEST adhere to this requirement?

  • Configure a dead-letter queue to save messages that the function fails to process for subsequent analysis.

  • Alter the function's retry settings to indefinitely attempt reprocessing the problematic message until successful.

  • Boost the serverless function's available compute resources to prevent message processing failures.

  • Set up an automated re-publishing mechanism through another notification service to keep submitting the message until it is processed without errors.