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

Page 27 of 116

A software company is launching a multimedia application. The application will allow guest users to access sample content before the users decide if they want to create an account to gain full access. The company wants to implement an authentication process that can identify users who have already created an account. The company also needs to keep track of the number of guest users who eventually create an account.
Which combination of steps will meet these requirements? (Choose two.)

  1. Create an Amazon Cognito user pool. Configure the user pool to allow unauthenticated users. Exchange user tokens for temporary credentials that allow authenticated users to assume a role.
  2. Create an Amazon Cognito identity pool. Configure the identity pool to allow unauthenticated users. Exchange unique identity for temporary credentials that allow all users to assume a role.
  3. Create an Amazon CloudFront distribution. Configure the distribution to allow unauthenticated users. Exchange user tokens for temporary credentials that allow all users to assume a role.
  4. Create a role for authenticated users that allows access to all content.
    Create a role for unauthenticated users that allows access to only the sample content.
  5. Allow all users to access the sample content by default. Create a role for authenticated users that allows access to the other content.

Answer(s): B,D



A company is updating an application to move the backend of the application from
Amazon EC2 instances to a serverless model. The application uses an Amazon RDS for
MySQL DB instance and runs in a single VPC on AWS. The application and the DB
instance are deployed in a private subnet in the
VPC.
The company needs to connect AWS Lambda functions to the DB instance.
Which solution will meet these requirements?

  1. Create Lambda functions inside the VPC with the AWSLambdaBasicExecutionRole policy attached to the Lambda execution role. Modify the RDS security group to allow inbound access from the Lambda security group.
  2. Create Lambda functions inside the VPC with the
    AWSLambdaVPCAccessExecutionRole policy attached to the Lambda execution role. Modify the RDS security group to allow inbound access from the Lambda security group.
  3. Create Lambda functions with the AWSLambdaBasicExecutionRole policy attached to the Lambda execution role. Create an interface VPC endpoint for the
    Lambda functions. Configure the interface endpoint policy to allow the lambda:InvokeFunclion action for each Lambda function's Amazon Resource Name
    (ARN).
  4. Create Lambda functions with the AWSLambdaVPCAccessExecutionRole policy attached to the Lambda execution role. Create an interface VPC endpoint for the Lambda functions. Configure the interface endpoint policy to allow the lambda:InvokeFunction action for each Lambda function's Amazon Resource Name
    (ARN).

Answer(s): B



A company has a web application that runs on Amazon EC2 instances with a custom
Amazon Machine Image (AMI). The company uses AWS CloudFormation to provision the application. The application runs in the us-east-1 Region, and the company needs to deploy the application to the us-west-1
Region.
An attempt to create the AWS CloudFormation stack in us-west-1 fails. An error message states that the AMI ID does not exist. A developer must resolve this error with a solution that uses the least amount of operational overhead.
Which solution meets these requirements?

  1. Change the AWS CloudFormation templates for us-east-1 and us-west-1 to use an AWS AMI. Relaunch the stack for both Regions.
  2. Copy the custom AMI from us-east-1 to us-west-1. Update the AWS
    CloudFormation template for us-west-1 to refer to AMI ID for the copied AMI.
    Relaunch the stack.
  3. Build the custom AMI in us-west-1. Create a new AWS CloudFormation template to launch the stack in us-west-1 with the new AMI ID.
  4. Manually deploy the application outside AWS CloudFormation in us-west-1.

Answer(s): B



A developer is updating several AWS Lambda functions and notices that all the Lambda functions share the same custom libraries. The developer wants to centralize all the libraries, update the libraries in a convenient way, and keep the libraries versioned.
Which solution will meet these requirements with the LEAST development effort?

  1. Create an AWS CodeArtifact repository that contains all the custom libraries.
  2. Create a custom container image for the Lambda functions to save all the custom libraries.
  3. Create a Lambda layer that contains all the custom libraries.
  4. Create an Amazon Elastic File System (Amazon EFS) file system to store all the custom libraries.

Answer(s): C



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