nerdexam
Oracle

1Z0-822 · Question #88

What does the following command change?

The correct answer is B. It deletes all Solaris publishers and adds the server1.domain.com origin. Note: The actual command appears to be missing from the question as presented, but based on the correct answer and Solaris IPS context, this question likely involves a pkg set-publisher command with flags that purge existing origins (such as -G '') and add a new one (such as…

Managing Software

Question

What does the following command change?

Options

  • AIt updates all Solaris publishers and deletes the server1.domain.com origin.
  • BIt deletes all Solaris publishers and adds the server1.domain.com origin.
  • CIt adds server1.domain.com to the Solaris publisher list.
  • DIt sets the origin for the Solaris publisher to server1.domain.com.
  • EIt adds the server1.domain.com repository as an origin for the solaris publisher.

How the community answered

(29 responses)
  • A
    10% (3)
  • B
    79% (23)
  • C
    3% (1)
  • D
    7% (2)

Explanation

Note: The actual command appears to be missing from the question as presented, but based on the correct answer and Solaris IPS context, this question likely involves a pkg set-publisher command with flags that purge existing origins (such as -G '*') and add a new one (such as -g).

Option B is correct because the command uses flags that both remove all existing origins from the Solaris publisher and add server1.domain.com as the new origin - a two-part operation that replaces rather than appends. Options C and E are wrong because they imply a purely additive operation, when the command actually removes existing entries before adding the new one. Option D is plausible but misses the deletion aspect - "setting" an origin implies replacing a single entry, not purging all entries first. Option A reverses the logic entirely, describing a deletion of the new server and an update of existing publishers, which is the opposite of what occurs.

Memory tip: Think of the -G '*' flag as "Gone, all!" - it wipes all origins before the new one is added, making the operation a replace-all, not an add. If you see a wildcard glob (*) in a set-publisher command, expect a deletion of everything, followed by the new addition.

Topics

#Solaris Package Management#Publisher Configuration#Package Origins#pkg Command

Community Discussion

No community discussion yet for this question.

Full 1Z0-822 Practice