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

Page 35 of 116

A company is developing a serverless multi-tier application on AWS. The company will build the serverless logic tier by using Amazon API Gateway and AWS
Lambda.
While the company builds the logic tier, a developer who works on the frontend of the application must develop integration tests. The tests must cover both positive and negative scenarios, depending on success and error HTTP status codes.
Which solution will meet these requirements with the LEAST effort?

  1. Set up a mock integration for API methods in API Gateway. In the integration request from Method Execution, add simple logic to return either a success or error based on HTTP status code. In the integration response, add messages that correspond to the HTTP status codes.
  2. Create two mock integration resources for API methods in API Gateway. In the integration request, return a success HTTP status code for one resource and an error HTTP status code for the other resource. In the integration response, add messages that correspond to the HTTP status codes.
  3. Create Lambda functions to perform tests. Add simple logic to return either success or error, based on the HTTP status codes. Build an API Gateway
    Lambda integration. Select appropriate Lambda functions that correspond to the HTTP status codes.
  4. Create a Lambda function to perform tests. Add simple logic to return either success or error-based HTTP status codes. Create a mock integration in API
    Gateway. Select the Lambda function that corresponds to the HTTP status codes.

Answer(s): A



Users are reporting errors in an application. The application consists of several microservices that are deployed on Amazon Elastic Container Service (Amazon ECS)
with AWS Fargate.
Which combination of steps should a developer take to fix the errors? (Choose two.)

  1. Deploy AWS X-Ray as a sidecar container to the microservices. Update the task role policy to allow access to the X-Ray API.
  2. Deploy AWS X-Ray as a daemonset to the Fargate cluster. Update the service role policy to allow access to the X-Ray API.
  3. Instrument the application by using the AWS X-Ray SDK. Update the application to use the PutXrayTrace API call to communicate with the X-Ray
    API.
  4. Instrument the application by using the AWS X-Ray SDK. Update the application to communicate with the X-Ray daemon.
  5. Instrument the ECS task to send the stdout and stderr output to Amazon
    CloudWatch Logs. Update the task role policy to allow the cloudwatch:PullLogs action.

Answer(s): A



A developer is creating an application for a company. The application needs to read the file doc.txt that is placed in the root folder of an Amazon S3 bucket that is named DOC-EXAMPLE-BUCKET. The company’s security team requires the principle of least privilege to be applied to the application’s IAM policy.
Which IAM policy statement will meet these security requirements?





Answer(s): A



A company has an application that uses AWS CodePipeline to automate its continuous integration and continuous delivery (CI/CD) workflow. The application uses AWS
CodeCommit for version control. A developer who was working on one of the tasks did not pull the most recent changes from the main branch. A week later, the developer noticed merge conflicts.
How can the developer resolve the merge conflicts in the developer's branch with the LEAST development effort?

  1. Clone the repository. Create a new branch. Update the branch with the changes.
  2. Create a new branch. Apply the changes from the previous branch.
  3. Use the Commit Visualizer view to compare the commits when a feature was added. Fix the merge conflicts.
  4. Stop the pull from the main branch to the feature branch. Rebase the feature branch from the main branch.

Answer(s): D



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