QuestionQ14

VerifiedDevSecOps Pipeline-Plan Stage

SNF Pvt. Ltd. is a software development company based in Denver, Colorado. The organization uses pytm, a Pythonic framework for threat modeling, to identify and mitigate security issues in advance.

James Harden has worked as a DevSecOps engineer at SNF Pvt. Ltd. for the past three years. He created a tm.py file that describes an application with the following characteristics:

  • Users log into the app and post comments.
  • The application server stores these comments in a database.
  • An AWS Lambda function cleans the database.

Which command can James use to generate a sequence diagram?

Explanation

pytm generates a sequence diagram by piping the output of the --seq flag into PlantUML, which renders the PNG image. The correct invocation requires the Java system property flag to be capitalized as -D (e.g., -Djava.awt.headless=true), since Java only recognizes uppercase -D for defining system properties — a lowercase -d is invalid. It also requires the correctly spelled plantuml.jar file, not a misspelled variant such as plantum.jar. Only the command tm.py --seq | java -Djava.awt.headless=true -jar plantuml.jar -tpng -pipe > seq.png uses both the valid Java flag and the correct PlantUML jar filename, matching the official pytm usage documented in its GitHub repository and OWASP references.

Learn more

Community Discussion

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