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

Page 49 of 116

A developer is creating a mobile application that will not require users to log in.
What is the MOST efficient method to grant users access to AWS resources?

  1. Use an identity provider to securely authenticate with the application.
  2. Create an AWS Lambda function to create an IAM user when a user accesses the application.
  3. Create credentials using AWS KMS and apply these credentials to users when using the application.
  4. Use Amazon Cognito to associate unauthenticated users with an IAM role that has limited access to resources.

Answer(s): D



A company has developed a new serverless application using AWS Lambda functions that will be deployed using the AWS Serverless Application Model (AWS SAM) CLI.
Which step should the developer complete prior to deploying the application?

  1. Compress the application to a .zip file and upload it into AWS Lambda.
  2. Test the new AWS Lambda function by first tracing it in AWS X-Ray.
  3. Bundle the serverless application using a SAM package.
  4. Create the application environment using the eb create my-env command.

Answer(s): C



A company wants to automate part of its deployment process. A developer needs to automate the process of checking for and deleting unused resources that supported previously deployed stacks but that are no longer used.
The company has a central application that uses the AWS Cloud Development Kit (AWS CDK) to manage all deployment stacks. The stacks are spread out across multiple accounts. The developer’s solution must integrate as seamlessly as possible within the current deployment process.
Which solution will meet these requirements with the LEAST amount of configuration?

  1. In the central AWS CDK application, write a handler function in the code that uses AWS SDK calls to check for and delete unused resources. Create an
    AWS CloudFormation template from a JSON file. Use the template to attach the function code to an AWS Lambda function and to invoke the Lambda function when the deployment stack runs.
  2. In the central AWS CDK application, write a handler function in the code that uses AWS SDK calls to check for and delete unused resources. Create an
    AWS CDK custom resource. Use the custom resource to attach the function code to an AWS Lambda function and to invoke the Lambda function when the deployment stack runs.
  3. In the central AWS CDK, write a handler function in the code that uses AWS
    SDK calls to check for and delete unused resources. Create an API in AWS
    Amplify. Use the API to attach the function code to an AWS Lambda function and to invoke the Lambda function when the deployment stack runs.
  4. In the AWS Lambda console, write a handler function in the code that uses
    AWS SDK calls to check for and delete unused resources. Create an AWS CDK
    custom resource. Use the custom resource to import the Lambda function into the stack and to invoke the Lambda function when the deployment stack runs.

Answer(s): B



A company built a new application in the AWS Cloud. The company automated the bootstrapping of new resources with an Auto Scaling group by using AWS
CloudFormation templates. The bootstrap scripts contain sensitive data.
The company needs a solution that is integrated with CloudFormation to manage the sensitive data in the bootstrap scripts.
Which solution will meet these requirements in the MOST secure way?

  1. Put the sensitive data into a CloudFormation parameter. Encrypt the
    CloudFormation templates by using an AWS Key Management Service (AWS KMS)
    key.
  2. Put the sensitive data into an Amazon S3 bucket. Update the CloudFormation templates to download the object from Amazon S3 during bootstrap.
  3. Put the sensitive data into AWS Systems Manager Parameter Store as a secure string parameter. Update the CloudFormation templates to use dynamic references to specify template values.
  4. Put the sensitive data into Amazon Elastic File System (Amazon EFS). Enforce
    EFS encryption after file system creation. Update the CloudFormation templates to retrieve data from Amazon EFS.

Answer(s): C



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