312-97 practice question 17 of 35
(Steven Gerrard has been working as a DevSecOps engineer at an IT company that develops software products and applications related to the healthcare…
Full set: 100 questionsThe InSpec command-line tool uses the exec action to execute a compliance profile against a target. The profile's location is provided as an argument (e.g., inspec-tests/integration/). To specify the target infrastructure, the -t (or --target) flag is used. For scanning Azure resources, InSpec uses the target URI azure://. Therefore, the command inspec exec inspec-tests/integration/ -t azure:// correctly combines the action, profile path, and target flag to initiate a compliance scan against the configured Azure environment.
A. The command to execute a profile is exec, not exe. This option uses the incorrect command action.
B. The -it flag is not a valid InSpec option for specifying a target. This syntax is commonly associated with Docker, not InSpec.
D. This option contains two errors: the incorrect command action exe and the invalid flag -it for specifying the target.
Chef InSpec Documentation, "inspec exec". The documentation specifies inspec exec as the command for running profiles. It also details the use of the --target (or -t) flag to specify a remote host.
Chef InSpec on Azure Documentation, "Authenticate to Azure". The official documentation provides examples for running InSpec against Azure, consistently using the format inspec exec -t azure://.... (Section: Run InSpec).
Keep practicing
Take the free 312-97 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-97 practice questions
- Question 1(Sandra Oliver joined SinClare Soft Pvt. Ltd. as a DevSecOps engineer in January of 2010.…
- Question 2(Robert Wheeler has been working as a DevSecOps engineer in an IT company for the past 5 …
- Question 3(Debra Aniston is a DevSecOps engineer in an IT company that develops software products a…
- Question 4(Craig Kelly has been working as a software development team leader in an IT company over…
- Question 5(Walter O’Brien recently joined as a junior DevSecOps engineer in an IT company located i…
- Question 6(SinCaire is a software development company that develops web applications for various cl…
