Welcome to the Linux Foundation Forum!

6.6 Lab Review

diveshpanwar
diveshpanwar Posts: 1
edited March 8 in LFD259 Class Forum

Hi All

This might be very stupid question but kindly explain:

In the review file point 13 states
" Locate the token of the securityaccount. Create a file called /tmp/securitytoken. Put only the value of token: isequal to, a long string that may start with eyJh and be several lines long. Careful that only that string exists in the file."

Its kind of ambiguous:
so what should be the o/p in the file (suppose xyz.... is the token):

**token: xyz........

or

xyz.......**

Comments

  • chrispokorni
    chrispokorni Posts: 1,132

    Hi @diveshpanwar,

    Provided that the token is stored in a key/value pair format, then "only the value of the token" followed by the description of the value string describes the "xyz..." string, and not the "token:" string. Therefore the file should include only the value string of the token, not the "token:" key.

    Regards,
    -Chris

  • Oscmedgon
    Oscmedgon Posts: 4

    I'm a little bit shocked by this point, of the domain review.
    I can understand that the first part is to test the ability to find this token, but I don't understand why is required to write this token to a temp file, and after that, without an intermediate step, step 14 asks to remove any created resource on the domain review.

    What is the purpose of this temp file?

    Regards

  • chrispokorni
    chrispokorni Posts: 1,132

    Hi @Oscmedgon,

    The domain reviews are meant to test learners' abilities to run specific tasks independently, without much "help", similar to a real world administration scenario. Knowing how to extract specific details and/or information from an API object is a valuable skill, and this particular scenario tests the ability to extract the value of a predefined token.

    Also, it is common practice to delete/remove resources and artifacts created during an exercise, in order to free up resources - cpu, memory, and disk space.

    Regards,
    -Chris

Categories

Upcoming Training