Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#21 (Accuracy: 100% / 3 votes)
A developer is creating an AWS CloudFormation template to deploy Amazon EC2 instances across multiple AWS accounts. The developer must choose the EC2 instances from a list of approved instance types.

How can the developer incorporate the list of approved instance types in the CloudFormation template?
  • A. Create a separate CloudFormation template for each EC2 instance type in the list.
  • B. In the Resources section of the CloudFormation template, create resources for each EC2 instance type in the list.
  • C. In the CloudFormation template, create a separate parameter for each EC2 instance type in the list.
  • D. In the CloudFormation template, create a parameter with the list of EC2 instance types as Allowed Values.
#22 (Accuracy: 100% / 4 votes)
An AWS Lambda function requires read access to an Amazon S3 bucket and requires read/write access to an Amazon DynamoDB table. The correct IAM policy already exists.

What is the MOST secure way to grant the Lambda function access to the S3 bucket and the DynamoDB table?
  • A. Attach the existing IAM policy to the Lambda function.
  • B. Create an IAM role for the Lambda function. Attach the existing IAM policy to the role. Attach the role to the Lambda function.
  • C. Create an IAM user with programmatic access. Attach the existing IAM policy to the user. Add the user access key ID and secret access key as environment variables in the Lambda function.
  • D. Add the AWS account root user access key ID and secret access key as encrypted environment variables in the Lambda function.
#23 (Accuracy: 100% / 4 votes)
A developer has created a Node.js web application on a local development machine. The developer wants to use AWS technology to host the website. The developer needs a solution that requires the least possible operational overhead and no code changes.

Which AWS service should the developer use to meet these requirements?
  • A. AWS Elastic Beanstalk
  • B. Amazon EC2
  • C. AWS Lambda
  • D. Amazon Elastic Kubernetes Service (Amazon EKS)
#24 (Accuracy: 100% / 3 votes)
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 SOS. 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.
#25 (Accuracy: 100% / 4 votes)
A company is using AWS CodePipeline to deliver one of its applications. The delivery pipeline is triggered by changes to the main branch of an AWS CodeCommit repository and uses AWS CodeBuild to implement the test and build stages of the process and AWS CodeDeploy to deploy the application.

The pipeline has been operating successfully for several months and there have been no modifications.
Following a recent change to the application's source code, AWS CodeDeploy has not deployed the updated application as expected.

What are the possible causes? (Choose two.)
  • A. The change was not made in the main branch of the AWS CodeCommit repository.
  • B. One of the earlier stages in the pipeline failed and the pipeline has terminated.
  • C. One of the Amazon EC2 instances in the company's AWS CodePipeline cluster is inactive.
  • D. The AWS CodePipeline is incorrectly configured and is not invoking AWS CodeDeploy.
  • E. AWS CodePipeline does not have permissions to access AWS CodeCommit.
#26 (Accuracy: 100% / 4 votes)
A company needs to develop a proof of concept for a web service application. The application will show the weather forecast for one of the company's office locations. The application will provide a REST endpoint that clients can call. Where possible, the application should use caching features provided by AWS to limit the number of requests to the backend service. The application backend will receive a small amount of traffic only during testing.

Which approach should the developer take to provide the REST endpoint MOST cost-effectively?
  • A. Create a container image. Deploy the container image by using Amazon Elastic Kubernetes Service (Amazon EKS). Expose the functionality by using Amazon API Gateway.
  • B. Create an AWS Lambda function by using the AWS Serverless Application Model (AWS SAM). Expose the Lambda functionality by using Amazon API Gateway.
  • C. Create a container image. Deploy the container image by using Amazon Elastic Container Service (Amazon ECS). Expose the functionality by using Amazon API Gateway.
  • D. Create a microservices application in a preferred programming language. Deploy the application to AWS Elastic Beanstalk. Expose the AWS Lambda functionality by using an Application Load Balancer.
#27 (Accuracy: 100% / 4 votes)
A company is preparing to migrate an application to the company’s first AWS environment. Before this migration, a developer is creating a proof-of-concept application to validate a model for building and deploying container-based applications on AWS.

Which combination of steps should the developer take to deploy the containerized proof-of-concept application with the LEAST operational effort? (Choose two.)
  • A. Package the application into a .zip file by using a command line tool. Upload the package to Amazon S3.
  • B. Package the application into a container image by using the Docker CLI. Upload the image to Amazon Elastic Container Registry (Amazon ECR).
  • C. Deploy the application to an Amazon EC2 instance by using AWS CodeDeploy.
  • D. Deploy the application to Amazon Elastic Kubernetes Service (Amazon EKS) on AWS Fargate.
  • E. Deploy the application to Amazon Elastic Container Service (Amazon ECS) on AWS Fargate.
#28 (Accuracy: 100% / 3 votes)
An application on AWS is using third-party APIs. A developer needs to monitor API errors in the code. The developer needs to receive notifications if failures reach a set threshold value.

How can the developer meet these requirements?
  • A. Publish a custom metric to Amazon CloudWatch. Create a metric alarm. Use Amazon Simple Email Service (Amazon SES) for notification.
  • B. Use an Amazon CloudWatch API error metric. Use Amazon Simple Notification Service (Amazon SNS) for notification.
  • C. Use an Amazon CloudWatch API error metric. Use Amazon Simple Email Service (Amazon SES) for notification.
  • D. Publish a custom metric to Amazon CloudWatch. Create a metric alarm. Use Amazon Simple Notification Service (Amazon SNS) for notification.
#29 (Accuracy: 100% / 4 votes)
An application receives authenticated user data in the form of a JSON Web Token (JWT) from an Amazon Cognito user pool. A developer is setting up an Amazon API Gateway API to handle requests from the application and is using the token to verify the user’s identity.

Which of the following must the developer validate before the user data can be trusted?
  • A. The token’s nonce
  • B. The key ID in the token’s header
  • C. The token's signature
  • D. The token's issuer claim
#30 (Accuracy: 90% / 6 votes)
A developer is creating an application. New users of the application must be able to create an account and register by using their own social media accounts.

Which AWS service or resource should the developer use to meet these requirements?
  • A. IAM role
  • B. Amazon Cognito identity pools
  • C. Amazon Cognito user pools
  • D. AWS Directory Service