nerdexam
Amazon

DVA-C02 · Question #588

A developer is using AWS CodeDeploy to automate a company's application deployments to Amazon EC2. Which application specification file properties are required to ensure the software deployments do no

The correct answer is B. The file must be a YAML-formatted file named appspec.yml. D. The file must be placed in the root of the directory structure of the application's source code.. To ensure successful software deployments using AWS CodeDeploy, the application specification file (appspec.yml or appspec.json) must adhere to specific requirements: File Format Requirement (Option B): The appspec.yml file is a YAML-formatted file required for defining deploymen

Submitted by suresh_in· Mar 5, 2026Deployment

Question

A developer is using AWS CodeDeploy to automate a company's application deployments to Amazon EC2. Which application specification file properties are required to ensure the software deployments do not fail? (Choose two.)

Options

  • AThe file must be a JSON-formatted file named appspec.json.
  • BThe file must be a YAML-formatted file named appspec.yml.
  • CThe file must be stored in AWS CodeBuild and referenced from the application's source code.
  • DThe file must be placed in the root of the directory structure of the application's source code.
  • EThe file must be stored in Amazon S3 and referenced from the application's source code.

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    88% (23)
  • C
    8% (2)

Explanation

To ensure successful software deployments using AWS CodeDeploy, the application specification file (appspec.yml or appspec.json) must adhere to specific requirements: File Format Requirement (Option B): The appspec.yml file is a YAML-formatted file required for defining deployment actions and file locations. This is the modern and recommended format for application specification files. It can also be a JSON-formatted file named appspec.json, but YAML is most commonly used and File Placement Requirement (Option D): The application specification file must reside in the root directory of the application's source code. This is necessary so that AWS CodeDeploy can detect and use the file during deployment.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice