AWS Certified Developer – Associate (DVA-C02) — Question 491
A developer needs to write an AWS CloudFormation template on a local machine and deploy a CloudFormation stack to AWS.
What must the developer do to complete these tasks?
Answer options
- A. Install the AWS CLI. Configure the AWS CLI by using an IAM user name and password.
- B. Install the AWS CLI. Configure the AWS CLI by using an SSH key.
- C. Install the AWS CLI, Configure the AWS CLI by using an IAM user access key and secret key.
- D. Install an AWS software development kit (SDK). Configure the SDK by using an X.509 certificate.
Correct answer: C
Explanation
To deploy a CloudFormation stack from a local machine, the developer needs to install the AWS CLI and configure it with programmatic credentials, specifically an IAM access key and secret key. Using a username and password is for AWS Management Console access, not the AWS CLI, and SSH keys or X.509 certificates are not used for standard AWS CLI authentication. While an AWS SDK can deploy stacks, the standard and most direct way to deploy local templates is via the AWS CLI configured with secure programmatic keys.