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

Page 61 of 116

A company is creating a REST service using an Amazon API Gateway with AWS Lambda integration. The service must run different versions for testing purposes.
What would be the BEST way to accomplish this?

  1. Use an X-Version header to denote which version is being called and pass that header to the Lambda function(s).
  2. Create an API Gateway Lambda authorizer to route API clients to the correct
    API version.
  3. Create an API Gateway resource policy to isolate versions and provide context to the Lambda function(s).
  4. Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context.

Answer(s): D



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.)

  1. The change was not made in the main branch of the AWS CodeCommit repository.
  2. One of the earlier stages in the pipeline failed and the pipeline has terminated.
  3. One of the Amazon EC2 instances in the company’s AWS CodePipeline cluster is inactive.
  4. The AWS CodePipeline is incorrectly configured and is not invoking AWS
    CodeDeploy.
  5. AWS CodePipeline does not have permissions to access AWS CodeCommit.

Answer(s): A,B



A developer is building a serverless application by using AWS Serverless Application
Model (AWS SAM) on multiple AWS Lambda functions.
When the application is deployed,
the developer wants to shift 10% of the traffic to the new deployment of the application for the first 10 minutes after deployment. If there are no issues, all traffic must switch over to the new version.
Which change to the AWS SAM template will meet these requirements?

  1. Set the Deployment Preference Type to Canary10Percent10Minutes. Set the
    AutoPublishAlias property to the Lambda alias.
  2. Set the Deployment Preference Type to Linear10PercentEvery10Minutes. Set
    AutoPublishAlias property to the Lambda alias.
  3. Set the Deployment Preference Type to Canary10Percent10Minutes. Set the
    PreTraffic and PostTraffic properties to the Lambda alias.
  4. Set the Deployment Preference Type to Linear10PercentEvery10Minutes. Set
    PreTraffic and PostTraffic properties to the Lambda alias.

Answer(s): A



An AWS Lambda function is running in a company’s shared AWS account. The function needs to perform an additional ec2:DescribeInstances action that is directed at the company’s development accounts. A developer must configure the required permissions across the accounts.
How should the developer configure the permissions to adhere to the principle of least privilege?

  1. Create an IAM role in the shared account. Add the ec2:DescribeInstances permission to the role. Establish a trust relationship between the development accounts for this role. Update the Lambda function IAM role in the shared account by adding the ec2:DescribeInstances permission to the role.
  2. Create an IAM role in the development accounts. Add the ec2:DescribeInstances permission to the role. Establish a trust relationship with the shared account for this role. Update the Lambda function IAM role in the shared account by adding the iam:AssumeRole permissions.
  3. Create an IAM role in the shared account. Add the ec2:DescribeInstances permission to the role. Establish a trust relationship between the development accounts for this role. Update the Lambda function IAM role in the shared account by adding the iam:AssumeRole permissions.
  4. Create an IAM role in the development accounts. Add the ec2:DescribeInstances permission to the role. Establish a trust relationship with the shared account for this role. Update the Lambda function IAM role in the shared account by adding the ec2:DescribeInstances permission to the role.

Answer(s): B



Page 61 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