Free AWS Certified Developer - Associate DVA-C02 Exam Braindumps (page: 18)

Page 18 of 116

A developer is configuring an application's deployment environment in AWS
CodePipeline. The application code is stored in a GitHub repository. The developer wants to ensure that the repository package's unit tests run in the new deployment environment. The developer has already set the pipeline's source provider to GitHub and has specified the repository and branch to use in the deployment.
Which combination of steps should the developer take next to meet these requirements with the LEAST overhead? (Choose two.)

  1. Create an AWS CodeCommit project. Add the repository package's build and test commands to the project's buildspec.
  2. Create an AWS CodeBuild project. Add the repository package's build and test commands to the project's buildspec.
  3. Create an AWS CodeDeploy project. Add the repository package's build and test commands to the project's buildspec.
  4. Add an action to the source stage. Specify the newly created project as the action provider. Specify the build artifact as the action's input artifact.
  5. Add a new stage to the pipeline after the source stage. Add an action to the new stage. Specify the newly created project as the action provider. Specify the source artifact as the action's input artifact.

Answer(s): B,E



An engineer created an A/B test of a new feature on an Amazon CloudWatch Evidently project. The engineer configured two variations of the feature (Variation A and
Variation B) for the test. The engineer wants to work exclusively with Variation A.
The engineer needs to make updates so that Variation A is the only variation that appears when the engineer hits the application's endpoint.
Which solution will meet this requirement?

  1. Add an override to the feature. Set the identifier of the override to the engineer's user ID. Set the variation to Variation
  2. Add an override to the feature. Set the identifier of the override to
    Variation A. Set the variation to 100%.
  3. Add an experiment to the project. Set the identifier of the experiment to
    Variation B. Set the variation to 0%.
  4. Add an experiment to the project. Set the identifier of the experiment to the AWS account's account ISet the variation to Variation A.

Answer(s): A



A developer is working on an existing application that uses Amazon DynamoDB as its data store. The DynamoDB table has the following attributes: partNumber (partition key), vendor (sort key), description, productFamily, and productType.
When the developer analyzes the usage patterns, the developer notices that there are application modules that frequently look for a list of products based on the productFamily and productType attributes.
The developer wants to make changes to the application to improve performance of the query operations.
Which solution will meet these requirements?

  1. Create a global secondary index (GSI) with productFamily as the partition key and productType as the sort key.
  2. Create a local secondary index (LSI) with productFamily as the partition key and productType as the sort key.
  3. Recreate the table. Add partNumber as the partition key and vendor as the sort key. During table creation, add a local secondary index (LSI) with productFamily as the partition key and productType as the sort key.
  4. Update the queries to use Scan operations with productFamily as the partition key and productType as the sort key.

Answer(s): A



A developer creates a VPC named VPC-A that has public and private subnets. The developer also creates an Amazon RDS database inside the private subnet of VPC-A. To perform some queries, the developer creates an AWS Lambda function in the default
VPC. The Lambda function has code to access the RDS database.
When the Lambda function runs, an error message indicates that the function cannot connect to the
RDS database.
How can the developer solve this problem?

  1. Modify the RDS security group. Add a rule to allow traffic from all the ports from the VPC CIDR block.
  2. Redeploy the Lambda function in the same subnet as the RDS instance. Ensure that the RDS security group allows traffic from the Lambda function.
  3. Create a security group for the Lambda function. Add a new rule in the RDS
    security group to allow traffic from the new Lambda security group.
  4. Create an IAM role. Attach a policy that allows access to the RDS database.
    Attach the role to the Lambda function.

Answer(s): B



Page 18 of 116



Post your Comments and Discuss Amazon AWS Certified Developer - Associate DVA-C02 exam with other Community members:

Ernesto commented on August 26, 2024
Prepared and passed this exam. Valid question and very tough exam. So good luck.
Spain
upvote