nerdexam
AmazonAmazon

DVA-C02 · Question #689

DVA-C02 Question #689: Real Exam Question with Answer & Explanation

Sign in or unlock DVA-C02 to reveal the answer and full explanation for question #689. The question stem and answer options stay visible for context.

Submitted by minji_kr· Mar 5, 2026Development with AWS Services

Question

A developer is testing an AWS Lambda function by using the AWS SAM local CLI. The application that is implemented by the Lambda function makes several AWS API calls by using the AWS SDK. The developer wants to allow the function to make AWS API calls in a test AWS account from the developer's laptop. What should the developer do to meet these requirements?

Options

  • AEdit the template.yml file. Add the AWS_ACCESS_KEY_ID property and the
  • BAdd a test profile by using the aws configure command with the --profile option. Run AWS SAM
  • CEdit the template.yml file. For the AWS::Serverless::Function resource, set the role to an IAM role
  • DRun the function by using the sam local invoke command. Override the AWS_ACCESS_KEY_ID

Unlock DVA-C02 to see the answer

You've previewed enough free DVA-C02 questions. Unlock DVA-C02 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full DVA-C02 PracticeBrowse All DVA-C02 Questions