DVA-C02 practice questions with answers
13 example questions from the AWS Certified Developer - Associate question bank, grouped by exam domain. Pick an answer and check it to see the explanation.
Development with AWS Services
The Development with AWS Services domain covers creating applications using AWS services like Lambda, DynamoDB, and API Gateway. It focuses on understanding the core services, designing scalable applications, and leveraging AWS SDKs.
Task 1.1 Develop code for applications hosted on AWS
You are developing a real-time analytics application that processes a large stream of data from social media interactions. Your application must ingest this streaming data, process messages in an ordered sequence, and then store processed data into a data warehouse for querying. You've decided to use Amazon Kinesis Data Streams for data ingestion and AWS SDK in your application to interact with the Kinesis stream. Which approach using AWS SDK should you employ to ensure that your application processes the incoming streaming data in order and without loss even in a distributed application scenario?
Task 1.2 Develop code for AWS Lambda
You are developing a Lambda function that is critical for your real-time data processing pipeline. In testing, you notice that the first invocation of the function after a period of inactivity exhibits a significantly longer latency due to a cold start. Which of the following strategies can minimize the impact of cold starts on your Lambda function's performance?
Task 1.3 Use data stores in application development
A company that provides streaming video services wants to optimize data storage costs by managing the lifecycle of their user activity logs. They have an Amazon Redshift cluster where they accumulate this data for analysis. Given that the relevance of the data decreases over time, they have decided to define a data lifecycle policy that keeps granular logs for 60 days for immediate queries and aggregate summary data for up to 2 years for historical trends. After 60 days, the logs should be removed from Amazon Redshift and stored in a more cost-effective service. Which AWS service should they use to manage this lifecycle transition seamlessly while still being able to query the data using their currently existing SQL-based tools?
Security
The Security domain emphasizes securing AWS applications. It covers IAM roles, policies, encryption, secure application endpoints, and managing sensitive data. Candidates learn to implement best practices for robust security in AWS environments.
Task 2.1 Implement authentication and/or authorization for applications and AWS services
A developer is building a mobile application that uses Amazon Cognito for user authentication. The application allows users to access certain AWS services directly from their devices. The developer wants to ensure that authenticated users have the necessary permissions to call AWS services directly while maintaining the principle of least privilege. Which of the following options should the developer use to define permissions for these users?
Task 2.2 Implement encryption by using AWS services
A company that focuses on medical data analysis is planning to maintain regulatory compliance by replicating their S3 buckets across AWS regions. They are required by law to ensure that all data, both at rest and in transit, is encrypted. They have set up an S3 bucket in the US East (N. Virginia) region and want to replicate its contents to another S3 bucket in the EU (Ireland) region. Given that they use different AWS accounts for each region to segregate their workloads, what is the correct method for setting up S3 Cross-Region Replication (CRR) with encryption between the two accounts ensuring compliance?
Task 2.3 Manage sensitive data in application code
Your development team is working on an application that stores sensitive user data. You want to ensure that any sensitive data stored in your AWS environment is encrypted at rest and you've decided to use AWS Key Management Service (KMS) to manage the encryption keys. Your application will store data in Amazon RDS and Amazon S3, and you want to rotate the encryption keys automatically on a regular basis without service interruption. Which of the following options enables you to achieve this while ensuring the security of your encryption keys?
Deployment
The Deployment domain focuses on deploying and managing AWS applications. It includes topics like CI/CD pipelines, Elastic Beanstalk, CloudFormation, CodeDeploy, and automating deployment processes to ensure efficient, scalable application delivery.
Task 3.1 Prepare application artifacts to be deployed to AWS
A development team is preparing to deploy a containerized microservices-based application on AWS. To ensure a simplified scaling and serverless experience, the team has decided to use AWS Fargate for deploying their Docker containers. One of the microservices, which performs complex image processing tasks, requires substantially higher compute and memory resources than the other services. How should the developer specify the appropriate amount of CPU and memory resources for this service when creating a task definition in AWS Fargate?
Task 3.2 Test applications in development environments
As a developer working on an application, you've been using AWS SAM templates to define your serverless architecture, and your team uses AWS CodeBuild for continuous integration. Your application has successfully reached the staging phase in your development lifecycle, and you are tasked with deploying an update to the application stack in this existing environment. The update has already been tested locally and is now stored in a feature branch in your repository. What is the best approach to use AWS CodeBuild to deploy the AWS SAM template update to the different staging environment?
Task 3.3 Automate deployment testing
You are an AWS Certified Developer working on a web application that leverages Amazon RDS for its database layer. Your team has separate environments for development, testing, and production. To ensure consistent deployments and automated testing, you have scripted the deployment process using AWS CloudFormation templates. Recently, a new requirement has been added to maintain database integrity and data isolation between environments. Which of the following approaches BEST satisfies this requirement while allowing for automated testing?
Task 3.4 Deploy code by using AWS CI/CD services
A company has developed a microservices architecture where each service is containerized and needs to be deployed on Amazon Elastic Kubernetes Service (Amazon EKS). The team wants to use AWS native CI/CD services to automate the deployment process, ensuring that code changes are systematically deployed to a development environment before being promoted to production. The development team is looking to implement an orchestrated workflow that would allow them to deploy their containerized applications to multiple environments with minimal intervention. Which AWS service should they use to best manage their CI/CD pipeline with orchestrated workflows for deploying code to Amazon EKS?
Troubleshooting and Optimization
The Troubleshooting and Optimization domain covers diagnosing and resolving issues in AWS applications. It includes performance tuning, monitoring with CloudWatch, debugging, error handling, and cost optimization to enhance efficiency and reliability.
Task 4.1 Assist in a root cause analysis
A developer is troubleshooting a deployment failure in an AWS Step Functions state machine that orchestrates multiple AWS Lambda functions. The state machine execution fails, and the developer needs to determine the cause of this failure. When examining the output logs, the developer notices that one of the Lambda functions that is being called from a Task state fails intermittently. While the Lambda function execution logs in Amazon CloudWatch Logs do not show any error messages, the CloudWatch metrics for the function indicate sporadic spikes in throttling errors. What does this indicate as the most probable cause of the deployment failure?
Task 4.2 Instrument code for observability
A development team is working on an e-commerce application hosted on AWS. The application includes a microservices architecture with each service interacting with various AWS resources. The team wants to implement a tracing solution that allows them to analyze and debug the performance of their application, specifically focusing on individual user requests as they traverse through the services and segment documents based on the components of the application that processed them. Which AWS service or tool should the team use to achieve this level of granularity in tracing?
Task 4.3 Optimize applications by using AWS services and features
Your application is hosted on AWS and serves international customers with content that varies based on the Accept-Language request header. You want to leverage Amazon CloudFront to cache different versions of the content efficiently to optimize response times for users worldwide. To ensure that CloudFront caches the content based on the language requested by the user browsers, which configuration should you implement?
3787 questions covering every domain and task, full-length exams, explanations for every answer and a pass probability indicator.
Open the simulator →