Cloud Technology and Services

An administrator needs to add an AWS resource inventory step to an existing shell script. Which access method BEST fits without introducing a programming-language application?

Show the answer

Correct answerC. AWS Command Line Interface (AWS CLI)

AWhy not this: The Java SDK would introduce a Java application rather than directly extend the existing shell script.

BWhy not this: CloudFormation templates describe infrastructure resources, rather than perform general inventory queries.

CWhy this is right: The AWS CLI can query AWS services from commands incorporated into a shell script.

DWhy not this: The console is designed for interactive browser use, not execution within a shell script.

The AWS CLI can retrieve resource information directly from a shell script. An SDK supports application development in a programming language, which is unnecessary for this shell-based task.