QuestionQ75

VerifiedDevSecOps Pipeline-Build and Test Stage

Steven Gerrard works as a DevSecOps engineer at an IT company that builds software products and applications for the healthcare industry. His organization uses Azure DevOps services to develop software securely and rapidly. To verify that the deployed infrastructure aligns with the architecture and industry standards, and that security policies are properly implemented, he wants to integrate InSpec with Azure.

After installing and configuring InSpec, he:

  • Created an InSpec profile file
  • Updated it with personal metadata and Azure resource pack information
  • Wrote the InSpec tests

Which of the following commands should Steven use to run the InSpec tests to check the compliance of the Azure infrastructure?

Explanation

InSpec uses the exec subcommand (not exe) to run a profile's tests, and the -t flag (not -it) is used to specify the target URI, such as azure:// for scanning Azure resources via the Azure resource pack. Therefore the correctly formed command is inspec exec inspec-tests/integration/ -t azure://.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!